From 3583e1fd998c56977adde9abe9c9a9dc9bd88d58 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Fri, 3 Aug 2018 12:23:32 -0600 Subject: [PATCH] LU-11111 lfsck: print correct parent FID The LFSCK debug message for repairing a striped directory incorrectly prints the child FID twice, rather than printing the parent FID: MDT0002-osd: namespace repair shard 0 [0x68002f9d1:0xa47c:0x0] ... ... of the striped directory [0x68002f9d1:0xa47c:0x0] Fix this to print the parent FID. Test-Parameters: trivial Signed-off-by: Andreas Dilger Change-Id: I94b530ca6eaa07ee93bb8154bba8d356ce2f2896 Reviewed-on: https://review.whamcloud.com/32935 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Lai Siyao Reviewed-by: Ben Evans Reviewed-by: Oleg Drokin --- lustre/lfsck/lfsck_striped_dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/lfsck/lfsck_striped_dir.c b/lustre/lfsck/lfsck_striped_dir.c index 90ec731..33c57d7 100644 --- a/lustre/lfsck/lfsck_striped_dir.c +++ b/lustre/lfsck/lfsck_striped_dir.c @@ -2181,7 +2181,7 @@ next: "%d "DFID" of the striped directory "DFID" with " "dangling %s/%s, rename %s/%s, llinkea %s/%s, " "repair_lmvea %s/%s: rc = %d\n", lfsck_lfsck2name(lfsck), - i, PFID(cfid), PFID(&lnr->lnr_fid), + i, PFID(cfid), PFID(pfid), create ? "yes" : "no", create_repaired ? "yes" : "no", rename ? "yes" : "no", rename_repaired ? "yes" : "no", repair_linkea ? "yes" : "no", -- 1.8.3.1