Whamcloud - gitweb
LU-18757 client: Set UID/GID/PROJID on OST for OST_PUNCH RPC 47/58647/2
authorMarc Vef <mvef@whamcloud.com>
Wed, 2 Apr 2025 19:49:59 +0000 (21:49 +0200)
committerOleg Drokin <green@whamcloud.com>
Wed, 16 Apr 2025 20:41:56 +0000 (20:41 +0000)
commite6298c804fedfa2265c4674d9e7d9a2ceb14b25b
treec8eed1b3b379127dcd002af7ae961e3b48783bc8
parent4b922dec731c2440938e15c04d40f3ab8c3841be
LU-18757 client: Set UID/GID/PROJID on OST for OST_PUNCH RPC

The OST_PUNCH RPC (as generated by "truncate -s" commands) does not
set the UID/GID/PROJID stored on an OST object. This is because the
obdo fields and corresponding valid flags are not set on the client
and OST sides.

This patch adds support for setting UID/GID/PROJID on the
corresponding OST objects for operations that send the OST_PUNCH RPC.

Sanity-sec test_75 is added to check that the IDs are set on the OST
objects.

Signed-off-by: Marc Vef <mvef@whamcloud.com>
Change-Id: I9baabbe9e523c98523fa30d387197e1faf38199a
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58647
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/cl_object.h
lustre/llite/file.c
lustre/llite/lcommon_cl.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/lov/lov_io.c
lustre/ofd/ofd_dev.c
lustre/osc/osc_io.c
lustre/tests/sanity-sec.sh