mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-30 18:56:23 +03:00
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 #9250
This commit is contained in:
committed by
Brian Behlendorf
parent
cb14aa4ca9
commit
c6e457dffb
@@ -34,7 +34,7 @@
|
||||
#
|
||||
# Get the given file/directory access mode
|
||||
#
|
||||
# $1 object -- file or directroy
|
||||
# $1 object -- file or directory
|
||||
#
|
||||
function get_mode #<obj>
|
||||
{
|
||||
@@ -49,7 +49,7 @@ function get_mode #<obj>
|
||||
#
|
||||
# Get the given file/directory ACL
|
||||
#
|
||||
# $1 object -- file or directroy
|
||||
# $1 object -- file or directory
|
||||
#
|
||||
function get_acl #<obj>
|
||||
{
|
||||
@@ -64,7 +64,7 @@ function get_acl #<obj>
|
||||
#
|
||||
# Get the given file/directory ACL
|
||||
#
|
||||
# $1 object -- file or directroy
|
||||
# $1 object -- file or directory
|
||||
#
|
||||
function get_compact_acl #<obj>
|
||||
{
|
||||
@@ -243,12 +243,12 @@ function usr_exec #<commands> [...]
|
||||
#
|
||||
# Count how many ACEs for the specified file or directory.
|
||||
#
|
||||
# $1 file or directroy name
|
||||
# $1 file or directory name
|
||||
#
|
||||
function count_ACE #<file or dir name>
|
||||
{
|
||||
if [[ ! -e $1 ]]; then
|
||||
log_note "Need input file or directroy name."
|
||||
log_note "Need input file or directory name."
|
||||
return 1
|
||||
fi
|
||||
|
||||
@@ -399,7 +399,7 @@ function rwx_node #user node acl_spec|access
|
||||
#
|
||||
# Get the given file/directory xattr
|
||||
#
|
||||
# $1 object -- file or directroy
|
||||
# $1 object -- file or directory
|
||||
#
|
||||
function get_xattr #<obj>
|
||||
{
|
||||
|
||||
@@ -38,9 +38,9 @@
|
||||
# Verify set, export and destroy when cachefile is set on pool.
|
||||
#
|
||||
# STRATEGY:
|
||||
# 1. Create two pools with one same cahcefile1.
|
||||
# 1. Create two pools with one same cachefile1.
|
||||
# 2. Set cachefile of the two pools to another same cachefile2.
|
||||
# 3. Verify cachefile1 not exist.
|
||||
# 3. Verify cachefile1 does not exist.
|
||||
# 4. Export the two pools.
|
||||
# 5. Verify cachefile2 not exist.
|
||||
# 6. Import the two pools and set cachefile to cachefile2.
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
# DESCRIPTION:
|
||||
# For the filesystem with casesensitivity=insensitive, normalization=formD,
|
||||
# check that lookup succeds using any name form.
|
||||
# check that lookup succeeds using any name form.
|
||||
#
|
||||
# STRATEGY:
|
||||
# For each c/n name form:
|
||||
|
||||
+1
-1
@@ -144,4 +144,4 @@ log_must_program $TESTPOOL - <<-EOF
|
||||
return 0
|
||||
EOF
|
||||
|
||||
log_pass "Listing zfs user properies should work correctly."
|
||||
log_pass "Listing zfs user properties should work correctly."
|
||||
|
||||
+1
-1
@@ -90,7 +90,7 @@ snap_count=$(zfs list -t snapshot | grep $TESTPOOL | wc -l)
|
||||
log_note "$snap_count snapshots created by ZCP"
|
||||
|
||||
if [ "$snap_count" -eq 0 ]; then
|
||||
log_fail "Channel progam failed to run."
|
||||
log_fail "Channel program failed to run."
|
||||
elif [ "$snap_count" -gt 50 ]; then
|
||||
log_fail "Too many snapshots after a cancel ($snap_count)."
|
||||
else
|
||||
|
||||
@@ -150,7 +150,7 @@ log_note "Verify zfs clone property for multiple clones"
|
||||
names=$(zfs list -rt all -o name $TESTPOOL)
|
||||
log_must verify_clones 3 0
|
||||
|
||||
log_note "verfify clone property for clone deletion"
|
||||
log_note "verify clone property for clone deletion"
|
||||
i=1
|
||||
for ds in $datasets; do
|
||||
log_must zfs destroy $ds/$TESTCLONE.$i
|
||||
|
||||
@@ -92,7 +92,7 @@ for val in 1 2 3; do
|
||||
check_used $used $val
|
||||
done
|
||||
|
||||
log_note "Verify df(1M) can corectly display the space charged."
|
||||
log_note "Verify df(1M) can correctly display the space charged."
|
||||
for val in 1 2 3; do
|
||||
used=`df -F zfs -k /$TESTPOOL/fs_$val/$FILE | grep $TESTPOOL/fs_$val \
|
||||
| awk '{print $3}'`
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
#
|
||||
# DESCRIPTION:
|
||||
# 'zfs create -p' should work as expecteed
|
||||
# 'zfs create -p' should work as expected
|
||||
#
|
||||
# STRATEGY:
|
||||
# 1. To create $newdataset with -p option, first make sure the upper level
|
||||
|
||||
@@ -53,7 +53,7 @@ verify_runnable "both"
|
||||
# run 'zfs destroy $opt <dataset>'. 3rd, check the system status.
|
||||
#
|
||||
# $1 option of 'zfs destroy'
|
||||
# $2 dataset will be destroied.
|
||||
# $2 dataset will be destroyed.
|
||||
#
|
||||
function test_n_check
|
||||
{
|
||||
|
||||
@@ -145,8 +145,8 @@ if is_global_zone; then
|
||||
check_dataset datasetexists $CTR $VOL
|
||||
check_dataset datasetnonexists $VOLSNAP $VOLCLONE
|
||||
|
||||
# Due to recusive destroy being a best-effort operation,
|
||||
# all of the non-busy datasets bellow should be gone now.
|
||||
# Due to recursive destroy being a best-effort operation,
|
||||
# all of the non-busy datasets below should be gone now.
|
||||
check_dataset datasetnonexists $FS $FSSNAP $FSCLONE
|
||||
fi
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#
|
||||
# DESCRIPTION:
|
||||
# 'zfs destroy -R <snapshot>' can destroy all the child
|
||||
# snapshots and preserves all the nested datasetss.
|
||||
# snapshots and preserves all the nested datasets.
|
||||
#
|
||||
# STRATEGY:
|
||||
# 1. Create nested datasets in the storage pool.
|
||||
@@ -57,7 +57,7 @@ for ds in $datasets; do
|
||||
datasetexists $ds || log_fail "Create $ds dataset fail."
|
||||
done
|
||||
|
||||
# create recursive nestedd snapshot
|
||||
# create recursive nested snapshot
|
||||
log_must zfs snapshot -r $TESTPOOL/$TESTFS1@snap
|
||||
for ds in $datasets; do
|
||||
datasetexists $ds@snap || log_fail "Create $ds@snap snapshot fail."
|
||||
|
||||
Reference in New Issue
Block a user