svn commit: r305495 - stable/9/sys/fs/ext2fs
Pedro F. Giffuni
pfg at FreeBSD.org
Tue Sep 6 19:54:53 UTC 2016
Author: pfg
Date: Tue Sep 6 19:54:52 2016
New Revision: 305495
URL: https://svnweb.freebsd.org/changeset/base/305495
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/9/sys/fs/ext2fs/ext2_dinode.h
stable/9/sys/fs/ext2fs/ext2fs.h
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/fs/ (props changed)
Modified: stable/9/sys/fs/ext2fs/ext2_dinode.h
==============================================================================
--- stable/9/sys/fs/ext2fs/ext2_dinode.h Tue Sep 6 19:53:05 2016 (r305494)
+++ stable/9/sys/fs/ext2fs/ext2_dinode.h Tue Sep 6 19:54:52 2016 (r305495)
@@ -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/9/sys/fs/ext2fs/ext2fs.h
==============================================================================
--- stable/9/sys/fs/ext2fs/ext2fs.h Tue Sep 6 19:53:05 2016 (r305494)
+++ stable/9/sys/fs/ext2fs/ext2fs.h Tue Sep 6 19:54:52 2016 (r305495)
@@ -205,6 +205,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
@@ -213,6 +214,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
@@ -222,6 +228,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
More information about the svn-src-stable-9
mailing list