Whamcloud - gitweb
LU-16265 ofd: update projid on OST by Client 01/58301/7
authorHongchao Zhang <hongchao@whamcloud.com>
Tue, 18 Feb 2025 08:42:32 +0000 (16:42 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 31 Mar 2025 05:55:08 +0000 (05:55 +0000)
commit47ce8c5341bccdc5f8ce044be5268569d217ed5d
tree4df6f2d9342373fe7cd45559c6812f807161c058
parentc7ee88bfce7394121b6771657d5f40cfea022e37
LU-16265 ofd: update projid on OST by Client

Occasionally it is possible that the projid of an OST object
does not get the projid from the MDS, even though the projid
is set correctly on the MDT inode.

This patch checks the projid of the file while writing or
truncating it on OST, and update its projid if it is 0

Signed-off-by: Hongchao Zhang <hongchao@whamcloud.com>
Change-Id: If8bf071341e3b8114add5fc7a2e741d3a101ac99
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58301
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd_support.h
lustre/ofd/ofd_objects.c
lustre/tests/sanity-quota.sh