Blame SOURCES/e2fsprogs-1.42.9-chattr-manpage-reorder.patch

98901c
commit 5b9aaae742a79ef6001e58e5031b5f6ec03fe1ad
98901c
Author: Eric Sandeen <sandeen@redhat.com>
98901c
Date:   Fri Jul 4 23:02:59 2014 -0400
98901c
98901c
    e2fsprogs: reorder flags in chattr(1)
98901c
    
98901c
    The flags described in chattr usage() and the chattr(1) manpage
98901c
    were in semi-random order, which makes it hard to ascertain
98901c
    which flags might be missing or undocumented, and to locate
98901c
    flags within the manpage.
98901c
    
98901c
    Re-order the list of flags in alphanumeric order, and do
98901c
    the same for the flag descriptions in the body of the manpage.
98901c
    
98901c
    There should be no content changes here, just reordering
98901c
    for consistency.
98901c
    
98901c
    Signed-off-by: Eric Sandeen <sandeen@redhat.com>
98901c
    Signed-off-by: Theodore Ts'o <tytso@mit.edu>
98901c
    Reviewed-by: Andreas Dilger <adilger@dilger.ca>
98901c
98901c
diff --git a/misc/chattr.1.in b/misc/chattr.1.in
98901c
index 2a3640c..ce426e8 100644
98901c
--- a/misc/chattr.1.in
98901c
+++ b/misc/chattr.1.in
98901c
@@ -19,24 +19,36 @@ chattr \- change file attributes on a Linux file system
98901c
 .B chattr
98901c
 changes the file attributes on a Linux file system.
98901c
 .PP
98901c
-The format of a symbolic mode is +-=[acdeijstuACDST].
98901c
+The format of a symbolic mode is +-=[aAcCdDeijsStTu].
98901c
 .PP
98901c
 The operator `+' causes the selected attributes to be added to the
98901c
 existing attributes of the files; `-' causes them to be removed; and
98901c
 `=' causes them to be the only attributes that the files have.
98901c
 .PP
98901c
-The letters `acdeijstuACDST' select the new attributes for the files:
98901c
-append only (a), compressed (c), no dump (d), extent format (e), immutable (i),
98901c
-data journalling (j), secure deletion (s), no tail-merging (t),
98901c
-undeletable (u), no atime updates (A), no copy on write (C),
98901c
-synchronous directory updates (D), synchronous updates (S),
98901c
-and top of directory hierarchy (T).
98901c
+The letters `aAcCdDeijsStTu' select the new attributes for the files:
98901c
+append only (a),
98901c
+no atime updates (A),
98901c
+compressed (c),
98901c
+no copy on write (C),
98901c
+no dump (d),
98901c
+synchronous directory updates (D),
98901c
+extent format (e),
98901c
+immutable (i),
98901c
+data journalling (j),
98901c
+secure deletion (s),
98901c
+synchronous updates (S),
98901c
+no tail-merging (t),
98901c
+top of directory hierarchy (T),
98901c
+and undeletable (u).
98901c
 .PP
98901c
 The following attributes are read-only, and may be listed by
98901c
 .BR lsattr (1)
98901c
-but not modified by chattr: huge file (h), compression error (E),
98901c
-indexed directory (I), compression raw access (X), and compressed dirty
98901c
-file (Z).
98901c
+but not modified by chattr:
98901c
+compression error (E),
98901c
+huge file (h),
98901c
+indexed directory (I),
98901c
+compression raw access (X),
98901c
+and compressed dirty file (Z).
98901c
 .SH OPTIONS
98901c
 .TP
98901c
 .B \-R
98901c
@@ -51,14 +63,14 @@ Suppress most error messages.
98901c
 .BI \-v " version"
98901c
 Set the file's version/generation number.
98901c
 .SH ATTRIBUTES
98901c
-When a file with the 'A' attribute set is accessed, its atime record is
98901c
-not modified.  This avoids a certain amount of disk I/O for laptop
98901c
-systems.
98901c
-.PP
98901c
 A file with the `a' attribute set can only be open in append mode for writing.
98901c
 Only the superuser or a process possessing the CAP_LINUX_IMMUTABLE
98901c
 capability can set or clear this attribute.
98901c
 .PP
98901c
+When a file with the 'A' attribute set is accessed, its atime record is
98901c
+not modified.  This avoids a certain amount of disk I/O for laptop
98901c
+systems.
98901c
+.PP
98901c
 A file with the `c' attribute set is automatically compressed on the disk
98901c
 by the kernel.  A read from this file returns uncompressed data.  A write to
98901c
 this file compresses data before storing them on the disk.  Note: please
98901c
@@ -74,27 +86,21 @@ be fully stable.  If the 'C' flag is set on a directory, it will have no
98901c
 effect on the directory, but new files created in that directory will
98901c
 the No_COW attribute.)
98901c
 .PP
98901c
-When a directory with the `D' attribute set is modified,
98901c
-the changes are written synchronously on the disk; this is equivalent to
98901c
-the `dirsync' mount option applied to a subset of the files.
98901c
-.PP
98901c
 A file with the `d' attribute set is not candidate for backup when the
98901c
 .BR dump (8)
98901c
 program is run.
98901c
 .PP
98901c
-The 'E' attribute is used by the experimental compression patches to
98901c
-indicate that a compressed file has a compression error.  It may not be
98901c
-set or reset using
98901c
-.BR chattr (1),
98901c
-although it can be displayed by
98901c
-.BR lsattr (1).
98901c
+When a directory with the `D' attribute set is modified,
98901c
+the changes are written synchronously on the disk; this is equivalent to
98901c
+the `dirsync' mount option applied to a subset of the files.
98901c
 .PP
98901c
 The 'e' attribute indicates that the file is using extents for mapping
98901c
 the blocks on disk.  It may not be removed using
98901c
 .BR chattr (1).
98901c
 .PP
98901c
-The 'I' attribute is used by the htree code to indicate that a directory
98901c
-is being indexed using hashed trees.  It may not be set or reset using
98901c
+The 'E' attribute is used by the experimental compression patches to
98901c
+indicate that a compressed file has a compression error.  It may not be
98901c
+set or reset using
98901c
 .BR chattr (1),
98901c
 although it can be displayed by
98901c
 .BR lsattr (1).
98901c
@@ -111,6 +117,12 @@ renamed, no link can be created to this file and no data can be written
98901c
 to the file.  Only the superuser or a process possessing the
98901c
 CAP_LINUX_IMMUTABLE capability can set or clear this attribute.
98901c
 .PP
98901c
+The 'I' attribute is used by the htree code to indicate that a directory
98901c
+is being indexed using hashed trees.  It may not be set or reset using
98901c
+.BR chattr (1),
98901c
+although it can be displayed by
98901c
+.BR lsattr (1).
98901c
+.PP
98901c
 A file with the `j' attribute has all of its data written to the ext3
98901c
 or ext4 journal before being written to the file itself, if the filesystem
98901c
 is mounted with the "data=ordered" or "data=writeback" options.  When the
98901c
@@ -127,6 +139,13 @@ When a file with the `S' attribute set is modified,
98901c
 the changes are written synchronously on the disk; this is equivalent to
98901c
 the `sync' mount option applied to a subset of the files.
98901c
 .PP
98901c
+A file with the 't' attribute will not have a partial block fragment at
98901c
+the end of the file merged with other files (for those filesystems which
98901c
+support tail-merging).  This is necessary for applications such as LILO
98901c
+which read the filesystem directly, and which don't understand tail-merged
98901c
+files.  Note: As of this writing, the ext2 or ext3 filesystems do not
98901c
+(yet, except in very experimental patches) support tail-merging.
98901c
+.PP
98901c
 A directory with the 'T' attribute will be deemed to be the top of
98901c
 directory hierarchies for the purposes of the Orlov block allocator.
98901c
 This is a hint to the block allocator used by ext3 and ext4 that the
98901c
@@ -137,13 +156,6 @@ and /home/mary are placed into separate block groups.  For directories
98901c
 where this attribute is not set, the Orlov block allocator will try to
98901c
 group subdirectories closer together where possible.
98901c
 .PP
98901c
-A file with the 't' attribute will not have a partial block fragment at
98901c
-the end of the file merged with other files (for those filesystems which
98901c
-support tail-merging).  This is necessary for applications such as LILO
98901c
-which read the filesystem directly, and which don't understand tail-merged
98901c
-files.  Note: As of this writing, the ext2 or ext3 filesystems do not
98901c
-(yet, except in very experimental patches) support tail-merging.
98901c
-.PP
98901c
 When a file with the `u' attribute set is deleted, its contents are
98901c
 saved.  This allows the user to ask for its undeletion.  Note: please
98901c
 make sure to read the bugs and limitations section at the end of this
98901c
diff --git a/misc/chattr.c b/misc/chattr.c
98901c
index 39a6016..d5a6a61 100644
98901c
--- a/misc/chattr.c
98901c
+++ b/misc/chattr.c
98901c
@@ -83,7 +83,7 @@ static unsigned long sf;
98901c
 static void usage(void)
98901c
 {
98901c
 	fprintf(stderr,
98901c
-		_("Usage: %s [-RVf] [-+=AaCcDdeijsSu] [-v version] files...\n"),
98901c
+		_("Usage: %s [-RVf] [-+=aAcCdDeijsSu] [-v version] files...\n"),
98901c
 		program_name);
98901c
 	exit(1);
98901c
 }