[LU-16503] add "lfs getstripe --hex" option to print fields in hex Created: 24/Jan/23  Updated: 11/Apr/23  Resolved: 11/Apr/23

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.16.0, Lustre 2.12.9, Lustre 2.15.2
Fix Version/s: Lustre 2.16.0

Type: Improvement Priority: Minor
Reporter: Andreas Dilger Assignee: Thomas Bertschinger
Resolution: Fixed Votes: 0
Labels: easy

Rank (Obsolete): 9223372036854775807

 Description   

It would be convenient in some cases to print the "lfs getstripe" fields in hexadecimal, for example using "lfs getstripe --hex -i /path/to/file" to print the starting OST index in hex.

The "x|xattr" option already exists in setxattr to set the foreign attribute data, and should not be used as a short option for getstripe, just the long "-hex" option.



 Comments   
Comment by Thomas Bertschinger [ 15/Mar/23 ]

I've been looking into this and am willing to work on a patch if this is not already being worked on.

Comment by Peter Jones [ 15/Mar/23 ]

bertschinger it's all yours!

Comment by Gerrit Updater [ 20/Mar/23 ]

"Thomas Bertschinger <bertschinger@lanl.gov>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/50340
Subject: LU-16503 utils: add --hex option for lfs getstripe
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 15adca87714bdcf01a7f218d52bf7a613f1a7947

Comment by Gerrit Updater [ 11/Apr/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/50340/
Subject: LU-16503 utils: add --hex-idx option for lfs getstripe
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: fce9af0b7fc883834ea4ae8cb6d2045a0672cc61

Comment by Peter Jones [ 11/Apr/23 ]

Landed for 2.16

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