Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[6.8.0 to 6.8.3] scandir d_type and stat errors

  • Closed

Background Info

I've been troubleshooting an application running in a docker container. I pulled it out of the docker container and ran on baremetal and am having the same issues. You can see my and others' troubleshooting here:

https://github.com/aldostools/webMAN-MOD/issues/333
 

We started having issues with UnRaid 6.8.0 and higher. I limited it down to a small `.cpp` files to highlight the issue.

Small Files:
https://gist.github.com/miketweaver/92c61293f16ef3016f9a57472fff1ff3
 

Here is my filesystem:

root@Tower:~# tree -L 3 /mnt/user/games/
/mnt/user/games/
└── GAMES/
    └── BLUS31606/
        ├── PS3_DISC.SFB
        ├── PS3_GAME/
        └── PS3_UPDATE/

4 directories, 1 file ( / added by me to highlight what are dirs )
root@Tower:~# tree -L 3 /mnt/disk*/games/
/mnt/disk2/games/
└── GAMES/
    └── BLUS31606/
        ├── PS3_DISC.SFB
        ├── PS3_GAME/
        └── PS3_UPDATE/
/mnt/disk3/games/
└── GAMES/
    └── BLUS31606
        └── PS3_GAME/

7 directories, 1 file  ( / added by me to highlight what are dirs )

As you can see, I have files spread apart across 2 disks.

1. Scandir Issue
When I compile `scandir.cpp` and run it on 6.7.2 (good). I get this output:

PS3_UPDATE, d_type: DT_DIR
PS3_GAME, d_type: DT_DIR
PS3_DISC.SFB, d_type: DT_REG
.., d_type: DT_DIR
., d_type: DT_DIR

When I take the same file and run on 6.8.0 and higher (bad). I get this output:

PS3_UPDATE, d_type: DT_UNKNOWN
PS3_GAME, d_type: DT_UNKNOWN
PS3_DISC.SFB, d_type: DT_UNKNOWN
.., d_type: DT_UNKNOWN
., d_type: DT_UNKNOWN

It appears that the changes to SHFS in 6.8.0 have caused it so that `d_type` isn't supported with `shfs`


2. Stat Issue
When I compile `stat.cpp` and run it on 6.7.2 (good). I get this output (every time):

root@Tower:~# ./stat.o
PS3_UPDATE,
PS3_GAME,
PS3_DISC.SFB,
.., unknown is a Directory!
., unknown is a Directory!


When I take the same file and run on 6.8.0 and higher (bad). I get this output, it varies every time I run it:

root@Tower:~# ./stat.o
PS3_UPDATE, unknown is a File!
PS3_GAME, unknown is a File!
PS3_DISC.SFB, unknown is a File!
.., unknown is a Directory!
., unknown is a Directory!
root@Tower:~# ./stat.o
PS3_UPDATE,
PS3_GAME,
PS3_DISC.SFB,
.., unknown is a Directory!
., unknown is a Directory!
root@Tower:~# ./stat.o
PS3_UPDATE,
PS3_GAME,
PS3_DISC.SFB,
.., unknown is a Directory!
., unknown is a Directory!
root@Tower:~# ./stat.o
PS3_UPDATE, unknown is a FIFO!
PS3_GAME, unknown is a FIFO!
PS3_DISC.SFB, unknown is a FIFO!
.., unknown is a Directory!
., unknown is a Directory!
root@Tower:~# ./stat.o
PS3_UPDATE, unknown is a CHR!
PS3_GAME, unknown is a CHR!
PS3_DISC.SFB, unknown is a CHR!
.., unknown is a Directory!
., unknown is a Directory!

Please visit Tools/Diagnostics and attach the diagnostics.zip file to your post.

 

Plugins: I have many plugins, but I tested this in a virtualized unraid with 0 plugins and it has the same issue.

 

Bare Metal Only: Yes. This is bare metal

tower-diagnostics-20200524-1139.zip

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.