From 875f3fc03aa15049892fe19d6a4fc1132848fced Mon Sep 17 00:00:00 2001 From: Alex Zhuravlev Date: Tue, 11 Dec 2018 14:26:13 +0300 Subject: [PATCH 1/1] LU-11737 lfsck: do not ignore dryrun lfsck_layout_recreate_lovea() shouldn't ignore dryrun. Change-Id: Ia8bafc13f148b03573dee5db26b6aff9386b5b5f Signed-off-by: Alex Zhuravlev Reviewed-on: https://review.whamcloud.com/33826 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Lai Siyao --- lustre/lfsck/lfsck_layout.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lustre/lfsck/lfsck_layout.c b/lustre/lfsck/lfsck_layout.c index 7f401a6..9f45c9a 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) { -- 1.8.3.1