Whamcloud - gitweb
LU-15519 quota: fallocate does not increase projectid usage
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Mon, 14 Feb 2022 08:36:47 +0000 (14:06 +0530)
committerAndreas Dilger <adilger@whamcloud.com>
Sun, 16 Jul 2023 23:06:35 +0000 (23:06 +0000)
commit44f3c1bbf1f5cb3d98eadcfab76a2dab5245660a
tree3ae5bdb19aca70eae98862615f34fa462dbfb69b
parentafe0853bda9d99ecc978b9622a6c8fd7ef21a2a2
LU-15519 quota: fallocate does not increase projectid usage

fallocate() was not accounting for projectid quota usage.
This was happening due to two reasons. 1) the projectid
was not properly passed to md_op_data in ll_set_project()
and 2) the OBD_MD_FLPROJID flag was not set receive the
projctid.

This patch addresses the above reasons.

Test-case: sanity-quota/78a added

Lustre-change: https://review.whamcloud.com/46676
Lustre-commit: 5fc934ebbbe665f24e2f11fe224065dd8e9a08ba

Fixes: 48457868a02a ("LU-3606 fallocate: Implement fallocate preallocate operation")
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: I3ed44e7ef7ca8fe49a08133449c33b62b1eff500
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51639
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/include/cl_object.h
lustre/llite/file.c
lustre/llite/vvp_object.c
lustre/lov/lov_io.c
lustre/osc/osc_io.c
lustre/tests/sanity-quota.sh