From 95cc4977cdb37041b64e8bbe2b378355ba4c69d9 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Thu, 24 Feb 2022 15:28:43 -0700 Subject: [PATCH] LUDOC-500 quota: fix the default quota usage The "-d" short option for "--default" was deprecated in LU-15218 in favor of "-D". This better matches "lfs setdirstripe -d" and eventually opens up the use of "-d" for "--delete" in the future. Document "--default" in the manual since this works with both old and new Lustre releases. Fixes: 3bf774f3d9a7 ("LUDOC-500 quota: fix the default quota usage") Signed-off-by: Andreas Dilger Change-Id: I7a47ad7dd1df4788335d46e98282ed1f9e101f76 Reviewed-on: https://review.whamcloud.com/46606 Tested-by: jenkins --- ConfiguringQuotas.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ConfiguringQuotas.xml b/ConfiguringQuotas.xml index 863cbdd..d15cd39 100644 --- a/ConfiguringQuotas.xml +++ b/ConfiguringQuotas.xml @@ -493,7 +493,7 @@ lctl get_param osd-*.*.quota_slave.limit* lfs quota [-U|--default-usr|-G|--default-grp|-P|--default-prj] /mount_point lfs setquota {-U|--default-usr|-G|--default-grp|-P|--default-prj} [-b block-softlimit] \ [-B block_hardlimit] [-i inode_softlimit] [-I inode_hardlimit] /mount_point -lfs setquota {-u|-g|-p} username|groupname -d /mount_point +lfs setquota {-u|-g|-p} username|groupname --default /mount_point To set the default user quota: @@ -521,22 +521,22 @@ lfs setquota {-u|-g|-p} username|groupname -d To set user 'bob' to use the default user quota: -# lfs setquota -u bob -d /mnt/testfs +# lfs setquota -u bob --default /mnt/testfs To set group 'bob' to use the default group quota: -# lfs setquota -g bob -d /mnt/testfs +# lfs setquota -g bob --default /mnt/testfs To set project 1000 to use the default project quota: -# lfs setquota -p 1000 -d /mnt/testfs +# lfs setquota -p 1000 --default /mnt/testfs If quota limits are set for some user, group or project, it will use those specific quota limits instead of the default quota. Quota limits for any user, group or project will use the default quota by setting its quota - limits with option '-d'. + limits with option '--default'. -- 1.8.3.1