From bf5dd0aec42cfbec638be4b15b5e295984b15e51 Mon Sep 17 00:00:00 2001 From: Zheng Liu Date: Tue, 7 Aug 2012 13:56:47 -0400 Subject: [PATCH] libe2p/libext2fs: add EXT4_INLINE_DATA_FL flag [ Also teach libe2p's print_flags() function to display this flag so that lsattr will allow us to see whether a file has inline data or not. --tytso ] Signed-off-by: Zheng Liu Signed-off-by: "Theodore Ts'o" --- lib/e2p/pf.c | 1 + lib/ext2fs/ext2_fs.h | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/e2p/pf.c b/lib/e2p/pf.c index e2f8ce5..f116ac3 100644 --- a/lib/e2p/pf.c +++ b/lib/e2p/pf.c @@ -50,6 +50,7 @@ static struct flags_name flags_array[] = { { EXT4_EXTENTS_FL, "e", "Extents" }, { EXT4_HUGE_FILE_FL, "h", "Huge_file" }, { FS_NOCOW_FL, "C", "No_COW" }, + { EXT4_INLINE_DATA_FL, "N", "Inline_Data" }, { 0, NULL, NULL } }; diff --git a/lib/ext2fs/ext2_fs.h b/lib/ext2fs/ext2_fs.h index 7418409..5b6e315 100644 --- a/lib/ext2fs/ext2_fs.h +++ b/lib/ext2fs/ext2_fs.h @@ -319,6 +319,7 @@ struct ext2_dx_tail { #define EXT4_SNAPFILE_FL 0x01000000 /* Inode is a snapshot */ #define EXT4_SNAPFILE_DELETED_FL 0x04000000 /* Snapshot is being deleted */ #define EXT4_SNAPFILE_SHRUNK_FL 0x08000000 /* Snapshot shrink has completed */ +#define EXT4_INLINE_DATA_FL 0x10000000 /* Inode has inline data */ #define EXT2_RESERVED_FL 0x80000000 /* reserved for ext2 lib */ #define EXT2_FL_USER_VISIBLE 0x004BDFFF /* User visible flags */ -- 1.8.3.1