[LU-11473] Add ‘lfs getsom’ to the lfs man page Created: 04/Oct/18 Updated: 13/Oct/18 Resolved: 13/Oct/18 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.12.0 |
| Fix Version/s: | Lustre 2.12.0 |
| Type: | Improvement | Priority: | Minor |
| Reporter: | James Nunez (Inactive) | Assignee: | James Nunez (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | LSOM | ||
| Issue Links: |
|
||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
The Lazy Size on MDT feature added the flag “getsom” to lfs that will collect lazy stat information for a file. The lfs man page needs to be updated to include this flag. Here’s what I can gather from the LSOM test plan about ‘lfs getsom’: The lfs getsom command lists file attributes that are stored on the MDS. lfs getsom is called with the full path and file name for a file on the Lustre file system. If no flags are used, then all file attributes stored on the MDS will be shown. Usage: lfs getsom [-s] [-b] [-f] <path> Flags for lfs getsom are: Flag Description SOM_FL_STRICT = 0x0001 - Known strictly correct, FLR or DoM file (SoM guaranteed). SOM_FL_STALE = 0x0002 - Known stale - was right at some point in the past, but it is known (or likely) to be incorrect now (e.g. opened for write). SOM_FL_LAZY = 0x0004 - Approximate, may never have been strictly correct, need to sync SOM data to achieve eventual consistency. |
| Comments |
| Comment by Gerrit Updater [ 04/Oct/18 ] |
|
James Nunez (jnunez@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/33290 |
| Comment by Andreas Dilger [ 04/Oct/18 ] |
|
To be honest, I don't really think of "lfs getsom" as a user interface that most tools will use, but more for testing and debugging. I'd really prefer that we integrate the use of the som xattr directly into tools like lfs find and via statx() so that a broad range of users can benefit. |
| Comment by Gerrit Updater [ 12/Oct/18 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33290/ |
| Comment by Peter Jones [ 13/Oct/18 ] |
|
Landed for 2.12 |