From 3bf774f3d9a7756a7771936db2b87e62d1d20616 Mon Sep 17 00:00:00 2001 From: Hongchao Zhang Date: Fri, 7 Jan 2022 17:22:12 +0800 Subject: [PATCH] LUDOC-500 quota: fix the default quota usage 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 Reviewed-on: https://review.whamcloud.com/45996 Tested-by: jenkins Reviewed-by: Andreas Dilger --- ConfiguringQuotas.xml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/ConfiguringQuotas.xml b/ConfiguringQuotas.xml index 346ad60..863cbdd 100644 --- a/ConfiguringQuotas.xml +++ b/ConfiguringQuotas.xml @@ -519,12 +519,24 @@ lfs setquota {-u|-g|-p} username|groupname -d # lfs setquota -P -b 0 -B 0 -i 0 -I 0 /mnt/testfs + To set user 'bob' to use the default user quota: + +# lfs setquota -u bob -d /mnt/testfs + + To set group 'bob' to use the default group quota: + +# lfs setquota -g bob -d /mnt/testfs + + To set project 1000 to use the default project quota: + +# lfs setquota -p 1000 -d /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 to 0. + limits with option '-d'. -- 1.8.3.1