Whamcloud - gitweb
LU-16760 utils: support 'lfs find --attrs' and '-printf %La'
authorSebastien Buisson <sbuisson@ddn.com>
Tue, 4 Jul 2023 07:28:37 +0000 (09:28 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 28 Aug 2023 16:17:42 +0000 (16:17 +0000)
commit0c36b6b3a956f60c801162f918957c205748b4dd
treef492690fa3f2cfa6241e09bce51203ebe6fa4bd2
parent7f72dedcdfaecbe216647664d42e880f949838c6
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".

Lustre-change: https://review.whamcloud.com/51562
Lustre-commit: f0ab3ac6d6e31472c20ef538b799b96a512087f7

Add sanity-sec test_65 for Encrypted and Immutable flags.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I5e5cfe5c8c8cbed8bb79f3ad6d8116347ecfe6ac
Reviewed-by: Zhenyu Xu <bobijam@hotmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52067
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@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