Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-2740

lustre utils should support '--version'

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.6.0, Lustre 2.7.0
    • Lustre 2.4.0
    • None
    • 3
    • 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.

      Attachments

        Issue Links

          Activity

            [LU-2740] lustre utils should support '--version'

            Patch landed to Master.

            jlevi Jodi Levi (Inactive) added a comment - Patch landed to Master.

            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

            jamesanunez James Nunez (Inactive) added a comment - 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
            jamesanunez James Nunez (Inactive) added a comment - Proposed patch at: http://review.whamcloud.com/#/c/11014/

            People

              jamesanunez James Nunez (Inactive)
              jhammond John Hammond
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: