From 6c78ef24d84038452f462862470fd80061861ae9 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Tue, 18 Aug 2015 21:00:40 -0600 Subject: [PATCH] LU-5623 osd-ldiskfs: fix typo in lost+found repair item Fix a typo in lr_repaired (was lr_reparied) and fix the test script that checks it to allow both spellings for interop testing with older servers. Signed-off-by: Andreas Dilger Change-Id: If1c4c6246143f874a0d2de6434f5c89c67469053 Reviewed-on: http://review.whamcloud.com/16025 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: Fan Yong Reviewed-by: Oleg Drokin --- lustre/osd-ldiskfs/osd_scrub.c | 4 ++-- lustre/tests/sanity-scrub.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lustre/osd-ldiskfs/osd_scrub.c b/lustre/osd-ldiskfs/osd_scrub.c index 56a4a94..7713c4f 100644 --- a/lustre/osd-ldiskfs/osd_scrub.c +++ b/lustre/osd-ldiskfs/osd_scrub.c @@ -3067,7 +3067,7 @@ int osd_scrub_dump(struct seq_file *m, struct osd_device *dev) "real-time_speed: "LPU64" objects/sec\n" "current_position: %u\n" "lf_scanned: "LPU64"\n" - "lf_reparied: "LPU64"\n" + "lf_repaired: "LPU64"\n" "lf_failed: "LPU64"\n", rtime, speed, new_checked, scrub->os_pos_current, scrub->os_lf_scanned, scrub->os_lf_repaired, @@ -3080,7 +3080,7 @@ int osd_scrub_dump(struct seq_file *m, struct osd_device *dev) "real-time_speed: N/A\n" "current_position: N/A\n" "lf_scanned: "LPU64"\n" - "lf_reparied: "LPU64"\n" + "lf_repaired: "LPU64"\n" "lf_failed: "LPU64"\n", sf->sf_run_time, speed, scrub->os_lf_scanned, scrub->os_lf_repaired, scrub->os_lf_failed); diff --git a/lustre/tests/sanity-scrub.sh b/lustre/tests/sanity-scrub.sh index efb9a64..1b9001e 100644 --- a/lustre/tests/sanity-scrub.sh +++ b/lustre/tests/sanity-scrub.sh @@ -1072,7 +1072,7 @@ test_14() { mount_client $MOUNT || error "(5) Fail to start client!" local LF_REPAIRED=$($SHOW_SCRUB_ON_OST | - awk '/^lf_reparied/ { print $2 }') + awk '/^lf_repa[ri]*ed/ { print $2 }') [ $LF_REPAIRED -gt 0 ] || error "(6) Some entry under /lost+found should be repaired" -- 1.8.3.1