Whamcloud - gitweb
LU-14119 osd-zfs: enable LUDA_VERIFY 74/41274/3
authorLai Siyao <lai.siyao@whamcloud.com>
Tue, 19 Jan 2021 13:37:50 +0000 (21:37 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 6 Apr 2021 03:02:31 +0000 (03:02 +0000)
commitf5136e81957e4b67ae6ed7764d378b817fac5ee2
tree8dc3e78d54e6fc67139700a161260a8b657714b2
parentbf475262610671534b1b1a33cebb49d8380b74f7
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
Reviewed-on: https://review.whamcloud.com/41274
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osd-zfs/osd_index.c