Whamcloud - gitweb
LU-14119 osd-zfs: enable LUDA_VERIFY 74/41274/2
authorLai Siyao <lai.siyao@whamcloud.com>
Tue, 19 Jan 2021 13:37:50 +0000 (21:37 +0800)
committerLai Siyao <lai.siyao@whamcloud.com>
Thu, 21 Jan 2021 07:05:06 +0000 (15:05 +0800)
commit5eb69a6772037fcffbd0d112a42312731d2b374e
treefd132628cce1187a05a53fc8ed7fa06c10793a11
parentef7395a219899eef69dec12c2bc561f9f57f6a61
LU-14119 osd-zfs: enable LUDA_VERIFY

In osd_dir_it_rec(), if dirent is successfully got, and the FID in
dirent is sane, it returns right away, however if
LUDA_VERIFY|LUDA_VERIFY_DRYRUN is set, the FID in dirent should be
compared with the FID in LMA, and replaced with the latter one if
they are differet.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I35e2a4d4606044cd37cc5847cffc577740918988
lustre/osd-zfs/osd_index.c