Whamcloud - gitweb
LU-15167 quota: fallocate send UID/GID for quota 75/45475/5
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Sun, 7 Nov 2021 14:46:29 +0000 (09:46 -0500)
committerOleg Drokin <green@whamcloud.com>
Mon, 13 Dec 2021 03:52:18 +0000 (03:52 +0000)
commit789038c97ae1072874dcd6afcc9cd78e9c885368
tree1a197e1d6687ac9530a66c5f78530c3ee00d3d18
parent83c790cbf2f8f7452e1382051564af6f155b47cf
LU-15167 quota: fallocate send UID/GID for quota

Calling fallocate() on a newly created file did not account quota
usage properly because the OST object did not have a UID/GID
assigned yet. Update the fallocate code in the OSC to always send
the file UID/GID/PROJID to the OST so that the object ownership
can be updated before space is allocated.

Test-case: sanity-quota/78 added

Fixes: 48457868a02a ("LU-3606 fallocate: Implement fallocate preallocate operation")
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: I86d80a7f415a80100f7d2fb5f417cf47bf5b2900
Reviewed-on: https://review.whamcloud.com/45475
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
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/lov/lov_io.c
lustre/ofd/ofd_dev.c
lustre/osc/osc_io.c
lustre/tests/sanity-quota.sh