Whamcloud - gitweb
LU-17218 ofd: improve filter_fid upgrade compatibility
authorBobi Jam <bobijam@whamcloud.com>
Mon, 23 Oct 2023 07:29:07 +0000 (15:29 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 18 Jan 2024 09:24:58 +0000 (09:24 +0000)
commitf72454ec16468cab74dcc2609005dc8cee413000
tree31615d8ae9fa64dc20c0d5f7acad1e6dec7f815a
parent04cc61f74ca8dd76fe3765a075e6e70fc0129a48
LU-17218 ofd: improve filter_fid upgrade compatibility

filter_fid could be expanded in later Lustre version, and with
upgrade then downgrade process, the filter_fid EA on disk
could has been expanded during upgrade, and won't work after
the downgrade.

This patch improves this process by allocating bigger buffer to
hold the expanded filter_fid EA then trims the unrecognizable
fileds off.

Lustre-change: https://review.whamcloud.com/52798
Lustre-commit: TBD (from cffd0a099c30794a63268da008958f722882119b)

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I4c99f1d9f3962d46ebf9e9b799988ff3dba4f919
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53662
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/ofd/ofd_internal.h
lustre/ofd/ofd_objects.c