Whamcloud - gitweb
chattr/lsattr: expose FS_NOCOMP_FL (aka EXT2_NOCOMPR_FL)
authorLennart Poettering <lennart@poettering.net>
Thu, 25 Feb 2021 17:33:35 +0000 (12:33 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 25 Feb 2021 17:34:40 +0000 (12:34 -0500)
commit1f4a5aba59f39a33a84152b5ae3ec0a5657b12a1
tree62feb709269178088f9316b6d005da32fffbc553
parent989a4189698c4efa53b521b6ad8236bbfc3452c3
chattr/lsattr: expose FS_NOCOMP_FL (aka EXT2_NOCOMPR_FL)

This adds support for setting/querying the FS_NOCOMP_FL/EXT2_NOCOMPR_FL
file flag to chattr/lsattr. I picked the character "m" because it was
so far unused and all other characters that were more obvious candidates
were already taken.

The flag is available on btrfs, and with this patch it is possible to
manage it correctly.

Signed-off-by: Lennart Poettering <lennart@poettering.net>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/e2p/pf.c
misc/chattr.1.in
misc/chattr.c