Skip to content
Browse files

Ported Clean Mirror

  • Loading branch information...
1 parent 92755a4 commit 8ec61ad4c665b7f62571c2e5ab82ab6f6c5892e9 @vikramjadhav vikramjadhav committed Dec 2, 2010
View
2 ZFS-Test_Suite/tests/functional/clean_mirror/README
@@ -28,7 +28,7 @@ Steps to execute script:
5. cd assertion_004
$./clean_mirror_004_pos.ksh Secondary_physical_device
-6. $cleanup.ksh Primary_physical_device Secondary_physical_device
+6. $cleanup.ksh
View
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
#
################################################################################
+if test $# -ne 1
+then
+ echo "USAGE : clean_mirror_001_.ksh Primary_Mirror_disk"
+ exit 1
+fi
+
verify_runnable "global"
log_assert "The primary side of a zpool mirror may be completely wiped" \
View
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
#
################################################################################
+if test $# -ne 1
+then
+ echo "USAGE : clean_mirror_002_.ksh Secondary_Mirror_disk"
+ exit 1
+fi
+
verify_runnable "global"
log_assert "The primary side of a zpool mirror may be completely wiped" \
View
7 ZFS-Test_Suite/tests/functional/clean_mirror/assertion_003/clean_mirror_003_pos.ksh
@@ -28,6 +28,7 @@
#
DISKS="$@"
+
. $STF_SUITE/commands.cfg
. $STF_SUITE/include/libtest.kshlib
. $STF_SUITE/include/default_common_varible.kshlib
@@ -61,6 +62,12 @@ FILE_WRITE=$STF_SUITE/bin/file_write
#
################################################################################
+if test $# -ne 1
+then
+ echo "USAGE : clean_mirror_003_.ksh Primary_Mirror_disk"
+ exit 1
+fi
+
verify_runnable "global"
log_assert "The primary side of a zpool mirror may be completely mangled" \
View
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
#
################################################################################
+if test $# -ne 1
+then
+ echo "USAGE : clean_mirror_004_.ksh Secondary_Mirror_disk"
+ exit 1
+fi
+
verify_runnable "global"
log_assert "The primary side of a zpool mirror may be completely mangled" \
View
10 ZFS-Test_Suite/tests/functional/clean_mirror/cleanup.ksh
@@ -41,9 +41,9 @@ destroy_pool $TESTPOOL
# recreate and destroy a zpool over the disks to restore the partitions to
# normal
-if [[ -n $SINGLE_DISK ]]; then
- log_must cleanup_devices $MIRROR_PRIMARY
-else
- log_must cleanup_devices $MIRROR_PRIMARY $MIRROR_SECONDARY
-fi
+#if [[ -n $SINGLE_DISK ]]; then
+# log_must cleanup_devices $MIRROR_PRIMARY
+#else
+# log_must cleanup_devices $MIRROR_PRIMARY $MIRROR_SECONDARY
+#fi
log_pass
View
2 ZFS-Test_Suite/tests/functional/clean_mirror/default.cfg
@@ -64,8 +64,6 @@ export MIRROR_MEGS=2096
export MIRROR_SIZE=${MIRROR_MEGS}m # default mirror size
export DD_BLOCK=$(( 64 * 1024 ))
export DD_COUNT=$(( MIRROR_MEGS * 1024 * 1024 / DD_BLOCK ))
-#export DD_BLOCK=1
-#export DD_COUNT=$MIRROR_MEGS

0 comments on commit 8ec61ad

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