Whamcloud - gitweb
LU-17218 ofd: improve filter_fid upgrade compatibility 98/52798/1
authorBobi Jam <bobijam@whamcloud.com>
Mon, 23 Oct 2023 07:29:07 +0000 (15:29 +0800)
committerBobi Jam <bobijam@whamcloud.com>
Mon, 23 Oct 2023 07:30:23 +0000 (15:30 +0800)
commit3dfe2d3abc6bff161ebce62736990fabe540c1de
tree9c7e03a0d414f5964cf6b925fbd410d9f2f2a1b1
parenta9411a9856a0a1539ea2c8dc9c7eb1bd8fa2c409
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