Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Ported Clean Mirror

  • Loading branch information...
commit 8ec61ad4c665b7f62571c2e5ab82ab6f6c5892e9 1 parent 92755a4
vikramjadhav vikramjadhav authored
2  ZFS-Test_Suite/tests/functional/clean_mirror/README
@@ -28,7 +28,7 @@ Steps to execute script:
28 28 5. cd assertion_004
29 29 $./clean_mirror_004_pos.ksh Secondary_physical_device
30 30
31   -6. $cleanup.ksh Primary_physical_device Secondary_physical_device
  31 +6. $cleanup.ksh
32 32
33 33
34 34
6 ZFS-Test_Suite/tests/functional/clean_mirror/assertion_001/clean_mirror_001_pos.ksh
@@ -64,6 +64,12 @@ FILE_WRITE=$STF_SUITE/bin/file_write
64 64 #
65 65 ################################################################################
66 66
  67 +if test $# -ne 1
  68 +then
  69 + echo "USAGE : clean_mirror_001_.ksh Primary_Mirror_disk"
  70 + exit 1
  71 +fi
  72 +
67 73 verify_runnable "global"
68 74
69 75 log_assert "The primary side of a zpool mirror may be completely wiped" \
6 ZFS-Test_Suite/tests/functional/clean_mirror/assertion_002/clean_mirror_002_pos.ksh
@@ -62,6 +62,12 @@ FILE_WRITE=$STF_SUITE/bin/file_write
62 62 #
63 63 ################################################################################
64 64
  65 +if test $# -ne 1
  66 +then
  67 + echo "USAGE : clean_mirror_002_.ksh Secondary_Mirror_disk"
  68 + exit 1
  69 +fi
  70 +
65 71 verify_runnable "global"
66 72
67 73 log_assert "The primary side of a zpool mirror may be completely wiped" \
7 ZFS-Test_Suite/tests/functional/clean_mirror/assertion_003/clean_mirror_003_pos.ksh
@@ -28,6 +28,7 @@
28 28 #
29 29
30 30 DISKS="$@"
  31 +
31 32 . $STF_SUITE/commands.cfg
32 33 . $STF_SUITE/include/libtest.kshlib
33 34 . $STF_SUITE/include/default_common_varible.kshlib
@@ -61,6 +62,12 @@ FILE_WRITE=$STF_SUITE/bin/file_write
61 62 #
62 63 ################################################################################
63 64
  65 +if test $# -ne 1
  66 +then
  67 + echo "USAGE : clean_mirror_003_.ksh Primary_Mirror_disk"
  68 + exit 1
  69 +fi
  70 +
64 71 verify_runnable "global"
65 72
66 73 log_assert "The primary side of a zpool mirror may be completely mangled" \
6 ZFS-Test_Suite/tests/functional/clean_mirror/assertion_004/clean_mirror_004_pos.ksh
@@ -62,6 +62,12 @@ FILE_WRITE=$STF_SUITE/bin/file_write
62 62 #
63 63 ################################################################################
64 64
  65 +if test $# -ne 1
  66 +then
  67 + echo "USAGE : clean_mirror_004_.ksh Secondary_Mirror_disk"
  68 + exit 1
  69 +fi
  70 +
65 71 verify_runnable "global"
66 72
67 73 log_assert "The primary side of a zpool mirror may be completely mangled" \
10 ZFS-Test_Suite/tests/functional/clean_mirror/cleanup.ksh
@@ -41,9 +41,9 @@ destroy_pool $TESTPOOL
41 41
42 42 # recreate and destroy a zpool over the disks to restore the partitions to
43 43 # normal
44   -if [[ -n $SINGLE_DISK ]]; then
45   - log_must cleanup_devices $MIRROR_PRIMARY
46   -else
47   - log_must cleanup_devices $MIRROR_PRIMARY $MIRROR_SECONDARY
48   -fi
  44 +#if [[ -n $SINGLE_DISK ]]; then
  45 +# log_must cleanup_devices $MIRROR_PRIMARY
  46 +#else
  47 +# log_must cleanup_devices $MIRROR_PRIMARY $MIRROR_SECONDARY
  48 +#fi
49 49 log_pass
2  ZFS-Test_Suite/tests/functional/clean_mirror/default.cfg
@@ -64,8 +64,6 @@ export MIRROR_MEGS=2096
64 64 export MIRROR_SIZE=${MIRROR_MEGS}m # default mirror size
65 65 export DD_BLOCK=$(( 64 * 1024 ))
66 66 export DD_COUNT=$(( MIRROR_MEGS * 1024 * 1024 / DD_BLOCK ))
67   -#export DD_BLOCK=1
68   -#export DD_COUNT=$MIRROR_MEGS
69 67
70 68
71 69

0 comments on commit 8ec61ad

Please sign in to comment.
Something went wrong with that request. Please try again.