From: Andreas Dilger Date: Wed, 19 Aug 2015 03:00:40 +0000 (-0600) Subject: LU-5623 osd-ldiskfs: fix typo in lost+found repair item X-Git-Tag: 2.7.59~24 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F25%2F16025%2F2;p=fs%2Flustre-release.git 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 --- 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"