Whamcloud - gitweb
LU-15519 quota: fallocate does not increase projectid usage 76/46676/7
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Mon, 14 Feb 2022 08:36:47 +0000 (14:06 +0530)
committerOleg Drokin <green@whamcloud.com>
Mon, 30 May 2022 19:04:14 +0000 (19:04 +0000)
commit5fc934ebbbe665f24e2f11fe224065dd8e9a08ba
treec4795c58d2f1dd778cc165444a63b5b08778ad21
parent8bd1104a7b8ad0300e667f025aab17c0f93502f0
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

Fixes: 48457868a02a ("LU-3606 fallocate: Implement fallocate preallocate operation")
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: I3ed44e7ef7ca8fe49a08133449c33b62b1eff500
Reviewed-on: https://review.whamcloud.com/46676
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@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