Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
None
-
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
- is related to
-
LU-5170 lfs usability
-
- Open
-
Activity
Fix Version/s | New: Lustre 2.16.0 [ 15190 ] | |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Assignee | Original: WC Triage [ wc-triage ] | New: Max Dilger [ mdilger ] |
Labels | Original: easy lad23dd lfs lug23dd | New: easy lfs lug23dd lug24dd |
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.
|
Labels | Original: easy lfs lug23dd | New: easy lad23dd lfs lug23dd |
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.
|
Summary | Original: "lfs find --maxdepth" should allow min/max depth | New: add "lfs find --mindepth" |
"Maximilian Dilger <mdilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/55226
Subject:
LU-10522utils: new --mindepth for lfs findBranch: master
Current Patch Set: 5
Commit: 9df10214fb073434c6e634e5169e72aa7a606e9f