]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/rgw-gap-list: refactor / add more err checks 49735/head
authorMichael J. Kidd <linuxkidd@gmail.com>
Fri, 13 Jan 2023 18:13:47 +0000 (13:13 -0500)
committerMichael J. Kidd <linuxkidd@gmail.com>
Thu, 19 Jan 2023 21:30:41 +0000 (16:30 -0500)
commitb7cdf6f97940411756dcd9ca504cd088f7d5677d
tree11a1695b93071beee7d5b774f3b6992db263991f
parent3d74c007e77fcc70be3f98c6ec972f68daab3245
rgw/rgw-gap-list: refactor / add more err checks

- rename function `log_out` to `log` to prevent mental confusion with
  'logging out' of the shell, vs sending a log message.

- Centralize error checking to provide more consistent output and ease
  of error check implementation

- Add check that supplied pool name(s) exist.

- Relocate the awk script creation to just before it's needed.

- Provide usage help for specifying multiple pools on the command line

- Add hostname to log output lines.

- add checks to ensure intermediate files are not empty before
  attempting comparison.

- switch to getopt to allow  more option flexibility, removing
  dependency on positional arguments which could cause parsing / user
  confusion.
  This is a **BREAKING change** due to change in command line syntax.

- add option for temp directory specification on the command line.

- set -m option to be presence based, vs needing 0|1 param

- fix typo in usage

Signed-off-by: Michael J. Kidd <linuxkidd@gmail.com>
src/rgw/rgw-gap-list