[LU-3898] lfs getstripe recusively fetches stripe information without being asked to Created: 06/Sep/13 Updated: 07/Oct/13 Resolved: 07/Oct/13 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.4.1, Lustre 2.5.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Colin Faber [X] (Inactive) | Assignee: | WC Triage |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 10211 | ||||||||
| Description |
|
It seems that lfs getstripe command now has -R or --recursive option enabled by default. If I have a directory with 10k files in it, and I want to check the striping of just the directory, lfs getstripe returns the stripe info for that directory and all 10k files as well. This would be welcome if I had specified -R or --recursive option but I'm not. -cf |
| Comments |
| Comment by Andreas Dilger [ 07/Oct/13 ] |
|
Colin, this has always been the behaviour of "lfs getstripe {dir}", like "ls -l {dir}" always lists the contents of the directory and not the directory itself. You can use "lfs getstripe -d {dir}" to return the striping on the directory itself. Per the lfs(1) man page: The default behavior when a directory is specified is to
list the striping information for all files within the
specified directory (like 'ls -l'). This can be expanded
with --recursive which will recurse into all subdirectories.
If you wish to get striping information for only the
specified directory, then --directory can be used to limit
the information, like 'ls -d').
|