Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

I have ported reservation script.

  • Loading branch information...
commit 5f3f533735266c655c023fab53e9435fdac77a63 1 parent 9cd4963
@vikramjadhav vikramjadhav authored
View
0  ZFS-Test_Suite/tests/functional/reservation/.reservation_012_pos.ksh.swp 100644 → 100755
File mode changed
View
0  ZFS-Test_Suite/tests/functional/reservation/Makefile 100644 → 100755
File mode changed
View
4 ZFS-Test_Suite/tests/functional/reservation/reservation.cfg
@@ -43,3 +43,7 @@ export TESTVOL=testvol$$
export TESTVOL2=testvol2-$$
export TESTFILE1=file1.$$
export TESTFILE2=file2.$$
+
+#Extra Added
+export TESTFS2="zfs2"
+export FILE_WRITE=$STF_SUITE/bin/file_write
View
2  ZFS-Test_Suite/tests/functional/reservation/reservation_001_pos.ksh
@@ -27,12 +27,12 @@
# ident "@(#)reservation_001_pos.ksh 1.3 08/02/27 SMI"
#
-. $STF_SUITE/tests/functional/reservation/reservation.kshlib
. $STF_SUITE/commands.cfg
. $STF_SUITE/include/libtest.kshlib
. $STF_SUITE/include/default_common_varible.kshlib
. $STF_SUITE/STF/usr/src/tools/stf/contrib/include/logapi.kshlib
. $STF_SUITE/tests/functional/reservation/reservation.cfg
+. $STF_SUITE/tests/functional/reservation/reservation.kshlib
###############################################################################
View
2  ZFS-Test_Suite/tests/functional/reservation/reservation_006_pos.ksh
@@ -105,7 +105,7 @@ log_must $ZFS set reservation=$RESV_SIZE $TESTPOOL/$TESTFS
fill_size=`expr $RESV_SIZE + 20971520`
write_count=`expr $fill_size / $BLOCK_SIZE`
-log_must ./$FILE_WRITE -o create -f $TESTDIR/$TESTFILE1 -b $BLOCK_SIZE \
+log_must $FILE_WRITE -o create -f $TESTDIR/$TESTFILE1 -b $BLOCK_SIZE \
-c $write_count -d 0
log_pass "Able to create files inside and outside reserved area"
View
3  ZFS-Test_Suite/tests/functional/reservation/reservation_007_pos.ksh
@@ -109,8 +109,7 @@ function create_resv_destroy { # args1 dataset1 args2 dataset2
avail_aft_dset1=`get_prop available $TESTPOOL`
used_aft_dset1=`get_prop used $TESTPOOL`
- echo $args2
- echo $dataset2
+
log_must $ZFS create $args2 $dataset2
log_must $ZFS set reservation=$RESV_SIZE $dataset2
View
9 ZFS-Test_Suite/tests/functional/reservation/setup.ksh
@@ -37,6 +37,15 @@ verify_runtime $RT_MEDIUM
DISK=$1
+if [ $(id -u) != 0 ]; then
+ echo "You must run as root"
+fi
+
+if [ $# != 1 ]; then
+ echo "USAGE : setup.ksh <Diskname>"
+ exit 1
+fi
+
default_setup $DISK
#default_setup_noexit $DISK
Please sign in to comment.
Something went wrong with that request. Please try again.