Whamcloud - gitweb
LU-17218 ofd: improve filter_fid upgrade compatibility 08/52708/5
authorBobi Jam <bobijam@whamcloud.com>
Mon, 16 Oct 2023 10:02:54 +0000 (18:02 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 13 Nov 2023 02:07:52 +0000 (02:07 +0000)
commit4bd5dfccf1e7e23a36899547f00856d4b0fe1f32
treede5ab04b54aff5c5d59c1fde689ab6e98784e3c4
parent9c97d1969e2298fdfe5daa616e36cbe17a9b3d5e
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 3dfe2d3abc6bff161ebce62736990fabe540c1de)

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I4c99f1d9f3962d46ebf9e9b799988ff3dba4f919
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52708
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/ofd/ofd_internal.h
lustre/ofd/ofd_objects.c