Author: emaste
Date: Sun Jun 18 11:51:03 2017
New Revision: 320069
URL: https://svnweb.freebsd.org/changeset/base/320069

Log:
  Add ZFS to Linux statfs ftype
  
  PR:           220086
  Reviewed by:  cem
  MFC after:    3 weeks
  Sponsored by: The FreeBSD Foundation
  Differential Revision:        https://reviews.freebsd.org/D11252

Modified:
  head/sys/compat/linux/linux_stats.c

Modified: head/sys/compat/linux/linux_stats.c
==============================================================================
--- head/sys/compat/linux/linux_stats.c Sun Jun 18 11:50:09 2017        
(r320068)
+++ head/sys/compat/linux/linux_stats.c Sun Jun 18 11:51:03 2017        
(r320069)
@@ -318,6 +318,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
 
@@ -327,6 +328,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},
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to