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

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