[LU-7502] add lfs find --mdt-count and --mdt-hash options Created: 01/Dec/15  Updated: 25/Nov/21  Resolved: 19/Apr/17

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.8.0
Fix Version/s: Lustre 2.10.0

Type: Improvement Priority: Minor
Reporter: Andreas Dilger Assignee: Yang Sheng
Resolution: Fixed Votes: 0
Labels: dne3

Issue Links:
Related
is related to LU-7501 inconsistencies between "lfs find", "... Resolved
is related to LU-15276 DNE3: "lfs find" able to check defaul... Open
is related to LU-7495 lfs find is missing "-links" support Resolved
is related to LU-11776 add "lfs find" support for directory ... Resolved
Rank (Obsolete): 9223372036854775807

 Description   

There should be options for lfs find and lfs getstripe to use --mdt-count and --mdt-hash options for lfs find and lfs getstripe to return the striped directory stripe count and directory hash function respectively. There isn't a good short option for --mdt-count, since -M is already used for mtime. While --mdt-hash could use -H, it isn't clear that this is an option that will be used enough to justify having a short option.



 Comments   
Comment by Andreas Dilger [ 19/Sep/16 ]

The patch http://review.whamcloud.com/22581 "LU-7501 utils: keep lfs arguments consistently" is adding "lfs setdirstripe --mdt-count" and "lfs getstripe --mdt-hash" options.

Comment by Yang Sheng [ 20/Sep/16 ]

Hi, Andreas,

I want to combine this change to http://review.whamcloud.com/22581. Do you agree?

Thanks,
YangSheng

Comment by Andreas Dilger [ 20/Sep/16 ]

This one is not just adding new option names, it also needs to add functionality to lfs find to check for these cases. It makes sense to keep this as a separate patch that will probably land for 2.10, while 22581 can probably still land for 2.9 if it is refreshed quickly.

Comment by Andreas Dilger [ 14/Feb/17 ]

Yang Sheng, any chance you could work on a patch for this? I don't think it will take very long.

Comment by Gerrit Updater [ 17/Feb/17 ]

Yang Sheng (yang.sheng@intel.com) uploaded a new patch: https://review.whamcloud.com/25515
Subject: LU-7502 utils: add lfs find --mdt-count & --mdt-hash options
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 38d83b0257123d8449869d0047a88f7b8596b30f

Comment by Gerrit Updater [ 19/Apr/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/25515/
Subject: LU-7502 utils: add --mdt-count & --mdt-hash options
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: c99a393125bce54f9e673e102f8d65aca38f8114

Comment by Peter Jones [ 19/Apr/17 ]

Landed for 2.10

Generated at Sat Feb 10 02:09:27 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.