Whamcloud - gitweb
LU-14119 osd: delete stale OI mapping entry
authorLai Siyao <lai.siyao@whamcloud.com>
Wed, 24 Feb 2021 03:31:06 +0000 (11:31 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 15 Jul 2021 03:03:59 +0000 (03:03 +0000)
commitbb17761d85ca8978563b6f6ebf6a013f5943e3d4
tree50bc7cd3976b7eab8ccc62fcee7ad990233ffa3b
parentf7ac16daa8fc3f14dd7851323ace567c6e7c6383
LU-14119 osd: delete stale OI mapping entry

Once LMA check shows OI mapping entry is stale, delete it from
OI table, as can avoid removing whole OI files.

Don't add OI mapping into cache until osd_fid_lookup(), because
the mapping in OI is not trustable until FID in LMA is checked,
otherwise it may mislead LFSCK.

Lustre-change: https://review.whamcloud.com/41741
Lustre-commit: 99d00b97ef5f209a002f250e7772055ff1a6d6d6

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I4b50dcc02149d485e4bf4a361ca2994daa280feb
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/44231
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_scrub.c
lustre/osd-zfs/osd_internal.h
lustre/osd-zfs/osd_object.c
lustre/osd-zfs/osd_scrub.c