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

"lfs find" is missing "-ls" and "-printf" support


    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Lustre 2.10.0
    • Fix Version/s: None
    • Labels:
    • Rank (Obsolete):


      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.


          Issue Links



              • Assignee:
                wc-triage WC Triage
                adilger Andreas Dilger
              • Votes:
                0 Vote for this issue
                5 Start watching this issue


                • Created: