Whamcloud - gitweb
LU-15721 llite: only statfs for projid if PROJINHERIT set 52/47352/2
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 14 May 2022 14:10:20 +0000 (08:10 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 10 Jun 2022 15:55:46 +0000 (15:55 +0000)
commit4192f28733fe62173dec4a522c6589ee741df474
tree34ad284c943d352d0a93a63678b13744dfc17e34
parent03e4b451b0dc95fc4af2f1f48ba88b8b57ad366c
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.

Fixes: e5c8f6670f ("LU-9555 quota: df should return projid-specific values")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I27cb444c3dfabc0ec693cee6fe6f9cae6db8a77a
lustre/llite/llite_lib.c