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

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