Whamcloud - gitweb
LUDOC-500 quota: fix the default quota usage 96/45996/2
authorHongchao Zhang <hongchao@whamcloud.com>
Fri, 7 Jan 2022 09:22:12 +0000 (17:22 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 24 Feb 2022 03:06:13 +0000 (03:06 +0000)
Setting quota limits as "0" is to remove quota limits, option "-d"
should be used to set the quota ID to use default quota.

Change-Id: I39f3933ee8658f6f7a4b1d754e09dc22a5d2addb
Signed-off-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/45996
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
ConfiguringQuotas.xml

index 346ad60..863cbdd 100644 (file)
@@ -519,12 +519,24 @@ lfs setquota {-u|-g|-p} <replaceable>username|groupname</replaceable> -d <replac
       <screen>
 # lfs setquota -P -b 0 -B 0 -i 0 -I 0 /mnt/testfs
       </screen>
+      <para>To set user 'bob' to use the default user quota:</para>
+      <screen>
+# lfs setquota -u bob -d /mnt/testfs
+      </screen>
+      <para>To set group 'bob' to use the default group quota:</para>
+      <screen>
+# lfs setquota -g bob -d /mnt/testfs
+      </screen>
+      <para>To set project 1000 to use the default project quota:</para>
+      <screen>
+# lfs setquota -p 1000 -d /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 to <literal>0</literal>.
+      limits with option '-d'.
       </para>
       </note>
     </section>