Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Sep 2016 19:51:24 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r305493 - stable/11/sys/fs/ext2fs
Message-ID:  <201609061951.u86JpOeH099218@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pfg
Date: Tue Sep  6 19:51:24 2016
New Revision: 305493
URL: https://svnweb.freebsd.org/changeset/base/305493

Log:
  MFC r303799, r303800:
  ext2fs:	Add defines for some missing ext4 features and inode flags.
  
  These are currently unused in our implementation and some even appear to
  have not been implemented yet on linux but it is good to keep them for
  reference.
  
  Obtained from:	NetBSD

Modified:
  stable/11/sys/fs/ext2fs/ext2_dinode.h
  stable/11/sys/fs/ext2fs/ext2fs.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/fs/ext2fs/ext2_dinode.h
==============================================================================
--- stable/11/sys/fs/ext2fs/ext2_dinode.h	Tue Sep  6 19:36:28 2016	(r305492)
+++ stable/11/sys/fs/ext2fs/ext2_dinode.h	Tue Sep  6 19:51:24 2016	(r305493)
@@ -71,7 +71,10 @@
 #define	EXT4_TOPDIR		0x00020000 /* Top of directory hierarchies*/
 #define	EXT4_HUGE_FILE		0x00040000	/* Set to each huge file */
 #define	EXT4_EXTENTS		0x00080000	/* Inode uses extents */
+#define	EXT4_EA_INODE		0x00200000	/* Inode used for large EA */
 #define	EXT4_EOFBLOCKS		0x00400000 /* Blocks allocated beyond EOF */
+#define	EXT4_INLINE_DATA	0x10000000 /* Inode has inline data */
+#define	EXT4_PROJINHERIT	0x20000000 /* Children inherit project ID */
 
 /*
  * Definitions for nanosecond timestamps.

Modified: stable/11/sys/fs/ext2fs/ext2fs.h
==============================================================================
--- stable/11/sys/fs/ext2fs/ext2fs.h	Tue Sep  6 19:36:28 2016	(r305492)
+++ stable/11/sys/fs/ext2fs/ext2fs.h	Tue Sep  6 19:51:24 2016	(r305493)
@@ -206,6 +206,7 @@ struct csum {
 #define	EXT2F_COMPAT_HASJOURNAL		0x0004
 #define	EXT2F_COMPAT_RESIZE		0x0010
 #define	EXT2F_COMPAT_DIRHASHINDEX	0x0020
+#define	EXT2F_COMPAT_SPARSESUPER2	0x0200
 
 #define	EXT2F_ROCOMPAT_SPARSESUPER	0x0001
 #define	EXT2F_ROCOMPAT_LARGEFILE	0x0002
@@ -214,6 +215,11 @@ struct csum {
 #define	EXT2F_ROCOMPAT_GDT_CSUM		0x0010
 #define	EXT2F_ROCOMPAT_DIR_NLINK	0x0020
 #define	EXT2F_ROCOMPAT_EXTRA_ISIZE	0x0040
+#define	EXT2F_ROCOMPAT_QUOTA		0x0100
+#define	EXT2F_ROCOMPAT_BIGALLOC		0x0200
+#define	EXT2F_ROCOMPAT_METADATA_CKSUM	0x0400
+#define	EXT2F_ROCOMPAT_READONLY		0x1000
+#define	EXT2F_ROCOMPAT_PROJECT		0x2000
 
 #define	EXT2F_INCOMPAT_COMP		0x0001
 #define	EXT2F_INCOMPAT_FTYPE		0x0002
@@ -223,6 +229,12 @@ struct csum {
 #define	EXT2F_INCOMPAT_64BIT		0x0080
 #define	EXT2F_INCOMPAT_MMP		0x0100
 #define	EXT2F_INCOMPAT_FLEX_BG		0x0200
+#define	EXT2F_INCOMPAT_EA_INODE		0x0400
+#define	EXT2F_INCOMPAT_DIRDATA		0x1000
+#define	EXT2F_INCOMPAT_CSUM_SEED	0x2000
+#define	EXT2F_INCOMPAT_LARGEDIR		0x4000
+#define	EXT2F_INCOMPAT_INLINE_DATA	0x8000
+#define	EXT2F_INCOMPAT_ENCRYPT		0x10000
 
 /*
  * Features supported in this implementation



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609061951.u86JpOeH099218>