From bb597d302fe0259ce60691677a6e79c3ff19bbb2 Mon Sep 17 00:00:00 2001 From: Fan Yong Date: Wed, 4 Mar 2015 05:09:52 +0800 Subject: [PATCH] LU-5848 lfsck: debug log for sanity-lfsck test_18e More debug information for sanity-lfsck test_18e. Signed-off-by: Fan Yong Change-Id: I18682ef13c0a12063e3cb595b2e16961451bbe89 Reviewed-on: http://review.whamcloud.com/13950 Tested-by: Jenkins Reviewed-by: Faccini Bruno Tested-by: Maloo Reviewed-by: Lai Siyao Reviewed-by: Oleg Drokin --- lustre/lfsck/lfsck_engine.c | 10 +++++----- lustre/tests/sanity-lfsck.sh | 4 ++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/lustre/lfsck/lfsck_engine.c b/lustre/lfsck/lfsck_engine.c index 7f1e1bc..8a05d84 100644 --- a/lustre/lfsck/lfsck_engine.c +++ b/lustre/lfsck/lfsck_engine.c @@ -1674,11 +1674,11 @@ int lfsck_assistant_engine(void *args) lr->lr_event = LE_PHASE1_DONE; lr->lr_status = lad->lad_post_result; rc = lfsck_assistant_notify_others(env, com, lr); - if (rc != 0) - CDEBUG(D_LFSCK, "%s: LFSCK assistant failed to " - "notify others for %s post: rc = %d\n", - lfsck_lfsck2name(lfsck), - lad->lad_name, rc); + + CDEBUG(D_LFSCK, "%s: LFSCK assistant notified " + "others for %s post: rc = %d\n", + lfsck_lfsck2name(lfsck), + lad->lad_name, rc); /* Wakeup the master engine to go ahead. */ wake_up_all(&mthread->t_ctl_waitq); diff --git a/lustre/tests/sanity-lfsck.sh b/lustre/tests/sanity-lfsck.sh index 9fb7dba..e82c72f 100644 --- a/lustre/tests/sanity-lfsck.sh +++ b/lustre/tests/sanity-lfsck.sh @@ -2204,6 +2204,8 @@ test_18e() { #define OBD_FAIL_LFSCK_DELAY3 0x1602 do_facet $SINGLEMDS $LCTL set_param fail_val=10 fail_loc=0x1602 + start_full_debug_logging + echo "Trigger layout LFSCK on all devices to find out orphan OST-object" $START_LAYOUT -r -o -c || error "(2) Fail to start LFSCK for layout!" @@ -2239,6 +2241,8 @@ test_18e() { error "(5) OST${k} Expect 'completed', but got '$cur_status'" done + stop_full_debug_logging + local repaired=$(do_facet $SINGLEMDS $LCTL get_param -n \ mdd.$(facet_svc $SINGLEMDS).lfsck_layout | awk '/^repaired_orphan/ { print $2 }') -- 1.8.3.1