From: Alex Zhuravlev Date: Tue, 11 Dec 2018 11:26:13 +0000 (+0300) Subject: LU-11737 lfsck: do not ignore dryrun X-Git-Tag: 2.12.1-RC1~87 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F12%2F34312%2F2;p=fs%2Flustre-release.git LU-11737 lfsck: do not ignore dryrun lfsck_layout_recreate_lovea() shouldn't ignore dryrun. Lustre-change: https://review.whamcloud.com/33826 Lustre-commit: 875f3fc03aa15049892fe19d6a4fc1132848fced Change-Id: Ia8bafc13f148b03573dee5db26b6aff9386b5b5f Signed-off-by: Alex Zhuravlev Reviewed-by: Andreas Dilger Reviewed-by: Lai Siyao Signed-off-by: Minh Diep Reviewed-on: https://review.whamcloud.com/34312 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/lfsck/lfsck_layout.c b/lustre/lfsck/lfsck_layout.c index cb1aef9..c4c09fc 100644 --- a/lustre/lfsck/lfsck_layout.c +++ b/lustre/lfsck/lfsck_layout.c @@ -2910,6 +2910,9 @@ again: __u16 mirror_id0 = mirror_id_of(ol->ol_comp_id); __u16 mirror_id1; + if (bk->lb_param & LPF_DRYRUN) + GOTO(unlock_parent, rc = 1); + lcm = buf->lb_buf; count = le16_to_cpu(lcm->lcm_entry_count); for (i = 0; i < count; pos = ++i) {