Home
last modified time | relevance | path

Searched refs:ZFS (Results 1 – 25 of 513) sorted by relevance

12345678910>>...21

/titanic_41/usr/src/test/zfs-tests/tests/functional/delegate/
H A Ddelegate_common.kshlib56 log_must $ZFS destroy -Rf $ROOT_TESTFS
58 log_must $ZFS create $ROOT_TESTFS
62 log_must $ZFS destroy -Rf $ROOT_TESTVOL
64 log_must $ZFS create -V $VOLSIZE $ROOT_TESTVOL
344 log_must $ZFS create $SUBFS
347 log_must $ZFS allow -l $STAFF1 $LOCAL_SET $dtst
348 log_must $ZFS allow -d $STAFF2 $DESC_SET $dtst
349 log_must $ZFS allow $OTHER1 $LOCAL_DESC_SET $dtst
350 log_must $ZFS allow $OTHER2 $LOCAL_DESC_SET $dtst
383 log_must $ZFS snapshot $snap
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/history/
H A Dhistory_002_pos.ksh52 datasetexists $dataset && $ZFS destroy -Rf $dataset
92 run_and_verify "$ZFS create $fs"
96 run_and_verify "$ZFS set ${props[$i]}=${props[((i+1))]} $fs"
103 run_and_verify "$ZFS inherit ${props[$i]} $fs"
109 run_and_verify "$ZFS create -V 64M $vol"
110 run_and_verify "$ZFS set volsize=32M $vol"
111 run_and_verify "$ZFS snapshot $fssnap"
112 run_and_verify "$ZFS hold tag $fssnap"
113 run_and_verify "$ZFS release tag $fssnap"
114 run_and_verify "$ZFS snapshot $volsnap"
[all …]
H A Dhistory_004_pos.ksh53 $ZFS set compression=off $TESTPOOL/$TESTFS &
54 $ZFS set atime=off $TESTPOOL/$TESTFS &
55 $ZFS create $TESTPOOL/$TESTFS1 &
56 $ZFS create $TESTPOOL/$TESTFS2 &
57 $ZFS create $TESTPOOL/$TESTFS3 &
61 $ZFS snapshot $TESTPOOL/$TESTFS1@snap &
62 $ZFS snapshot $TESTPOOL/$TESTFS2@snap &
63 $ZFS snapshot $TESTPOOL/$TESTFS3@snap &
67 $ZFS clone $TESTPOOL/$TESTFS1@snap $TESTPOOL/clone1 &
68 $ZFS clone $TESTPOOL/$TESTFS2@snap $TESTPOOL/clone2 &
[all …]
H A Dhistory_006_neg.ksh51 log_must $ZFS destroy -rf $fs
53 log_must $ZFS create $fs
62 log_must $ZFS set sharenfs=on $fs
63 log_must $ZFS snapshot $snap1
64 log_must $ZFS hold tag $snap1
65 log_must $ZFS snapshot $snap2
70 log_must $ZFS list $fs > /dev/null
71 log_must $ZFS get mountpoint $fs > /dev/null
72 log_must $ZFS unmount $fs
73 log_must $ZFS mount $fs
[all …]
H A Dhistory_010_pos.ksh50 datasetexists $root_testfs && log_must $ZFS destroy -rf $root_testfs
62 run_and_verify "$ZFS create $root_testfs" "-l"
63 run_and_verify "$ZFS allow $HIST_GROUP snapshot,mount $root_testfs" "-l"
64 run_and_verify "$ZFS allow $HIST_USER destroy,mount $root_testfs" "-l"
65 run_and_verify "$ZFS allow $HIST_USER reservation $root_testfs" "-l"
66 run_and_verify "$ZFS allow $HIST_USER allow $root_testfs" "-l"
67 run_and_verify -u "$HIST_USER" "$ZFS snapshot $root_testfs@snap" "-l"
68 run_and_verify -u "$HIST_USER" "$ZFS destroy $root_testfs@snap" "-l"
69 run_and_verify -u "$HIST_USER" "$ZFS set reservation=64M $root_testfs" "-l"
71 "$ZFS allow $HIST_USER reservation $root_testfs" "-l"
[all …]
H A Dhistory_008_pos.ksh51 log_must $ZFS destroy -rf $root_testfs
53 log_must $ZFS create $root_testfs
62 log_must $ZFS create $fs
65 run_and_verify "$ZFS snapshot -r $root_testfs@snap" "-i"
66 run_and_verify "$ZFS hold -r tag $root_testfs@snap" "-i"
67 run_and_verify "$ZFS release -r tag $root_testfs@snap" "-i"
68 log_must $ZFS snapshot $root_testfs@snap2
69 log_must $ZFS snapshot $root_testfs@snap3
70 run_and_verify "$ZFS rollback -r $root_testfs@snap" "-i"
71 run_and_verify "$ZFS inherit -r mountpoint $root_testfs" "-i"
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_destroy/
H A Dzfs_destroy_016_pos.ksh33 log_must $ZFS destroy -R $TESTPOOL/$TESTFS1
35 log_must $ZFS destroy -Rf $TESTPOOL/$TESTVOL
42 log_must $ZFS destroy $TESTPOOL/$TESTFS1@snap$i
44 log_must $ZFS destroy $TESTPOOL/$TESTVOL@snap$i
45 log_must $ZFS snapshot $TESTPOOL/$TESTFS1@snap$i
46 log_must $ZFS snapshot $TESTPOOL/$TESTVOL@snap$i
81 log_must $ZFS create $TESTPOOL/$TESTFS1
82 log_must $ZFS create -V $VOLSIZE $TESTPOOL/$TESTVOL
88 log_must $ZFS destroy $TESTPOOL/$TESTFS1$args
89 log_must $ZFS destroy $TESTPOOL/$TESTVOL$args
[all …]
H A Dzfs_destroy_015_pos.ksh33 datasetexists $TESTPOOL/$TESTFS1 && $ZFS destroy -R $TESTPOOL/$TESTFS1
34 datasetexists $TESTPOOL/$TESTFS2 && $ZFS destroy -R $TESTPOOL/$TESTFS2
42 $ZFS create $TESTPOOL/$TESTFS1
47 log_must $ZFS snapshot $TESTPOOL/$TESTFS1@snap$i
51 log_must $ZFS destroy $TESTPOOL/$TESTFS1@$snaplist
57 log_mustnot $ZFS destroy $TESTPOOL/$TESTFS1@snap12,snap21,sna@pple1@,s""nappy2
61 log_must $ZFS snapshot $TESTPOOL/$TESTFS1@snap$i
63 log_must $ZFS destroy $TESTPOOL/$TESTFS1@snap1,snap2,snapple1,snappy2,snap3
70 log_must $ZFS snapshot $TESTPOOL/$TESTFS1@snap$i
72 log_must $ZFS destroy $TESTPOOL/$TESTFS1@snap1,@,snap2,,,,snap3,
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_unshare/
H A Dzfs_unshare_001_pos.ksh49 log_must $ZFS set sharenfs=off ${mntp_fs[((i+1))]}
55 log_must $ZFS unmount $TESTDIR2
62 log_must $ZFS destroy -f $TESTPOOL/$TESTCLONE
66 log_must $ZFS destroy -f $TESTPOOL/$TESTFS2@snapshot
70 log_must $ZFS destroy -f $TESTPOOL/$TESTFS2
92 log_must $ZFS set sharenfs=on $filesystem
94 log_fail "'$ZFS set sharenfs=on' fails to make" \
98 is_shared $mntp || log_must $ZFS share $filesystem
103 log_must $ZFS unshare $filesystem
106 log_must $ZFS share $filesystem
[all …]
H A Dzfs_unshare_002_pos.ksh54 log_must $ZFS unmount $TESTDIR2
61 log_must $ZFS destroy -f $TESTPOOL/$TESTCLONE
65 log_must $ZFS destroy -f $TESTPOOL/$TESTFS2@snapshot
69 log_must $ZFS destroy -f $TESTPOOL/$TESTFS2
84 log_must $ZFS set sharenfs=off $filesystem
95 log_mustnot $ZFS unshare $filesystem
103 log_mustnot $ZFS unshare $mntp
118 log_must $ZFS create $TESTPOOL/$TESTFS2
119 log_must $ZFS snapshot $TESTPOOL/$TESTFS2@snapshot
120 log_must $ZFS clone $TESTPOOL/$TESTFS2@snapshot $TESTPOOL/$TESTCLONE
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/snapshot/
H A Dsnapshot_016_pos.ksh51 log_must $ZFS destroy -Rf $SNAPFS
53 log_must $ZFS destroy -Rf $TESTPOOL/$TESTFS@snap_a
55 log_must $ZFS destroy -Rf $TESTPOOL/$TESTCLONE@snap_a
58 log_must $ZFS destroy $TESTPOOL/$TESTCLONE
60 log_must $ZFS destroy $TESTPOOL/$TESTFS
62 log_must $ZFS create $TESTPOOL/$TESTFS
63 log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS
71 log_must $ZFS snapshot $SNAPFS
76 log_must $ZFS destroy $TESTPOOL/$TESTFS@snap_a
80 log_must $ZFS snapshot $SNAPFS
[all …]
H A Drollback_003_pos.ksh57 log_must $ZFS mount -a
64 log_must $ZFS destroy $snap
71 log_must $ZFS destroy -r $fs
82 log_must $ZFS snapshot $SNAPPOOL
83 log_must $ZFS rollback $SNAPPOOL
84 log_mustnot $ZFS snapshot $SNAPPOOL
88 log_must $ZFS rollback $SNAPPOOL
89 log_must $ZFS create $TESTPOOL/$TESTFILE
91 log_must $ZFS rollback $SNAPPOOL
94 log_must $ZFS snapshot $TESTPOOL/$TESTFILE@$TESTSNAP
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/no_space/
H A Denospc_002_pos.ksh33 log_must $ZFS set compression=off $TESTPOOL/$TESTFS
34 log_must $ZFS snapshot $TESTPOOL/$TESTFS@snap
44 log_mustnot_expect space $ZFS create $TESTPOOL/$TESTFS/subfs
45 log_mustnot_expect space $ZFS clone $TESTPOOL/$TESTFS@snap $TESTPOOL/clone
46 log_mustnot_expect space $ZFS snapshot $TESTPOOL/$TESTFS@snap2
47 log_mustnot_expect space $ZFS bookmark \
50 log_must $ZFS send $TESTPOOL/$TESTFS@snap >/tmp/stream.$$
51 log_mustnot_expect space $ZFS receive $TESTPOOL/$TESTFS/recvd </tmp/stream.$$
54 log_must $ZFS rename $TESTPOOL/$TESTFS@snap $TESTPOOL/$TESTFS@snap_newname
55 log_must $ZFS rename $TESTPOOL/$TESTFS@snap_newname $TESTPOOL/$TESTFS@snap
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_user/zfs_list/
H A Dzfs_list_002_pos.ksh100 "$ZFS list -H -r -o name -s creation -t filesystem $TESTPOOL/$TESTFS" \
104 "$ZFS list -H -r -o name -s creation -t volume $TESTPOOL/$TESTFS" \
108 "$ZFS list -H -r -o name -s creation -t snapshot $TESTPOOL/$TESTFS" \
113 "$ZFS list -H -r -o name -s checksum -t filesystem $TESTPOOL/$TESTFS" \
117 "$ZFS list -H -r -o name -s checksum -t volume $TESTPOOL/$TESTFS" \
121 "$ZFS list -H -r -o name -s checksum -t snapshot $TESTPOOL/$TESTFS" \
124 "$ZFS list -H -r -o name -S checksum -t snapshot $TESTPOOL/$TESTFS" \
129 "$ZFS list -H -r -o name -s name -t filesystem $TESTPOOL/$TESTFS" \
133 "$ZFS list -H -r -o name -s name -t volume $TESTPOOL/$TESTFS" \
137 "$ZFS list -H -r -o name -s name -t snapshot $TESTPOOL/$TESTFS" \
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/rsend/
H A Drsend.kshlib69 log_must $ZFS create -p $pool/$FS/fs1/fs2
71 log_must $ZFS snapshot $pool@psnap
72 log_must $ZFS clone $pool@psnap $pool/pclone
75 log_must $ZFS create -V 16M $pool/vol
76 log_must $ZFS create -V 16M $pool/$FS/vol
78 log_must $ZFS snapshot $pool/$FS/vol@vsnap
79 log_must $ZFS clone $pool/$FS/vol@vsnap $pool/$FS/vclone
83 log_must $ZFS clone $pool/$FS/fs1/fs2@fsnap $pool/$FS/fs1/fclone
84 log_must $ZFS snapshot -r $pool@init
97 log_must $ZFS snapshot $pool/vol@snapA
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_set/
H A Dcanmount_002_pos.ksh68 log_must $ZFS set mountpoint=${old_mnt[i]} $ds
69 log_must $ZFS set canmount=${old_canmount[i]} $ds
77 log_must $ZFS destroy $ds
84 log_must $ZFS destroy -R $TESTPOOL/$TESTFS@$TESTSNAP
87 log_must $ZFS destroy -R $TESTPOOL/$TESTVOL@$TESTSNAP
90 $ZFS unmount -a > /dev/null 2>&1
91 log_must $ZFS mount -a
106 log_must $ZFS snapshot $TESTPOOL/$TESTFS@$TESTSNAP
107 log_must $ZFS snapshot $TESTPOOL/$TESTVOL@$TESTSNAP
108 log_must $ZFS clone $TESTPOOL/$TESTFS@$TESTSNAP $TESTPOOL/$TESTCLONE
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_unmount/
H A Dzfs_unmount_008_neg.ksh53 log_must $ZFS destroy -f $ds
58 log_must $ZFS destroy $snap
79 log_must $ZFS mount $fs
82 log_must $ZFS snapshot $snap
84 log_must $ZFS create -V 10m $vol
91 log_mustnot eval "$ZFS unmount $arg $fs >/dev/null 2>&1"
98 log_mustnot eval "$ZFS unmount $opt $ds >/dev/null 2>&1"
108 log_must $ZFS create -o mountpoint=/tmp/$dir $fs1
113 log_mustnot eval "$ZFS unmount $opt $mpt >/dev/null 2>&1"
120 log_mustnot eval "$ZFS unmount $opt >/dev/null 2>&1"
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_rename/
H A Dzfs_rename_007_pos.ksh50 log_must $ZFS destroy -Rf $TESTPOOL/$TESTFS
52 log_must $ZFS create $TESTPOOL/$TESTFS
53 log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS
85 log_must $ZFS create $fs
91 log_must $ZFS snapshot $snap
92 log_must $ZFS clone $snap $fsclone
96 log_must $ZFS rename $fs ${fs}-new
97 log_must $ZFS rename $fsclone ${fsclone}-new
108 log_must $ZFS rename ${fs}-new $fs
109 log_must $ZFS rename $snap ${snap}-new
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/nopwrite/
H A Dnopwrite_copies.ksh37 datasetexists $origin && log_must $ZFS destroy -R $origin
38 log_must $ZFS create -o mountpoint=$TESTDIR $origin
44 log_must $ZFS set compress=on $origin
45 log_must $ZFS set checksum=sha256 $origin
48 $ZFS snapshot $origin@a || log_fail "zfs snap failed"
49 log_must $ZFS clone $origin@a $origin/clone
50 $ZFS set copies=3 $origin/clone
56 $ZFS destroy -R $origin || log_fail "Couldn't destroy $origin"
57 $ZFS create -o mountpoint=$TESTDIR $origin || \
59 log_must $ZFS set compress=on $origin
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_promote/
H A Dzfs_promote_005_pos.ksh45 datasetexists $clone && log_must $ZFS destroy $clone
46 log_must $ZFS destroy $fssnap
49 log_must $ZFS promote $fs
50 log_must $ZFS destroy $clone
51 log_must $ZFS destroy $fssnap
62 log_must $ZFS snapshot $fssnap
63 log_must $ZFS clone $fssnap $clone
64 log_must $ZFS unmount $fs
65 log_must $ZFS promote $clone
66 log_must $ZFS unmount $clone
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_send/
H A Dzfs_send_002_pos.ksh52 log_must $ZFS destroy $snap
55 log_must $ZFS destroy -r $ctr
69 log_must $ZFS set $property=$prop_val $fs
71 log_must $ZFS snapshot $snap
72 $ZFS send $snap > $stream
74 log_fail "'$ZFS send' fails to create send streams."
75 $ZFS receive -d $ctr <$stream
77 log_fail "'$ZFS receive' fails to receive send streams."
81 log_fail "'$ZFS receive' fails to restore $rstfs"
83 log_fail "'$ZFS receive' fails to restore $rstfssnap"
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_receive/
H A Dzfs_receive_005_neg.ksh53 log_must $ZFS destroy -f $snap
57 log_must $ZFS destroy -Rf $rst_root
76 log_must $ZFS create $rst_root
77 log_must $ZFS snapshot $init_snap
78 log_must eval "$ZFS send $init_snap > $full_bkup"
81 log_mustnot eval "$ZFS receive $rst_init_snap < /dev/zero"
82 log_mustnot eval "$ZFS receive -d $rst_root </dev/zero"
84 log_must eval "$ZFS receive $rst_init_snap < $full_bkup"
88 log_must $ZFS snapshot $inc_snap
89 log_must eval "$ZFS send -i $init_snap $inc_snap > $inc_bkup"
[all …]
H A Dzfs_receive_001_pos.ksh52 log_must $ZFS destroy -Rf $rst_root
55 log_must $ZFS destroy -f ${orig_snap[$i]}
67 log_must $ZFS destroy -Rf $rst_root
71 log_must $ZFS create $rst_root
72 log_must $ZFS set mountpoint=$TESTDIR1 $rst_root
115 log_must $ZFS snapshot ${orig_snap[$i]}
117 log_must eval "$ZFS send ${orig_snap[$i]} > ${bkup[$i]}"
119 log_must eval "$ZFS send -i ${orig_snap[(( i - 1 ))]} \
130 log_must $ZFS rollback ${rst_snap[0]}
132 log_must eval "$ZFS receive $rst_fs < ${bkup[$i]}"
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/userquota/
H A Duserquota_011_pos.ksh53 log_must $ZFS destroy -rRf $ds
65 log_must $ZFS create -o userquota@$QUSER1=$UQUOTA_SIZE \
68 log_must $ZFS snapshot $TESTPOOL/fs@snap
69 log_must eval "$ZFS list -r -o userquota@$QUSER1,groupquota@$QGROUP \
77 log_must $ZFS clone -o userquota@$QUSER1=$UQUOTA_SIZE \
81 log_must eval "$ZFS list -r -o userquota@$QUSER1,groupquota@$QGROUP \
87 log_must eval "$ZFS list -o userquota@$QUSER1,groupquota@$QGROUP \
91 log_must $ZFS promote $TESTPOOL/fs-clone
93 log_must eval "$ZFS list -r -o userquota@$QUSER1,groupquota@$QGROUP \
100 log_must $ZFS send $TESTPOOL/fs-clone@snap | $ZFS receive $TESTPOOL/fs-rev
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/refreserv/
H A Drefreserv_002_pos.ksh51 log_must $ZFS set refreservation=none $TESTPOOL
54 log_must $ZFS destroy -f $TESTPOOL@snap
57 log_must $ZFS destroy -rf $TESTPOOL/$TESTFS
58 log_must $ZFS create $TESTPOOL/$TESTFS
59 log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS
71 log_must $ZFS set refreserv=$rr $ds
73 $ZFS set refreserv=$((rr + incsize)) $ds >/dev/null 2>&1
89 log_must $ZFS create $TESTPOOL/$TESTFS/subfs
102 log_must $ZFS set quota=25M $ds
104 log_mustnot $ZFS snapshot $ds@snap
[all …]

12345678910>>...21