Whamcloud - gitweb
LU-17218 ofd: improve filter_fid upgrade compatibility 98/52798/4
authorBobi Jam <bobijam@whamcloud.com>
Mon, 23 Oct 2023 07:29:07 +0000 (15:29 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 11 Jan 2024 10:10:39 +0000 (10:10 +0000)
commitcffd0a099c30794a63268da008958f722882119b
treed1c81cf83ad50e69afb5ec4e27f608499cd65958
parent3c66185c84c94c47f5d8031b92165c68ef666e0e
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.

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I4c99f1d9f3962d46ebf9e9b799988ff3dba4f919
lustre/ofd/ofd_internal.h
lustre/ofd/ofd_objects.c