Whamcloud - gitweb
LU-10283 mdd: fix parent FID in changelog of striped directory
authorDmitry Ivanov <dmitry.ivanov2@hpe.com>
Mon, 16 May 2022 18:15:19 +0000 (12:15 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 13 Jan 2024 02:48:06 +0000 (02:48 +0000)
commitf0aed9c14221d04778a8803679205bbff33e284b
tree12c60375049d79af7620e776dcdf824854ab4889
parent127128bed3dc7a69645087aaa50d6c342987366a
LU-10283 mdd: fix parent FID in changelog of striped directory

Changelog entry for the file operations such as create, rename,
link, unlink, mkdir referred to parent FID ("p=") as a shard's
FID in a striped directory. The same was true for the source's
parent FID ("sp="). This commit hides the Lustre intrinsics from
user displaying the parent's directory FID instead as expected.

An object might be in a remote MDT, in which case obtaining the parent
FID via the linkEA can be an expensive operation, so the parent FID is
cached in the mdd_object, so that the cost of the cross-MDT RPC is
amortized over the lifetime of the object.

Certain userspace tools might depend on the previous behavior of
displaying the shard's parent FID in the changelog records, so this
canp be enabled by setting mdd.*.enable_shard_pfid=1, if this is
required for compatibility.

Lustre-change: https://review.whamcloud.com/51322
Lustre-commit: 3554923af9e3260235865d90949ecd2924bbbc0e

HPE-bug-id: LUS-10721
Signed-off-by: Dmitry Ivanov <dmitry.ivanov2@hpe.com>
Change-Id: Iae15b49f5852f36ba62ae1706d3a5f4ebf307bc4
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53475
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexandre Ioffe <aioffe@ddn.com>
Reviewed-by: Vitaliy Kuznetsov <vkuznetsov@ddn.com>
lustre/doc/lfs-changelog.1
lustre/mdd/mdd_device.c
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_internal.h
lustre/mdd/mdd_lproc.c