svn commit: r320821 - stable/11/sys/compat/linux

Ed Maste emaste at FreeBSD.org
Sun Jul 9 00:24:54 UTC 2017


Author: emaste
Date: Sun Jul  9 00:24:52 2017
New Revision: 320821
URL: https://svnweb.freebsd.org/changeset/base/320821

Log:
  MFC r320069: Add ZFS to Linux statfs ftype
  
  PR:		220086
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/11/sys/compat/linux/linux_stats.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/compat/linux/linux_stats.c
==============================================================================
--- stable/11/sys/compat/linux/linux_stats.c	Sat Jul  8 21:15:46 2017	(r320820)
+++ stable/11/sys/compat/linux/linux_stats.c	Sun Jul  9 00:24:52 2017	(r320821)
@@ -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},


More information about the svn-src-all mailing list