Whamcloud - gitweb
LUDOC-500 quota: fix the default quota usage 06/46606/2
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 24 Feb 2022 22:28:43 +0000 (15:28 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 15 Mar 2022 19:53:40 +0000 (19:53 +0000)
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 <adilger@whamcloud.com>
Change-Id: I7a47ad7dd1df4788335d46e98282ed1f9e101f76
Reviewed-on: https://review.whamcloud.com/46606
Tested-by: jenkins <devops@whamcloud.com>
ConfiguringQuotas.xml

index 863cbdd..d15cd39 100644 (file)
@@ -493,7 +493,7 @@ lctl get_param osd-*.*.quota_slave.limit*
 lfs quota [-U|--default-usr|-G|--default-grp|-P|--default-prj] <replaceable>/mount_point</replaceable>
 lfs setquota {-U|--default-usr|-G|--default-grp|-P|--default-prj} [-b <replaceable>block-softlimit</replaceable>] \
              [-B <replaceable>block_hardlimit</replaceable>] [-i <replaceable>inode_softlimit</replaceable>] [-I <replaceable>inode_hardlimit</replaceable>] <replaceable>/mount_point</replaceable>
-lfs setquota {-u|-g|-p} <replaceable>username|groupname</replaceable> -d <replaceable>/mount_point</replaceable>
+lfs setquota {-u|-g|-p} <replaceable>username|groupname</replaceable> --default <replaceable>/mount_point</replaceable>
       </screen>
       <para>To set the default user quota:</para>
       <screen>
@@ -521,22 +521,22 @@ lfs setquota {-u|-g|-p} <replaceable>username|groupname</replaceable> -d <replac
       </screen>
       <para>To set user 'bob' to use the default user quota:</para>
       <screen>
-# lfs setquota -u bob -d /mnt/testfs
+# lfs setquota -u bob --default /mnt/testfs
       </screen>
       <para>To set group 'bob' to use the default group quota:</para>
       <screen>
-# lfs setquota -g bob -d /mnt/testfs
+# lfs setquota -g bob --default /mnt/testfs
       </screen>
       <para>To set project 1000 to use the default project quota:</para>
       <screen>
-# lfs setquota -p 1000 -d /mnt/testfs
+# lfs setquota -p 1000 --default /mnt/testfs
       </screen>
       <note>
       <para>
       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 '<literal>--default</literal>'.
       </para>
       </note>
     </section>