Whamcloud - gitweb
LU-16655 scrub: upgrade scrub_file from 2.12 format 55/50455/6
authorAlexander Zarochentsev <alexander.zarochentsev@hpe.com>
Tue, 28 Mar 2023 16:00:09 +0000 (19:00 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 5 Apr 2023 04:36:49 +0000 (04:36 +0000)
commit126275ba8339540e46f1c517decd3d69ad1cc42c
tree5960399dbd6ed2e5d3752f4e5504717d9a0ed76f
parent869dae0f37ce0f6999b1a6348c8e594b53ba56d9
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/+/50455
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andrew Perepechko <andrew.perepechko@hpe.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