Whamcloud - gitweb
LU-17923 lod: update layout ver for mirror merge/split 88/55388/16
authorBobi Jam <bobijam@whamcloud.com>
Tue, 11 Jun 2024 09:17:02 +0000 (17:17 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 2 Jan 2025 20:40:20 +0000 (20:40 +0000)
commitc8f3930b904f627958e1c802c6a500a0b2fc1d6c
treeb1264b2e7e212f4cdbd94414a05400d3f6dee99d
parentabd75cd6be4f2d54d58bb89ed0296a6e37db1d2c
LU-17923 lod: update layout ver for mirror merge/split

In mirror extend/split, mdd_xattr_merge() and mdd_xattr_split() will
call mdd_object_pfid_replace() to update filter_fid for OST objects,
so we can update its layout version there.

This patch adds filter_fid::ff_layout_version in
lod_obj_stripe_replace_parent_fid_cb().

This patch adds ost_fid2_objpath() in test framework to derive OST
object path from its fid.

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I68aca0e1f29c8e2800a28cfd3d630721ef869082
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55388
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Mikhail Pershin <mpershin@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/lod/lod_object.c
lustre/tests/sanity-flr.sh
lustre/tests/sanity-sec.sh
lustre/tests/sanity.sh
lustre/tests/test-framework.sh