Whamcloud - gitweb
LU-17218 ofd: improve filter_fid upgrade compatibility 98/52798/8
authorBobi Jam <bobijam@whamcloud.com>
Mon, 23 Oct 2023 07:29:07 +0000 (15:29 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 23 Apr 2024 19:45:14 +0000 (19:45 +0000)
commit28c366cee6dd1ec8293e0a5aed61c9b15d8b9a96
tree327021cc673dae18f9d115531b9a9e53bd300e29
parent0661102dea52e7f21636b0ed808ebf037b946954
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
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52798
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Qian Yingjin <qian@ddn.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
lustre/ofd/ofd_internal.h
lustre/ofd/ofd_objects.c