Whamcloud - gitweb
LU-16760 utils: support 'lfs find --attrs' and '-printf %La' 62/51562/8
authorSebastien Buisson <sbuisson@ddn.com>
Tue, 4 Jul 2023 07:28:37 +0000 (09:28 +0200)
committerOleg Drokin <green@whamcloud.com>
Thu, 24 Aug 2023 04:33:54 +0000 (04:33 +0000)
commitf0ab3ac6d6e31472c20ef538b799b96a512087f7
tree89680d104c577150a961c71add65a27b1b2c5038
parentf96186ec4fca196838d64e336aeba6d6d57481d5
LU-16760 utils: support 'lfs find --attrs' and '-printf %La'

Add support to "lfs find" to filter on file attribute flags, with the
syntax "[!] --attrs=[^]ATTR[,...]".
Add support to "lfs find" to print file attribute flags with
"-printf %La".

Add sanity-sec test_65 for Encrypted and Immutable flags.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I5e5cfe5c8c8cbed8bb79f3ad6d8116347ecfe6ac
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51562
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Zhenyu Xu <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/doc/lfs-find.1
lustre/include/lustre/lustreapi.h
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/llite/dir.c
lustre/tests/sanity-sec.sh
lustre/utils/lfs.c
lustre/utils/liblustreapi.c