diff options
author | Akatsuki Rui <3736910+akiirui@users.noreply.github.com> | 2021-02-22 11:42:38 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2021-02-22 11:42:38 -0500 |
commit | da3b6c27d2bdcb7bf08db01572a041ac2f2e5032 (patch) | |
tree | 4eae629916ae030ceec791d9d266145940896d92 | |
parent | bc50f5abd7697e6c1c396983c1a083d560b29bff (diff) | |
download | e2fsprogs-da3b6c27d2bdcb7bf08db01572a041ac2f2e5032.tar.gz |
chattr.1: improve attributes description to btrfs
- c: for btrfs, compression are conflicts with nodatacow and nodatasum
- C: for btrfs, nodatacow is conflict with compression
ref:
- https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs(5)#MOUNT_OPTIONS
- https://www.spinics.net/lists/linux-btrfs/msg103219.html
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r-- | misc/chattr.1.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/misc/chattr.1.in b/misc/chattr.1.in index 5a4928a54..5bc76a981 100644 --- a/misc/chattr.1.in +++ b/misc/chattr.1.in @@ -96,7 +96,8 @@ A file with the 'c' attribute set is automatically compressed on the disk by the kernel. A read from this file returns uncompressed data. A write to this file compresses data before storing them on the disk. Note: please make sure to read the bugs and limitations section at the end of this -document. +document. (Note: For btrfs, If the 'c' flag is set, then the 'C' flag +cannot be set. Also conflicts with btrfs mount option 'nodatasum') .TP .B C A file with the 'C' attribute set will not be subject to copy-on-write @@ -106,7 +107,8 @@ set on new or empty files. If it is set on a file which already has data blocks, it is undefined when the blocks assigned to the file will be fully stable. If the 'C' flag is set on a directory, it will have no effect on the directory, but new files created in that directory will -have the No_COW attribute set.) +have the No_COW attribute set. If the 'C' flag is set, then the 'c' flag +cannot be set.) .TP .B d A file with the 'd' attribute set is not a candidate for backup when the |