Whamcloud - gitweb
LU-11737 lfsck: do not ignore dryrun 27/33827/2
authorAlex Zhuravlev <bzzz@whamcloud.com>
Tue, 11 Dec 2018 11:28:28 +0000 (14:28 +0300)
committerOleg Drokin <green@whamcloud.com>
Sat, 19 Jan 2019 06:30:08 +0000 (06:30 +0000)
lfsck_layout_recreate_lovea() shouldn't ignore dryrun.

Lustre-change: https://review.whamcloud.com/#/c/33826/
Lustre-commit: Ia8bafc13f148b03573dee5db26b6aff9386b5b5f

Change-Id: I686a59e87b89de666bc2042f4e655a0164d1f030
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/33827
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/lfsck/lfsck_layout.c

index bd90546..031bc26 100644 (file)
@@ -2809,6 +2809,9 @@ again:
                __u64 start;
                __u64 end;
 
+               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; i++) {