Whamcloud - gitweb
LU-16655 scrub: upgrade scrub_file from 2.12 format 80/50480/2
authorAlexander Zarochentsev <alexander.zarochentsev@hpe.com>
Tue, 28 Mar 2023 16:00:09 +0000 (19:00 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 4 Apr 2023 14:40:00 +0000 (14:40 +0000)
commita209505361cf858ec91b0a89992691c5b005ab72
tree4bf4b33a3bd548165571f71fc8fef9f8d776112e
parentada51f930d4c81e2bb22088e8702e3edd6ac4be4
LU-16655 scrub: upgrade scrub_file from 2.12 format

Scrub_file->sf_oi_count has different offsets in Lustre-2.10,
Lustre-2.12, and Lustre-2.15 due to unintended format changes.
Lustre-2.15 reads sf_oi_count from offset of sf_success_count
and may initialize incorrect number of OI files, and not be
able to do FID lookups for existing filesystem objects.

Fixes: a114f6b8c5 ("LU-13344 servers: change request timeouts to s32")
Fixes: 4c2f028a95 ("LU-9019 osd-ldiskfs: migrate to 64 bit time")
Signed-off-by: Alexander Zarochentsev <alexander.zarochentsev@hpe.com>
Change-Id: Id7c8bd555229405d604456c48447f01fd121aca9
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50480
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/lustre_scrub.h
lustre/obdclass/scrub.c
lustre/osd-ldiskfs/osd_oi.c
lustre/osd-zfs/osd_scrub.c