Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147232698
D55666.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D55666.diff
View Options
diff --git a/sys/compat/linux/linux_stats.c b/sys/compat/linux/linux_stats.c
--- a/sys/compat/linux/linux_stats.c
+++ b/sys/compat/linux/linux_stats.c
@@ -295,26 +295,28 @@
#define LINUX_ZFS_SUPER_MAGIC 0x2FC12FC1
#define LINUX_DEVFS_SUPER_MAGIC 0x1373L
#define LINUX_SHMFS_MAGIC 0x01021994
+#define LINUX_SYSFS_MAGIC 0x62656572
static long
bsd_to_linux_ftype(const char *fstypename)
{
int i;
static struct {const char *bsd_name; long linux_type;} b2l_tbl[] = {
- {"ufs", LINUX_UFS_SUPER_MAGIC},
- {"zfs", LINUX_ZFS_SUPER_MAGIC},
- {"cd9660", LINUX_ISOFS_SUPER_MAGIC},
- {"nfs", LINUX_NFS_SUPER_MAGIC},
- {"ext2fs", LINUX_EXT2_SUPER_MAGIC},
- {"procfs", LINUX_PROC_SUPER_MAGIC},
- {"msdosfs", LINUX_MSDOS_SUPER_MAGIC},
- {"ntfs", LINUX_NTFS_SUPER_MAGIC},
- {"nwfs", LINUX_NCP_SUPER_MAGIC},
- {"hpfs", LINUX_HPFS_SUPER_MAGIC},
- {"coda", LINUX_CODA_SUPER_MAGIC},
- {"devfs", LINUX_DEVFS_SUPER_MAGIC},
- {"tmpfs", LINUX_SHMFS_MAGIC},
- {NULL, 0L}};
+ {"ufs", LINUX_UFS_SUPER_MAGIC},
+ {"zfs", LINUX_ZFS_SUPER_MAGIC},
+ {"cd9660", LINUX_ISOFS_SUPER_MAGIC},
+ {"nfs", LINUX_NFS_SUPER_MAGIC},
+ {"ext2fs", LINUX_EXT2_SUPER_MAGIC},
+ {"procfs", LINUX_PROC_SUPER_MAGIC},
+ {"msdosfs", LINUX_MSDOS_SUPER_MAGIC},
+ {"ntfs", LINUX_NTFS_SUPER_MAGIC},
+ {"nwfs", LINUX_NCP_SUPER_MAGIC},
+ {"hpfs", LINUX_HPFS_SUPER_MAGIC},
+ {"coda", LINUX_CODA_SUPER_MAGIC},
+ {"devfs", LINUX_DEVFS_SUPER_MAGIC},
+ {"tmpfs", LINUX_SHMFS_MAGIC},
+ {"linsysfs", LINUX_SYSFS_MAGIC},
+ {NULL, 0L}};
for (i = 0; b2l_tbl[i].bsd_name != NULL; i++)
if (strcmp(b2l_tbl[i].bsd_name, fstypename) == 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 10, 7:52 AM (3 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29326225
Default Alt Text
D55666.diff (1 KB)
Attached To
Mode
D55666: Added sysfs filetype support for Linux statfs()
Attached
Detach File
Event Timeline
Log In to Comment