Home
last modified time | relevance | path

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

12345678910>>...25

/freebsd/tests/sys/cddl/zfs/tests/delegate/
H A Ddelegate_common.kshlib51 log_must $ZFS destroy -Rf $ROOT_TESTFS
53 log_must $ZFS create $ROOT_TESTFS
57 log_must $ZFS destroy -Rf $ROOT_TESTVOL
59 log_must $ZFS create -V $VOLSIZE $ROOT_TESTVOL
358 log_must $ZFS create $SUBFS
361 log_must $ZFS allow -l $STAFF1 $LOCAL_SET $dtst
362 log_must $ZFS allow -d $STAFF2 $DESC_SET $dtst
363 log_must $ZFS allow $OTHER1 $LOCAL_DESC_SET $dtst
364 log_must $ZFS allow $OTHER2 $LOCAL_DESC_SET $dtst
397 log_must $ZFS snapshot $snap
[all …]
/freebsd/tests/sys/cddl/zfs/tests/history/
H A Dhistory_004_pos.ksh62 $ZFS set compression=off $TESTPOOL/$TESTFS &
63 $ZFS set atime=off $TESTPOOL/$TESTFS &
64 $ZFS create $TESTPOOL/$TESTFS1 &
65 $ZFS create $TESTPOOL/$TESTFS2 &
66 $ZFS create $TESTPOOL/$TESTFS3 &
70 $ZFS snapshot $TESTPOOL/$TESTFS1@snap &
71 $ZFS snapshot $TESTPOOL/$TESTFS2@snap &
72 $ZFS snapshot $TESTPOOL/$TESTFS3@snap &
76 $ZFS clone $TESTPOOL/$TESTFS1@snap $TESTPOOL/clone1 &
77 $ZFS clone $TESTPOOL/$TESTFS2@snap $TESTPOOL/clone2 &
[all …]
H A Dhistory_002_pos.ksh64 datasetexists $dataset && $ZFS destroy -Rf $dataset
113 exec_record $ZFS create $fs
130 exec_record $ZFS set ${props[$i]}=${props[((i+1))]} $fs
138 exec_record $ZFS inherit ${props[$i]} $fs
143 exec_record $ZFS create -V 64M $vol
144 exec_record $ZFS set volsize=32M $vol
145 exec_record $ZFS snapshot $fssnap
146 exec_record $ZFS snapshot $volsnap
147 exec_record $ZFS snapshot $fssnap2
148 exec_record $ZFS snapshot $volsnap2
[all …]
H A Dhistory_010_pos.ksh55 $ZFS 2>&1 | $GREP "allow" > /dev/null
66 datasetexists $root_testfs && log_must $ZFS destroy -rf $root_testfs
83 exec_record -l $ZFS create $root_testfs
84 exec_record -l $ZFS allow $HIST_GROUP snapshot,mount $root_testfs
85 exec_record -l $ZFS allow $HIST_USER destroy,mount $root_testfs
86 exec_record -l $ZFS allow $HIST_USER reservation $root_testfs
87 exec_record -l $ZFS allow $HIST_USER allow $root_testfs
89 exec_record -l -u $HIST_USER "$ZFS snapshot $root_testfs@snap"
90 exec_record -l -u $HIST_USER "$ZFS destroy $root_testfs@snap"
91 exec_record -l -u $HIST_USER "$ZFS reservation=64M $root_testfs"
[all …]
H A Dhistory_006_neg.ksh61 log_must $ZFS destroy -rf $fs
63 log_must $ZFS create $fs
72 log_must $ZFS set sharenfs=on $fs
73 log_must $ZFS snapshot $snap1
74 log_must $ZFS snapshot $snap2
79 log_must $ZFS list $fs > /dev/null
80 log_must $ZFS get mountpoint $fs > /dev/null
81 log_must $ZFS unmount $fs
82 log_must $ZFS mount $fs
83 log_must $ZFS share $fs
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_unshare/
H A Dzfs_unshare_001_pos.ksh62 log_must $ZFS set sharenfs=off ${mntp_fs[((i+1))]}
68 log_must $ZFS unmount $TESTDIR2
75 log_must $ZFS destroy -f $TESTPOOL/$TESTCLONE
79 log_must $ZFS destroy -f $TESTPOOL/$TESTFS2@snapshot
83 log_must $ZFS destroy -f $TESTPOOL/$TESTFS2
105 log_must $ZFS set sharenfs=on $filesystem
107 log_fail "'$ZFS set sharenfs=on' fails to make" \
112 log_must $ZFS share $filesystem
117 log_must $ZFS unshare $filesystem
121 log_must $ZFS share $filesystem
[all …]
H A Dzfs_unshare_002_pos.ksh67 log_must $ZFS unmount $TESTDIR2
74 log_must $ZFS destroy -f $TESTPOOL/$TESTCLONE
78 log_must $ZFS destroy -f $TESTPOOL/$TESTFS2@snapshot
82 log_must $ZFS destroy -f $TESTPOOL/$TESTFS2
97 log_must $ZFS set sharenfs=off $filesystem
107 log_mustnot $ZFS unshare $filesystem
115 log_mustnot $ZFS unshare $mntp
130 log_must $ZFS create $TESTPOOL/$TESTFS2
131 log_must $ZFS snapshot $TESTPOOL/$TESTFS2@snapshot
132 log_must $ZFS clone $TESTPOOL/$TESTFS2@snapshot $TESTPOOL/$TESTCLONE
[all …]
/freebsd/tests/sys/cddl/zfs/tests/snapshot/
H A Dsnapshot_016_pos.ksh58 log_must $ZFS destroy -Rf $SNAPFS
60 log_must $ZFS destroy -Rf $TESTPOOL/$TESTFS@snap_a
62 log_must $ZFS destroy -Rf $TESTPOOL/$TESTCLONE@snap_a
65 log_must $ZFS destroy $TESTPOOL/$TESTCLONE
67 log_must $ZFS destroy $TESTPOOL/$TESTFS
69 log_must $ZFS create $TESTPOOL/$TESTFS
70 log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS
81 log_must $ZFS snapshot $SNAPFS
86 log_must $ZFS destroy $TESTPOOL/$TESTFS@snap_a
90 log_must $ZFS snapshot $SNAPFS
[all …]
H A Drollback_003_pos.ksh63 log_must $ZFS mount -a
69 log_must $ZFS destroy $snap
76 log_must $ZFS destroy -r $fs
87 log_must $ZFS snapshot $SNAPPOOL
88 log_must $ZFS rollback $SNAPPOOL
89 log_mustnot $ZFS snapshot $SNAPPOOL
93 log_must $ZFS rollback $SNAPPOOL
94 log_must $ZFS create $TESTPOOL/$TESTFILE
96 log_must $ZFS rollback $SNAPPOOL
99 log_must $ZFS snapshot $TESTPOOL/$TESTFILE@$TESTSNAP
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_user/zfs_list/
H A Dzfs_list_005_pos.ksh68 log_must $ZFS set f:color=$color $basefs/$ds
70 log_must $ZFS set f:color=$color $basefs/${ds}-vol
75 log_must $ZFS set f:amount=$amount $basefs/$ds
77 log_must $ZFS set f:amount=$amount $basefs/${ds}-vol
82 log_must $ZFS set reservation=$reserv $basefs/$ds
84 log_must $ZFS set reservation=$reserv $basefs/${ds}-vol
129 "run_unprivileged $ZFS list -H -r -o name -s f:color -s f:amount -t filesystem $basefs" \
133 "run_unprivileged $ZFS list -H -r -o name -s f:color -s f:amount -t volume $basefs" \
138 "run_unprivileged $ZFS list -H -r -o name -s f:amount -s f:color -t filesystem $basefs" \
142 "run_unprivileged $ZFS list -H -r -o name -s f:amount -s f:color -t volume $basefs" \
[all …]
H A Dzfs_list_002_pos.ksh109 "run_unprivileged $ZFS list -H -r -o name -s creation -t filesystem $TESTPOOL/$TESTFS" \
113 "run_unprivileged $ZFS list -H -r -o name -s creation -t volume $TESTPOOL/$TESTFS" \
117 "run_unprivileged $ZFS list -H -r -o name -s creation -t snapshot $TESTPOOL/$TESTFS" \
122 "run_unprivileged $ZFS list -H -r -o name -s checksum -t filesystem $TESTPOOL/$TESTFS" \
126 "run_unprivileged $ZFS list -H -r -o name -s checksum -t volume $TESTPOOL/$TESTFS" \
130 "run_unprivileged $ZFS list -H -r -o name -s checksum -t snapshot $TESTPOOL/$TESTFS" \
133 "run_unprivileged $ZFS list -H -r -o name -S checksum -t snapshot $TESTPOOL/$TESTFS" \
138 "run_unprivileged $ZFS list -H -r -o name -s name -t filesystem $TESTPOOL/$TESTFS" \
142 "run_unprivileged $ZFS list -H -r -o name -s name -t volume $TESTPOOL/$TESTFS" \
146 "run_unprivileged $ZFS list -H -r -o name -s name -t snapshot $TESTPOOL/$TESTFS" \
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_set/
H A Dcanmount_002_pos.ksh60 $ZFS get 2>&1 | $GREP -w canmount | $GREP -w noauto >/dev/null 2>&1
83 log_must $ZFS set mountpoint=${old_mnt[i]} $ds
84 log_must $ZFS set canmount=${old_canmount[i]} $ds
92 log_must $ZFS destroy $ds
99 log_must $ZFS destroy -R $TESTPOOL/$TESTFS@$TESTSNAP
102 log_must $ZFS destroy -R $TESTPOOL/$TESTVOL@$TESTSNAP
105 $ZFS unmount -a > /dev/null 2>&1
106 log_must $ZFS mount -a
121 log_must $ZFS snapshot $TESTPOOL/$TESTFS@$TESTSNAP
122 log_must $ZFS snapshot $TESTPOOL/$TESTVOL@$TESTSNAP
[all …]
/freebsd/tests/sys/cddl/zfs/tests/rsend/
H A Drsend.kshlib64 log_must $ZFS create -p $pool/$FS/fs1/fs2
66 log_must $ZFS snapshot $pool@psnap
67 log_must $ZFS clone $pool@psnap $pool/pclone
70 log_must $ZFS create -V 16M $pool/vol
71 log_must $ZFS create -V 16M $pool/$FS/vol
73 log_must $ZFS snapshot $pool/$FS/vol@vsnap
74 log_must $ZFS clone $pool/$FS/vol@vsnap $pool/$FS/vclone
78 log_must $ZFS clone $pool/$FS/fs1/fs2@fsnap $pool/$FS/fs1/fclone
79 log_must $ZFS snapshot -r $pool@init
92 log_must $ZFS snapshot $pool/vol@snapA
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_unmount/
H A Dzfs_unmount_008_neg.ksh66 log_must $ZFS destroy -f $ds
71 log_must $ZFS destroy $snap
92 log_must $ZFS mount $fs
95 log_must $ZFS snapshot $snap
97 log_must $ZFS create -V 10m $vol
104 log_mustnot eval "$ZFS unmount $arg $fs >/dev/null 2>&1"
111 log_mustnot eval "$ZFS unmount $opt $ds >/dev/null 2>&1"
121 log_must $ZFS create -o mountpoint=$TMPDIR/$dir $fs1
126 log_mustnot eval "$ZFS unmount $opt $mpt >/dev/null 2>&1"
133 log_mustnot eval "$ZFS unmount $opt >/dev/null 2>&1"
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_rename/
H A Dzfs_rename_007_pos.ksh56 $ZFS rename 2>&1 | grep "rename -r" >/dev/null 2>&1
64 log_must $ZFS destroy -Rf $TESTPOOL/$TESTFS
66 log_must $ZFS create $TESTPOOL/$TESTFS
67 log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS
99 log_must $ZFS create $fs
105 log_must $ZFS snapshot $snap
106 log_must $ZFS clone $snap $fsclone
110 log_must $ZFS rename $fs ${fs}-new
111 log_must $ZFS rename $fsclone ${fsclone}-new
122 log_must $ZFS rename ${fs}-new $fs
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_user/misc/
H A Dsetup.ksh49 log_must $ZFS snapshot $TESTPOOL/$TESTFS@snap
50 log_must $ZFS clone $TESTPOOL/$TESTFS@snap $TESTPOOL/$TESTFS/clone
56 log_must $ZFS create $TESTPOOL/$TESTFS/$TESTFS2
57 log_must $ZFS set snapdir=hidden $TESTPOOL/$TESTFS
61 log_must $ZFS create $TESTPOOL/$TESTFS/$TESTFS2.unmounted
62 log_must $ZFS unmount $TESTPOOL/$TESTFS/$TESTFS2.unmounted
66 $ZFS send $TESTPOOL/$TESTFS@snap > $TMPDIR/zfstest_datastream.dat
75 log_must $ZFS create -o version=1 $TESTPOOL/$TESTFS/prop
84 log_must $ZFS set $prop_name=$prop_val $TESTPOOL/$TESTFS/prop
90 log_must $ZFS create $TESTPOOL/$TESTFS/renameme
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_get/
H A Dzfs_get_004_pos.ksh56 $ZFS get all >/dev/null 2>&1
65 log_must $ZFS destroy $clone
68 log_must $ZFS destroy $snap
82 log_must $ZFS destroy -rf $fs
109 log_must $ZFS set $usrprop $TESTPOOL
112 log_must $ZFS snapshot $fssnap
113 log_must $ZFS clone $fssnap $clone
114 log_must $ZFS snapshot $volsnap
142 log_must $ZFS create $pool
147 log_must $ZFS set $usrprop $pool
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_send/
H A Dzfs_send_002_pos.ksh60 log_must $ZFS destroy $snap
63 log_must $ZFS destroy -r $ctr
77 log_must $ZFS set $property=$prop_val $fs
79 log_must $ZFS snapshot $snap
80 $ZFS send $snap > $stream
82 log_fail "'$ZFS send' fails to create send streams."
83 $ZFS receive -d $ctr <$stream
85 log_fail "'$ZFS receive' fails to receive send streams."
89 log_fail "'$ZFS receive' fails to restore $rstfs"
91 log_fail "'$ZFS receive' fails to restore $rstfssnap"
[all …]
/freebsd/tests/sys/cddl/zfs/tests/userquota/
H A Duserquota_011_pos.ksh62 log_must $ZFS destroy -rRf $ds
74 log_must $ZFS create -o userquota@$QUSER1=$UQUOTA_SIZE \
77 log_must $ZFS snapshot $TESTPOOL/fs@snap
78 log_must eval "$ZFS list -r -o userquota@$QUSER1,groupquota@$QGROUP \
86 log_must $ZFS clone -o userquota@$QUSER1=$UQUOTA_SIZE \
90 log_must eval "$ZFS list -r -o userquota@$QUSER1,groupquota@$QGROUP \
96 log_must eval "$ZFS list -o userquota@$QUSER1,groupquota@$QGROUP \
100 log_must $ZFS promote $TESTPOOL/fs-clone
102 log_must eval "$ZFS list -r -o userquota@$QUSER1,groupquota@$QGROUP \
109 log_must $ZFS send $TESTPOOL/fs-clone@snap | $ZFS receive $TESTPOOL/fs-rev
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_promote/
H A Dzfs_promote_005_pos.ksh58 datasetexists $clone && log_must $ZFS destroy $clone
59 log_must $ZFS destroy $fssnap
62 log_must $ZFS promote $fs
63 log_must $ZFS destroy $clone
64 log_must $ZFS destroy $fssnap
75 log_must $ZFS snapshot $fssnap
76 log_must $ZFS clone $fssnap $clone
77 log_must $ZFS unmount $fs
78 log_must $ZFS promote $clone
79 log_must $ZFS unmount $clone
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_receive/
H A Dzfs_receive_005_neg.ksh66 log_must $ZFS destroy -f $snap
70 log_must $ZFS destroy -Rf $rst_root
89 log_must $ZFS create $rst_root
90 log_must $ZFS snapshot $init_snap
91 log_must eval "$ZFS send $init_snap > $full_bkup"
94 log_mustnot eval "$ZFS receive $rst_init_snap < /dev/zero"
95 log_mustnot eval "$ZFS receive -d $rst_root </dev/zero"
97 log_must eval "$ZFS receive $rst_init_snap < $full_bkup"
101 log_must $ZFS snapshot $inc_snap
102 log_must eval "$ZFS send -i $init_snap $inc_snap > $inc_bkup"
[all …]
H A Dzfs_receive_001_pos.ksh61 log_must $ZFS destroy -Rf $rst_root
64 log_must $ZFS destroy -f ${orig_snap[$i]}
76 log_must $ZFS destroy -Rf $rst_root
80 log_must $ZFS create $rst_root
81 log_must $ZFS set mountpoint=$TESTDIR1 $rst_root
122 log_must $ZFS snapshot ${orig_snap[$i]}
124 log_must eval "$ZFS send ${orig_snap[$i]} > ${bkup[$i]}"
126 log_must eval "$ZFS send -i ${orig_snap[(( i - 1 ))]} \
137 log_must $ZFS rollback ${rst_snap[0]}
139 log_must eval "$ZFS receive $rst_fs < ${bkup[$i]}"
[all …]
H A Dzfs_receive_006_pos.ksh63 datasetexists $snap && log_must $ZFS destroy -rf $snap
71 log_must $ZFS destroy -rf $TESTPOOL/$TESTFS/$TESTFS1
74 log_must $ZFS destroy -rf $TESTPOOL/${ZONE_CTR}0
91 log_must $ZFS create $ancestor_fs
92 log_must $ZFS create $fs
96 log_must $ZFS snapshot $snap1
98 log_must $ZFS snapshot $snap2
100 log_must eval "$ZFS send $snap1 > $fbackup1"
101 log_must eval "$ZFS send $snap2 > $fbackup2"
105 log_must $ZFS destroy -rf $ancestor_fs
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_destroy/
H A Dzfs_destroy_003_pos.ksh61 log_must $ZFS destroy -Rf $obj
103 log_must $ZFS create $ctr
104 log_must $ZFS create $ctr1
110 log_must $ZFS create $ctr2
113 log_must $ZFS create $fs
116 log_must $ZFS set mountpoint=$child_fs_mntp $child_fs
117 log_must $ZFS set mountpoint=$child_fs1_mntp $child_fs1
120 log_must $ZFS snapshot $snap
125 log_must $ZFS create -V $VOLSIZE $vol
130 log_must $ZFS clone $child_fs_snap $clone
[all …]
/freebsd/tests/sys/cddl/zfs/tests/refreserv/
H A Drefreserv_002_pos.ksh59 log_must $ZFS set refreservation=none $TESTPOOL
62 log_must $ZFS destroy -f $TESTPOOL@snap
65 log_must $ZFS destroy -rf $TESTPOOL/$TESTFS
66 log_must $ZFS create $TESTPOOL/$TESTFS
67 log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS
79 log_must $ZFS set refreserv=$rr $ds
81 $ZFS set refreserv=$((rr + incsize)) $ds >/dev/null 2>&1
97 log_must $ZFS create $TESTPOOL/$TESTFS/subfs
110 log_must $ZFS set quota=25M $ds
112 log_mustnot $ZFS snapshot $ds@snap
[all …]

12345678910>>...25