diff options
author | emaste <emaste@FreeBSD.org> | 2017-09-09 14:30:16 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2017-09-09 14:30:16 +0000 |
commit | dbea83cbba6f3d40102f033c90545883fe7fe738 (patch) | |
tree | e602de52ce8e76f7ed6a9257c30ca46e3c90d0d5 | |
parent | eb2be59fb2b9ba46c4cef009846663838bce140c (diff) | |
download | FreeBSD-src-dbea83cbba6f3d40102f033c90545883fe7fe738.zip FreeBSD-src-dbea83cbba6f3d40102f033c90545883fe7fe738.tar.gz |
MFC r320069: Add ZFS to Linux statfs ftype
PR: 220086
Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation
-rw-r--r-- | sys/compat/linux/linux_stats.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_stats.c b/sys/compat/linux/linux_stats.c index 2684d82..fb82425 100644 --- a/sys/compat/linux/linux_stats.c +++ b/sys/compat/linux/linux_stats.c @@ -351,6 +351,7 @@ struct l_statfs { #define LINUX_NTFS_SUPER_MAGIC 0x5346544EL #define LINUX_PROC_SUPER_MAGIC 0x9fa0L #define LINUX_UFS_SUPER_MAGIC 0x00011954L /* XXX - UFS_MAGIC in Linux */ +#define LINUX_ZFS_SUPER_MAGIC 0x2FC12FC1 #define LINUX_DEVFS_SUPER_MAGIC 0x1373L #define LINUX_SHMFS_MAGIC 0x01021994 @@ -360,6 +361,7 @@ 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}, |