Fix typos in tests/
Reviewed-by: Ryan Moeller <ryan@ixsystems.com> Reviewed-by: Richard Laager <rlaager@wiktel.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Andrea Gelmini <andrea.gelmini@gelma.net> Closes #9248
This commit is contained in:
parent
b520706f29
commit
c953960048
|
@ -31,11 +31,11 @@
|
||||||
# 4. Attempt to receive a raw send stream as a child of an unencrypted dataset
|
# 4. Attempt to receive a raw send stream as a child of an unencrypted dataset
|
||||||
# 5. Verify the key is unavailable
|
# 5. Verify the key is unavailable
|
||||||
# 6. Attempt to load the key and mount the dataset
|
# 6. Attempt to load the key and mount the dataset
|
||||||
# 7. Verify the cheksum of the file is the same as the original
|
# 7. Verify the checksum of the file is the same as the original
|
||||||
# 8. Attempt to receive a raw send stream as a child of an encrypted dataset
|
# 8. Attempt to receive a raw send stream as a child of an encrypted dataset
|
||||||
# 9. Verify the key is unavailable
|
# 9. Verify the key is unavailable
|
||||||
# 10. Attempt to load the key and mount the dataset
|
# 10. Attempt to load the key and mount the dataset
|
||||||
# 11. Verify the cheksum of the file is the same as the original
|
# 11. Verify the checksum of the file is the same as the original
|
||||||
#
|
#
|
||||||
|
|
||||||
verify_runnable "both"
|
verify_runnable "both"
|
||||||
|
|
|
@ -147,7 +147,7 @@ function setup_clone_env
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Clean up the test environmnet
|
# Clean up the test environment
|
||||||
#
|
#
|
||||||
# $1 number of snapshot Note: Currently only support three snapshots.
|
# $1 number of snapshot Note: Currently only support three snapshots.
|
||||||
#
|
#
|
||||||
|
|
|
@ -65,7 +65,7 @@ snap2=$fs@snap2
|
||||||
snap3=$fs@snap3
|
snap3=$fs@snap3
|
||||||
|
|
||||||
set -A badargs \
|
set -A badargs \
|
||||||
"" "$TESTPOOL" "$TESTFS" "$fs" "$fs@nonexisten_snap" "?" \
|
"" "$TESTPOOL" "$TESTFS" "$fs" "$fs@nonexistent_snap" "?" \
|
||||||
"$snap1/blah" "$snap1@blah" "-i" "-x" "-i $fs" \
|
"$snap1/blah" "$snap1@blah" "-i" "-x" "-i $fs" \
|
||||||
"-x $snap1 $snap2" "-i $snap1" \
|
"-x $snap1 $snap2" "-i $snap1" \
|
||||||
"-i $snap2 $snap1" "$snap1 $snap2" "-i $snap1 $snap2 $snap3" \
|
"-i $snap2 $snap1" "$snap1 $snap2" "-i $snap1 $snap2 $snap3" \
|
||||||
|
|
|
@ -64,4 +64,4 @@ do
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
log_pass "Setting invalid {primary|secondary}cache on fs or volume fail as expeced."
|
log_pass "Setting invalid {primary|secondary}cache on fs or volume fail as expected."
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
#
|
#
|
||||||
# STRATEGY:
|
# STRATEGY:
|
||||||
# 1. Setup a pool and create fs, volume, snapshot clone within it.
|
# 1. Setup a pool and create fs, volume, snapshot clone within it.
|
||||||
# 2. Set canmount=noauto for each dataset and check the retuen value
|
# 2. Set canmount=noauto for each dataset and check the return value
|
||||||
# and check if it still can be mounted by mount -a.
|
# and check if it still can be mounted by mount -a.
|
||||||
# 3. mount each dataset(except volume) to see if it can be mounted.
|
# 3. mount each dataset(except volume) to see if it can be mounted.
|
||||||
#
|
#
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
#
|
#
|
||||||
# DESCRIPTION:
|
# DESCRIPTION:
|
||||||
# If ZFS is currently managing the file system but it is currently unmoutned,
|
# If ZFS is currently managing the file system but it is currently unmounted,
|
||||||
# and the mountpoint property is changed, the file system remains unmounted.
|
# and the mountpoint property is changed, the file system remains unmounted.
|
||||||
#
|
#
|
||||||
# STRATEGY:
|
# STRATEGY:
|
||||||
|
|
|
@ -156,7 +156,7 @@ function random_string
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Get vaild user defined property name
|
# Get valid user defined property name
|
||||||
#
|
#
|
||||||
# $1 user defined property name length
|
# $1 user defined property name length
|
||||||
#
|
#
|
||||||
|
@ -189,7 +189,7 @@ function valid_user_property
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Get invaild user defined property name
|
# Get invalid user defined property name
|
||||||
#
|
#
|
||||||
# $1 user defined property name length
|
# $1 user defined property name length
|
||||||
#
|
#
|
||||||
|
|
|
@ -82,7 +82,7 @@ while (( i < ${#args[*]} )); do
|
||||||
((i = i + 1))
|
((i = i + 1))
|
||||||
done
|
done
|
||||||
|
|
||||||
# Testing the invalid senario: the child volume already has an
|
# Testing the invalid scenario: the child volume already has an
|
||||||
# identical name snapshot, zfs snapshot -r should fail when
|
# identical name snapshot, zfs snapshot -r should fail when
|
||||||
# creating snapshot with -r for the parent
|
# creating snapshot with -r for the parent
|
||||||
log_must zfs destroy $TESTPOOL/$TESTCTR/$TESTFS1@$TESTSNAP
|
log_must zfs destroy $TESTPOOL/$TESTCTR/$TESTFS1@$TESTSNAP
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
# STRATEGY:
|
# STRATEGY:
|
||||||
# 1. Create 2 separate zpools, zpool name lengths must be the same.
|
# 1. Create 2 separate zpools, zpool name lengths must be the same.
|
||||||
# 2. Attempt to simultaneously create a snapshot of each pool.
|
# 2. Attempt to simultaneously create a snapshot of each pool.
|
||||||
# 3. Veriy the snapshot creation failed.
|
# 3. Verify the snapshot creation failed.
|
||||||
#
|
#
|
||||||
|
|
||||||
verify_runnable "both"
|
verify_runnable "both"
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
# 1. Create multiple datasets
|
# 1. Create multiple datasets
|
||||||
# 2. Create multiple snapshots with a list of valid and invalid
|
# 2. Create multiple snapshots with a list of valid and invalid
|
||||||
# snapshot names
|
# snapshot names
|
||||||
# 3. Verify the valid snpashot creation
|
# 3. Verify the valid snapshot creation
|
||||||
|
|
||||||
. $STF_SUITE/include/libtest.shlib
|
. $STF_SUITE/include/libtest.shlib
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ for i in 1 2 3; do
|
||||||
txg_tag=$(echo "$txg_group" | nawk -v j=$i 'FNR == j {print}')
|
txg_tag=$(echo "$txg_group" | nawk -v j=$i 'FNR == j {print}')
|
||||||
[[ $txg_tag != $(echo "$txg_group" | \
|
[[ $txg_tag != $(echo "$txg_group" | \
|
||||||
nawk -v j=$i 'FNR == j {print}') ]] \
|
nawk -v j=$i 'FNR == j {print}') ]] \
|
||||||
&& log_fail "snapshots belong to differnt transaction groups"
|
&& log_fail "snapshots belong to different transaction groups"
|
||||||
done
|
done
|
||||||
log_note "verify snapshot contents"
|
log_note "verify snapshot contents"
|
||||||
for ds in $datasets; do
|
for ds in $datasets; do
|
||||||
|
|
|
@ -83,7 +83,7 @@ function restore_dataset
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
log_assert "zfs fource unmount and destroy in snapshot directory will not cause error."
|
log_assert "zfs force unmount and destroy in snapshot directory will not cause error."
|
||||||
log_onexit cleanup
|
log_onexit cleanup
|
||||||
|
|
||||||
for fs in $TESTPOOL/$TESTFS $TESTPOOL ; do
|
for fs in $TESTPOOL/$TESTFS $TESTPOOL ; do
|
||||||
|
@ -139,4 +139,4 @@ log_must eval zpool list > /dev/null 2>&1
|
||||||
log_must eval zpool status > /dev/null 2>&1
|
log_must eval zpool status > /dev/null 2>&1
|
||||||
zpool iostat > /dev/null 2>&1
|
zpool iostat > /dev/null 2>&1
|
||||||
|
|
||||||
log_pass "zfs fource unmount and destroy in snapshot directory will not cause error."
|
log_pass "zfs force unmount and destroy in snapshot directory will not cause error."
|
||||||
|
|
|
@ -140,7 +140,7 @@ while (( i < ${#mntp_fs[*]} )); do
|
||||||
((i = i + 2))
|
((i = i + 2))
|
||||||
done
|
done
|
||||||
|
|
||||||
log_note "Verify 'zfs unshare -a' succeds as root."
|
log_note "Verify 'zfs unshare -a' succeeds as root."
|
||||||
|
|
||||||
i=0
|
i=0
|
||||||
typeset sharenfs_val
|
typeset sharenfs_val
|
||||||
|
|
|
@ -46,7 +46,7 @@ verify_runnable "global"
|
||||||
export NONEXISTFSNAME="nonexistfs50charslong_0123456789012345678901234567"
|
export NONEXISTFSNAME="nonexistfs50charslong_0123456789012345678901234567"
|
||||||
export NONEXISTMOUNTPOINT="/nonexistmountpoint_0123456789"
|
export NONEXISTMOUNTPOINT="/nonexistmountpoint_0123456789"
|
||||||
|
|
||||||
set -A opts "" "$TESTPOOL/$NONEXISTFSNAME" "$NONEEXISTMOUNTPOINT" "-?" "-1" \
|
set -A opts "" "$TESTPOOL/$NONEXISTFSNAME" "$NONEXISTMOUNTPOINT" "-?" "-1" \
|
||||||
"-a blah" "$TESTPOOL/$TESTFS $TESTPOOL/$TESTFS1" \
|
"-a blah" "$TESTPOOL/$TESTFS $TESTPOOL/$TESTFS1" \
|
||||||
"-f $TESTPOOL/$TESTFS $TESTPOOL/$TESTFS1" \
|
"-f $TESTPOOL/$TESTFS $TESTPOOL/$TESTFS1" \
|
||||||
"$TESTPOOL/$TESTFS $TESTDIR" "-f $TESTPOOL/$TESTFS $TESTDIR" \
|
"$TESTPOOL/$TESTFS $TESTDIR" "-f $TESTPOOL/$TESTFS $TESTDIR" \
|
||||||
|
|
|
@ -133,7 +133,7 @@ COUNT=$( wc -l $output | awk '{print $1}' )
|
||||||
|
|
||||||
if (( COUNT != OLDCOUNT )); then
|
if (( COUNT != OLDCOUNT )); then
|
||||||
cat $output
|
cat $output
|
||||||
log_fail "Unexpect old-version filesystems print out."
|
log_fail "Unexpected old-version filesystems print out."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log_pass "Executing 'zfs upgrade' command succeeds."
|
log_pass "Executing 'zfs upgrade' command succeeds."
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
# return an error.
|
# return an error.
|
||||||
#
|
#
|
||||||
# STRATEGY:
|
# STRATEGY:
|
||||||
# 1. Create an array containg each zpool sub-command name.
|
# 1. Create an array containing each zpool sub-command name.
|
||||||
# 2. For each element, execute the sub-command.
|
# 2. For each element, execute the sub-command.
|
||||||
# 3. Verify it returns an error.
|
# 3. Verify it returns an error.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue