Add flags to lsattr for HUGE_FILE_FL. Document both the extent and huge file flags for chattr.1.in. Signed-off-by: Andreas Dilger <adilger@xxxxxxx> Index: e2fsprogs-cfs/lib/e2p/pf.c =================================================================== --- e2fsprogs-cfs.orig/lib/e2p/pf.c +++ e2fsprogs-cfs/lib/e2p/pf.c @@ -28,7 +28,6 @@ static struct flags_name flags_array[] = { EXT2_SECRM_FL, "s", "Secure_Deletion" }, { EXT2_UNRM_FL, "u" , "Undelete" }, { EXT2_SYNC_FL, "S", "Synchronous_Updates" }, - { EXT2_DIRSYNC_FL, "D", "Synchronous_Directory_Updates" }, { EXT2_IMMUTABLE_FL, "i", "Immutable" }, { EXT2_APPEND_FL, "a", "Append_Only" }, { EXT2_NODUMP_FL, "d", "No_Dump" }, @@ -40,10 +39,12 @@ static struct flags_name flags_array[] = { EXT2_NOCOMPR_FL, "X", "Compression_Raw_Access" }, { EXT2_ECOMPR_FL, "E", "Compression_Error" }, #endif + { EXT2_INDEX_FL, "I", "Indexed_direcctory" }, { EXT3_JOURNAL_DATA_FL, "j", "Journaled_Data" }, - { EXT2_INDEX_FL, "I", "Indexed_direcctory" }, { EXT2_NOTAIL_FL, "t", "No_Tailmerging" }, + { EXT2_DIRSYNC_FL, "D", "Synchronous_Directory_Updates" }, { EXT2_TOPDIR_FL, "T", "Top_of_Directory_Hierarchies" }, + { EXT4_HUGE_FILE_FL, "H", "Huge_File" }, { EXT4_EXTENTS_FL, "e", "Extents" }, { 0, NULL, NULL } }; Index: e2fsprogs-cfs/misc/chattr.1.in =================================================================== --- e2fsprogs-cfs.orig/misc/chattr.1.in +++ e2fsprogs-cfs/misc/chattr.1.in @@ -72,6 +72,19 @@ set or reset using although it can be displayed by .BR lsattr (1). .PP +The 'e' attribute indicates that the file is using extents for mapping +the blocks on disk. It may not be set or reset using +.BR chattr (1), +although it can be displayed by +.BR lsattr (1). +.PP +The 'H' attribute indicates the file is storing its blocks in units of the +filesystem blocksize instead of in units of sectors, and means that the file +is (or at one time was) larger than 2TB. It may not be set or reset using +.BR chattr (1), +although it can be displayed by +.BR lsattr (1). +.PP The 'I' attribute is used by the htree code to indicate that a directory is being indexed using hashed trees. It may not be set or reset using .BR chattr (1), Cheers, Andreas -- Andreas Dilger Sr. Staff Engineer, Lustre Group Sun Microsystems of Canada, Inc. -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html