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

iokit-gather-stats help message woks with ‘-h’ or ‘--help’ not ‘-help’

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.15.0
    • Lustre 2.12.0, Lustre 2.13.0
    • 9223372036854775807

    Description

      Running iokit-gather-stats with no flags results in

      #  /usr/bin/iokit-gather-stats
      Usage: iokit-gather-stats [-help] config_file [start|stop|cleanup] <log_name>
      

      So, to get help on the command, we should use the ‘-help’ flag

      #  /usr/bin/iokit-gather-stats -help
      getopt: invalid option -- 'e'
      getopt: invalid option -- 'l'
      getopt: invalid option -- 'p'
      Usage: iokit-gather-stats [-help] config_file [start|stop|cleanup] <log_name>
      

      Well, that didn’t help.

      Looking at the code, we should really use ‘h’ or ‘-help’. Thus, we should modify the Usage statement above.

      Attachments

        Activity

          [LU-11839] iokit-gather-stats help message woks with ‘-h’ or ‘--help’ not ‘-help’
          pjones Peter Jones made changes -
          Fix Version/s New: Lustre 2.15.0 [ 14791 ]
          Assignee Original: WC Triage [ wc-triage ] New: Arshad Hussain [ arshad512 ]
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          pjones Peter Jones added a comment -

          Landed for 2.15

          pjones Peter Jones added a comment - Landed for 2.15

          Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/43114/
          Subject: LU-11839 iokit: Fix help message
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: b8ef80984140201bb4b994ee745757f07ad5f832

          gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/43114/ Subject: LU-11839 iokit: Fix help message Project: fs/lustre-release Branch: master Current Patch Set: Commit: b8ef80984140201bb4b994ee745757f07ad5f832

          Arshad Hussain (arshad.hussain@aeoncomputing.com) uploaded a new patch: https://review.whamcloud.com/43114
          Subject: LU-11839 iokit: Fix help message
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: c58ef43f90f63cdfbb2f41db0d4a65c202b24861

          gerrit Gerrit Updater added a comment - Arshad Hussain (arshad.hussain@aeoncomputing.com) uploaded a new patch: https://review.whamcloud.com/43114 Subject: LU-11839 iokit: Fix help message Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: c58ef43f90f63cdfbb2f41db0d4a65c202b24861
          jamesanunez James Nunez (Inactive) created issue -

          People

            arshad512 Arshad Hussain
            jamesanunez James Nunez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: