Whamcloud - gitweb
LU-15519 quota: fallocate does not increase projectid usage 35/51535/3
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Mon, 14 Feb 2022 08:36:47 +0000 (14:06 +0530)
committerOleg Drokin <green@whamcloud.com>
Thu, 19 Oct 2023 13:46:50 +0000 (13:46 +0000)
commit691387d77bfe9260b65669978fb3f988055fc1e0
tree6efbee156d03923c2d851e787b9a52ce513d5b12
parent703d8a994bf33ac07f8bd4c956880db3d9abb016
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>
Signed-off-by: Etienne AUJAMES <eaujames@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51535
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@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