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

"lfs find --maxdepth" should allow min/max depth

    Details

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

      Description

      All of the other options to lfs find allow the use of ! and +/- operators to negate the search option, or specify that the numeric value should be respectively greater than, or less than the specified argument. The --maxdepth option does not support these values, but indicates "less than or equal to the specified depth".

      Since "max" is already part of the option name, it might be better to deprecate that option and instead implement a --depth [+\-]n option that allows specifying the minimum or maximum depth of traversal. If used without an argument, it should specify depth-first traversal rather than breadth-first traversal, similar to find(1). The deprecated --maxdepth n option would be mapped to ! --depth +n (i.e. depth not greater than n).

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: