[PATCH] 08/13 e2fsprogs-extents_visible - make extents visible to lsattr

Andreas Dilger <[email protected]> Wed, 2 Aug 2006 10:57:37 -0600
Newsgroups gmane.comp.file-systems.ext2.devel
Message-ID <[email protected]>
Make extent-mapped files visible to lsattr.

Index: e2fsprogs/lib/e2p/pf.c
===================================================================
--- e2fsprogs.orig/lib/e2p/pf.c	2006-02-09 14:08:13.000000000 -0700
+++ e2fsprogs/lib/e2p/pf.c	2006-06-23 04:04:56.000000000 -0600
@@ -44,6 +44,9 @@ static struct flags_name flags_array[] =
 	{ EXT2_INDEX_FL, "I", "Indexed_direcctory" }, 
 	{ EXT2_NOTAIL_FL, "t", "No_Tailmerging" },
 	{ EXT2_TOPDIR_FL, "T", "Top_of_Directory_Hierarchies" },
+#ifdef EXT3_EXTENTS_FL
+	{ EXT3_EXTENTS_FL, "e", "Extents" },
+#endif
 	{ 0, NULL, NULL }
 };
 
Index: e2fsprogs/lib/ext2fs/ext2_fs.h
===================================================================
--- e2fsprogs.orig/lib/ext2fs/ext2_fs.h	2006-05-18 02:45:07.000000000 -0600
+++ e2fsprogs/lib/ext2fs/ext2_fs.h	2006-06-23 04:04:33.000000000 -0600
@@ -239,7 +239,7 @@ struct ext2_dx_countlimit {
 #define EXT3_EXTENTS_FL 		0x00080000 /* Inode uses extents */
 #define EXT2_RESERVED_FL		0x80000000 /* reserved for ext2 lib */
 
-#define EXT2_FL_USER_VISIBLE		0x0003DFFF /* User visible flags */
+#define EXT2_FL_USER_VISIBLE		0x000BDFFF /* User visible flags */
 #define EXT2_FL_USER_MODIFIABLE		0x000080FF /* User modifiable flags */
 
 /*

Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV