Details

    • 9223372036854775807

    Description

      The --maxdepth M option exists, but there is no corresponding --mindepth N option to find entries at N directory levels down in the tree.

      Attachments

        Issue Links

          Activity

            [LU-10552] add "lfs find --mindepth"
            adilger Andreas Dilger made changes -
            Fix Version/s New: Lustre 2.16.0 [ 15190 ]
            Resolution New: Fixed [ 1 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            mdilger Max Dilger made changes -
            Assignee Original: WC Triage [ wc-triage ] New: Max Dilger [ mdilger ]
            adilger Andreas Dilger made changes -
            Labels Original: easy lad23dd lfs lug23dd New: easy lfs lug23dd lug24dd
            adilger Andreas Dilger made changes -
            Description Original: The {{--maxdepth M}} option exists, but there is no corresponding {{--mindepth N}} option to find entries at {{N}} directory levels down in the tree.
            New: The {{\-\-maxdepth M}} option exists, but there is no corresponding {{\-\-mindepth N}} option to find entries at {{N}} directory levels down in the tree.
            adilger Andreas Dilger made changes -
            Labels Original: easy lfs lug23dd New: easy lad23dd lfs lug23dd
            adilger Andreas Dilger made changes -
            Description Original: 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}}).
            New: The {{--maxdepth M}} option exists, but there is no corresponding {{--mindepth N}} option to find entries at {{N}} directory levels down in the tree.
            adilger Andreas Dilger made changes -
            Summary Original: "lfs find --maxdepth" should allow min/max depth New: add "lfs find --mindepth"
            pjones Peter Jones made changes -
            Labels Original: easy lfs New: easy lfs lug23dd
            adilger Andreas Dilger made changes -
            Assignee Original: Arshad Hussain [ arshad512 ] New: WC Triage [ wc-triage ]
            arshad512 Arshad Hussain made changes -
            Assignee Original: WC Triage [ wc-triage ] New: Arshad Hussain [ arshad512 ]

            People

              mdilger Max Dilger
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: