Whamcloud - gitweb
LU-15277 utils: lfs quota/setquota improvements 15/46615/11
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 25 Feb 2022 08:23:02 +0000 (01:23 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 30 Apr 2024 06:52:43 +0000 (06:52 +0000)
commit062456da635c0d901001eb5b6a8917dc9556518a
tree9dee4ea7c5608d38bf25578fb6d7ecdc322971b1
parent0a97a8a41796caa52ef27b0cc00b11ee5889c1fe
LU-15277 utils: lfs quota/setquota improvements

Add long options to "lfs quota" for ease of use.  Improve usage
message for "lfs quota" and "lfs setquota" to match current code.

Deprecate the "lfs quota -i MDT_IDX|-I OST_IDX" options to print one
target, since these arguments are backward from other lfs subcommands.
Add "-o" for the OST_IDX and "-m" for the MDT_IDX and long options
"--ost" and "--mdt" to match other lfs subcommands.  We may eventually
be able to liberate "-i" to use the OST_IDX, but not for a while yet.

Fix "lfs setquota" handling of long --times option.  It was being
checked in lfs_setquota_times(), but not in has_times_option().

Sort arguments to be handled (as much as possible) in alphabetical
order for ease of use in the future.

Update lfs-quota.1 and lfs-setquota.1 man pages to describe all
options and add proper argument formatting.

Test-Parameters: trivial testlist=sanity-quota
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I049f22a526469ea1ed1da04beffda6bb683ebbe6
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/46615
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sergey Cheremencev <scherementsev@ddn.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/doc/lfs-quota.1
lustre/doc/lfs-setquota.1
lustre/utils/lfs.c