Whamcloud - gitweb
LU-15721 llite: only statfs for projid if PROJINHERIT set
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 14 May 2022 14:10:20 +0000 (08:10 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 22 Jun 2022 00:17:18 +0000 (00:17 +0000)
commit9085d94a9061ce6553a4c4d8c32513084e48cd2f
treefb46b1b5f8fb5e808cd2f488b47107704c350674
parent57a8769d34c77240abd62997741514c0b1aed457
LU-15721 llite: only statfs for projid if PROJINHERIT set

If projid is set on a directory but PROJINHERIT is not, do not report
the project quota for statfs.  This matches how ext4_statfs() and
xfs_fs_statfs() behave, on which Lustre project quota is modelled.

Lustre-change: https://review.whamcloud.com/47352
Lustre-commit: 4192f28733fe62173dec4a522c6589ee741df474

Fixes: e5c8f6670f ("LU-9555 quota: df should return projid-specific values")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I27cb444c3dfabc0ec693cee6fe6f9cae6db8a77a
Reviewed-on: https://review.whamcloud.com/47586
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
lustre/llite/llite_lib.c