Whamcloud - gitweb
LU-16974 utils: make bandwidth options consistent 11/59411/4
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 24 May 2025 04:51:39 +0000 (22:51 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 3 Jul 2025 19:13:09 +0000 (19:13 +0000)
commitdeffab986863a476906e6b7206588de69430086e
tree250bdd92664a0d576a5b6ca74ee40e6d6d0617d0
parentdfb7286f1c6ba9d40e1153b41d0121ab51816b80
LU-16974 utils: make bandwidth options consistent

The "lfs mirror extend|resync" and "lfs migrate" commands all have
the ability to limit IO bandwidth. Some used "--bandwidth" and
others used "--bandwidth-limit". Make them all the same.

They accept the longer "--bandwidth-limit" for compatibility, but
only "--bandwidth" will be documented for brevity and ease of use.
The getopt_long() options can be abbreviated to any unique prefix,
so both do not need to be specified.

Update the usage messages and man pages to reflect these options.
Minor nearby code style fixes to the man pages as well.

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ie8702bedba9fbfa5b0ea473853a7b5480e61abb5
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59411
Tested-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Documentation/man1/lfs-migrate.1
Documentation/man1/lfs-mirror-extend.1
Documentation/man1/lfs-mirror-resync.1
lustre/utils/lfs.c