Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
Lustre 2.10.0
-
9223372036854775807
Description
It would be useful to be able to add the "-ls" option to "lfs find" to print out file attributes.
Even better would be if -ls was implemented as a fixed-format option of the "--printf" command, which could print out POSIX and Lustre-specific attributes such as OST/MDT indices for stripes, MDT inode index, etc. similar to find(1) and stat(1).
Unfortunately, the % options used by find(1) and stat(1) are not consistent. In case of disagreement, the find(1) options should be used. Thankfully, it appears that "%L" is not used for --printf by either find(1) or stat(1), so it could be used to print out the Lustre-specific options, for example "%Li" for starting OST index, "%Lo" for all OST indices, "%Lc" for stripe count, "%LS" for stripe size, "%Lp" for pool, etc., with the second letter matching the short options used by lfs getstripe.
It would also be useful to add --printf to "lfs getstripe" as well.
Attachments
Issue Links
- is cloned by
-
LU-15504 "lfs find" is missing "-ls" support
- Resolved
- is duplicated by
-
LU-9689 lfs getstripe does not print globbed file names when using options such as --stripe-count and --stripe-size
- Resolved
- is related to
-
LU-16560 'lfs find -printf %w' does not print birth time
- Open
-
LU-15276 DNE3: "lfs find" able to check default directory and file layout
- Open
-
LU-15837 "lfs find -printf" improvements
- Resolved
-
LU-9537 implement "lfs getstripe --fid" for directory FIDs
- Resolved