[LU-2740] lustre utils should support '--version' Created: 02/Feb/13  Updated: 09/Dec/16  Resolved: 16/Jul/14

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.4.0
Fix Version/s: Lustre 2.6.0, Lustre 2.7.0

Type: Bug Priority: Minor
Reporter: John Hammond Assignee: James Nunez (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-5170 lfs usability Open
Severity: 3
Rank (Obsolete): 6646

 Description   
# mount.lustre --version
mount.lustre: unrecognized option '--version'
...
# lfs --version
Try interactive use without arguments or use one of:
"setstripe"
"getstripe"
...
# lctl --version
Try interactive use without arguments or use one of:
"===== metacommands ======="
"--device"
...

# lfsck --version
lfsck 1.42.6.wc2 (10-Dec-2012)

usage: lfsck [-cdfhlnv] --mdsdb mdsdb --ostdb ostdb1 [ostdb2 ...] filesystem

	-m|--mdsdb mdsdb  MDS database from e2fsck --mdsdb
	-o|--ostdb ostdb  OST databases from e2fsck --ostdb
	filesytem         full path of lustre mountpoint
...
# echo $?
16

Also ensure that exit status is 0 on handling --version.



 Comments   
Comment by James Nunez (Inactive) [ 08/Jul/14 ]

Proposed patch at: http://review.whamcloud.com/#/c/11014/

Comment by James Nunez (Inactive) [ 15/Jul/14 ]

The patch http://review.whamcloud.com/#/c/11014/ added a version string to mount.lustre, mkfs.lustre, lfs.c, and lctl.c.

Should a version string be added to other Lustre utilities? Candidate configuration utilities, from the Lustre manual, are:
l_getidentity, ll_decode_filter_fid, ll_recover_lost_found_objs, llobdstat, llog_reader, llstat, llverdev, lshowmount, lst, lustre_rmmod, lustre_rsync, plot-llstat, routerstat, and tunefs.lustre

Comment by Jodi Levi (Inactive) [ 16/Jul/14 ]

Patch landed to Master.

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