Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-16760

"lfs find" support for fscrypt and other file attributes

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.16.0
    • Lustre 2.15.2
    • None
    • 9223372036854775807

    Description

      Add support to "lfs find" to detect fscrypt files.

      It is not really clear that this fits into any of the existing search types, so a reasonable solution would be to add a new option like "[!] --attrs=[^]ATTR[,...]" argument that fetches the file attribute flags (FS_ENCRYPT_FL, FS_IMMUTABLE_FL, ...) that are already returned by statx() and then add logic to include/exclude files or directories with(out) those those attributes.

      Attachments

        Issue Links

          Activity

            [LU-16760] "lfs find" support for fscrypt and other file attributes
            pjones Peter Jones added a comment -

            Landed for 2.16

            pjones Peter Jones added a comment - Landed for 2.16

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/51562/
            Subject: LU-16760 utils: support 'lfs find --attrs' and '-printf %La'
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: f0ab3ac6d6e31472c20ef538b799b96a512087f7

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/51562/ Subject: LU-16760 utils: support 'lfs find --attrs' and '-printf %La' Project: fs/lustre-release Branch: master Current Patch Set: Commit: f0ab3ac6d6e31472c20ef538b799b96a512087f7

            "Sebastien Buisson <sbuisson@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/51562
            Subject: LU-16760 utils: support 'lfs find --attrs' and '-printf %La'
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: e293c9bbae71d39b07d87eceab77394eed431765

            gerrit Gerrit Updater added a comment - "Sebastien Buisson <sbuisson@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/51562 Subject: LU-16760 utils: support 'lfs find --attrs' and '-printf %La' Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: e293c9bbae71d39b07d87eceab77394eed431765

            I've also filed https://savannah.gnu.org/bugs/?64088 "find should support file attribute flags (immutable, append-only, fscrypt, etc.)" for upstream find, so that we might use the same option names, but I don't have high hopes on it getting implemented any time soon.

            adilger Andreas Dilger added a comment - I've also filed https://savannah.gnu.org/bugs/?64088 "find should support file attribute flags (immutable, append-only, fscrypt, etc.)" for upstream find, so that we might use the same option names, but I don't have high hopes on it getting implemented any time soon.

            It would also be useful to be able to print the file attribute flags with "-printf %La" or similar, and they would print a comma-separated list of named attribute flags, and hex value of any unknown attributes.

            adilger Andreas Dilger added a comment - It would also be useful to be able to print the file attribute flags with " -printf %La " or similar, and they would print a comma-separated list of named attribute flags, and hex value of any unknown attributes.

            People

              sebastien Sebastien Buisson
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: