[LU-11875] "lfs find" does not return directories when searching for default layouts Created: 18/Jan/19  Updated: 21/Jan/19

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.12.0, Lustre 2.13.0, Lustre 2.10.6
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Andreas Dilger Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Related
is related to LU-5170 lfs usability Open
is related to LU-11739 Don't inherit default layout from roo... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

It appears that running a find to locate directories with a specific layout, like:

# mkdir /mnt/testfs/ost0
# lfs setstripe -i 0 /mnt/testfs/ost0
# lfs find /mnt/testfs -type d -i 0

does not return the directory, because it does not actually have an object on testfs-OST0000. Nevertheless, this kind of scan can be useful for finding and/or resolving problems (e.g. removing default layouts that were accidentally inherited, ala LU-11739, or finding directories where users incorrectly specified "-i 0" thinking it meant "don't specify any OST" rather than "-i -1" or not specifying anything at all).

If -type d is explicitly specified, then "-i" should check the lmm_stripe_offset of the default file layout stored on the directories, along with other arguments to see if it matches the requested layout parameters. We do not want to return directories that match the file layout only because of inherited layouts.


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