Whamcloud - gitweb
LU-18618 ofd: handle filter_fid properly on server 78/57678/31
authorBobi Jam <bobijam@whamcloud.com>
Wed, 8 Jan 2025 12:38:16 +0000 (20:38 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 28 Feb 2025 08:12:25 +0000 (08:12 +0000)
commitcab92c00bff91147ba54afad0def8bdfe22c3319
tree0030f0bcf8a7de7a10d28c563952a7d620e8ec01
parent2d3fe4cb512935fba94f78358d62ec561738c8fe
LU-18618 ofd: handle filter_fid properly on server

The object's filter_fid could be changed via out_xattr_set(), then the
ofd_object::ofo_ff is out of date, the old ofo_ff layout version could
be a bigger value than that of the merged file, so write/punch upon
this OFD object could be rejected as it prohibit operation with
smaller layout version than that on the disk.

Test-Parameters: testlist=sanity-flr env=ONLY=70a,ONLY_REPEAT=250
Test-Parameters: testlist=sanity-flr env=ONLY=200,ONLY_REPEAT=50
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I8bd8c1af4d7806c3d8e4ab9de5af519381d36060
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57678
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Qian Yingjin <qian@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
lustre/ofd/ofd_dev.c
lustre/ofd/ofd_internal.h
lustre/ofd/ofd_io.c
lustre/ofd/ofd_objects.c
lustre/tests/sanity-flr.sh