Whamcloud - gitweb
LUDOC-393 quota: include lfs project interface 37/44137/5
authorWang Shilong <wshilong@ddn.com>
Mon, 5 Jul 2021 14:38:59 +0000 (22:38 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 6 Jul 2021 03:55:17 +0000 (03:55 +0000)
lfs-project should be recommended to set/list
project quota since chattr is server side RPMS.

Since 2.14.51, project quota feature is enabled
by default.

Signed-off-by: Wang Shilong <wshilong@ddn.com>
Change-Id: Id3e35776a3f489ec423e7633494fb074c7fc2971
Reviewed-on: https://review.whamcloud.com/44137
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
ConfiguringQuotas.xml

index 3035828..346ad60 100644 (file)
       usage database.</para>
       <para condition="l2A">Lustre filesystems formatted with a Lustre release
       prior to 2.10 can be still safely upgraded to release 2.10, but will not
-      have project quota usage reporting functional until
+      have project quota usage reporting functional until 2.15.0 or
       <literal>tune2fs -O project</literal> is run against all ldiskfs backend
       targets. This command sets the PROJECT feature flag in the superblock and
       runs e2fsck (as a result, the target must be offline). See
@@ -409,10 +409,14 @@ $ lfs quota -g eng /mnt/testfs
     <para>To limit quota usage for a specific project ID on a specific
     directory ("<literal>/mnt/testfs/dir</literal>" in this example), run:</para>
     <screen>
-$ chattr +P /mnt/testfs/dir
-$ chattr -p 1 /mnt/testfs/dir
+$ lfs project -s -p 1 -r /mnt/testfs/dir
 $ lfs setquota -p 1 -b 307200 -B 309200 -i 10000 -I 11000 /mnt/testfs
 </screen>
+    <para>  Recursively list all descendants'(of the directory) project attribute on
+    directory ("<literal>/mnt/testfs/dir</literal>" in this example), run:</para>
+    <screen>
+$ lfs project -r /mnt/testfs/dir
+</screen>
     <para>Please note that if it is desired to have
     <literal>lfs quota -p</literal> show the space/inode usage under the
     directory properly (much faster than <literal>du</literal>), then the