Whamcloud - gitweb
LU-5623 osd-ldiskfs: fix typo in lost+found repair item 25/16025/2
authorAndreas Dilger <andreas.dilger@intel.com>
Wed, 19 Aug 2015 03:00:40 +0000 (21:00 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 26 Aug 2015 15:53:30 +0000 (15:53 +0000)
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 <andreas.dilger@intel.com>
Change-Id: If1c4c6246143f874a0d2de6434f5c89c67469053
Reviewed-on: http://review.whamcloud.com/16025
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-ldiskfs/osd_scrub.c
lustre/tests/sanity-scrub.sh

index 56a4a94..7713c4f 100644 (file)
@@ -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);
index efb9a64..1b9001e 100644 (file)
@@ -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"