Commit 45b7228
fs: Add workaround for fs_stat() on mount points
The various VFS handlers may not implement a .stat backend function. For
instance, the socket VFS does not implement any. However, we still want
to be able to tell that /sock is a directory and not a file.
Add a workaround, so that if we're trying to fs_stat() a mount point,
and the corresponding VFS does not provide a .stat backend function, we
just return it as a 0777 directory.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>1 parent d02cfe3 commit 45b7228
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
868 | 868 | | |
869 | 869 | | |
870 | 870 | | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
871 | 878 | | |
872 | 879 | | |
873 | 880 | | |
| |||
0 commit comments