Searched refs:dataset (Results 1 - 25 of 125) sorted by relevance

12345

/freebsd-head/tests/sys/cddl/zfs/tests/snapused/
H A Dsnapused.kshlib40 function _check_used # dataset
42 typeset dataset=$1
44 if [[ "$(get_prop type $dataset)" == "snapshot" ]]; then
48 used=$(get_prop used $dataset)
49 usedbychildren=$(get_prop usedbychildren $dataset)
50 usedbydataset=$(get_prop usedbydataset $dataset)
51 usedbyrefreservation=$(get_prop usedbyrefreservation $dataset)
52 usedbysnapshots=$(get_prop usedbysnapshots $dataset)
56 log_fail "$dataset: used($used) is not the sum($used_sum) of usedby*"
60 function check_used # dataset
[all...]
/freebsd-head/sys/contrib/openzfs/tests/zfs-tests/tests/functional/snapused/
H A Dsnapused.kshlib35 function _check_used # dataset
37 typeset dataset=$1
39 if [[ "$(get_prop type $dataset)" == "snapshot" ]]; then
43 used=$(get_prop used $dataset)
44 usedbychildren=$(get_prop usedbychildren $dataset)
45 usedbydataset=$(get_prop usedbydataset $dataset)
46 usedbyrefreservation=$(get_prop usedbyrefreservation $dataset)
47 usedbysnapshots=$(get_prop usedbysnapshots $dataset)
51 log_fail "$dataset: used($used) is not the sum($used_sum) of usedby*"
55 function check_used # dataset
[all...]
/freebsd-head/tests/sys/cddl/zfs/tests/cli_root/zfs_set/
H A Dsnapdir_001_pos.ksh41 # Setting a valid snapdir on a dataset, it should be successful.
45 # 2. Create a snapshot for each dataset.
46 # 3. Setting different valid snapdir to each dataset.
64 for dataset in $all_datasets; do
65 snapexists ${dataset}@snap && \
66 log_must $ZFS destroy ${dataset}@snap
70 function verify_snapdir_visible # $1 dataset, $2 hidden|visible
72 typeset dataset=$1
74 typeset mtpt=$(get_prop mountpoint $dataset)
107 for dataset i
[all...]
H A Dreadonly_001_pos.ksh41 # Setting readonly on a dataset, it should keep the dataset as readonly.
45 # 2. Setting readonly to each dataset.
63 for dataset in $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL ; do
64 snapexists ${dataset}@$TESTSNAP && \
65 log_must $ZFS destroy -R ${dataset}@$TESTSNAP
69 function initial_dataset # $1 dataset
71 typeset dataset=$1
73 typeset fstype=$(get_prop type $dataset)
76 typeset mtpt=$(get_prop mountpoint $dataset)
[all...]
/freebsd-head/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_set/
H A Dsnapdir_001_pos.ksh36 # Setting a valid snapdir on a dataset, it should be successful.
40 # 2. Create a snapshot for each dataset.
41 # 3. Setting different valid snapdir to each dataset.
50 for dataset in $all_datasets; do
51 snapexists ${dataset}@snap && \
52 log_must zfs destroy ${dataset}@snap
56 function verify_snapdir_visible # $1 dataset, $2 hidden|visible
58 typeset dataset=$1
60 typeset mtpt=$(get_prop mountpoint $dataset)
91 for dataset i
[all...]
H A Dreadonly_001_pos.ksh36 # Setting readonly on a dataset, it should keep the dataset as readonly.
40 # 2. Setting readonly to each dataset.
49 for dataset in $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL ; do
50 snapexists ${dataset}@$TESTSNAP && \
51 log_must zfs destroy -R ${dataset}@$TESTSNAP
55 function initial_dataset # $1 dataset
57 typeset dataset=$1
59 typeset fstype=$(get_prop type $dataset)
62 typeset mtpt=$(get_prop mountpoint $dataset)
[all...]
H A Dcanmount_002_pos.ksh43 # 2. Set canmount=noauto for each dataset and check the return value
46 # 3. mount each dataset(except volume) to see if it can be mounted.
47 # 4. verify that a mounted dataset can be shared by share -a.
125 dataset=${dataset_pos[i]}
126 set_n_check_prop "noauto" "canmount" "$dataset"
127 log_must zfs set mountpoint=$tmpmnt $dataset
128 log_must zfs set sharenfs=on $dataset
129 if ismounted $dataset; then
131 log_must mounted $dataset
132 log_must zfs unmount $dataset
[all...]
/freebsd-head/tests/sys/cddl/zfs/tests/inheritance/
H A Dinherit.kshlib36 function get_prop_src # property dataset
40 typeset dataset=$2
42 prop_val=`$ZFS get -H -o source $prop $dataset`
46 "property for dataset $dataset"
54 # either be "default", "local", or "inherited from <parent dataset>".
57 # a dataset name.
102 function set_n_verify_prop #property value dataset
106 typeset dataset=$3
108 $ZFS set $prop=$prop_val $dataset
[all...]
H A Dinherit_001_pos.ksh70 typeset dataset=$1
75 create_pool "$dataset" "$disks"
77 log_must $ZFS create $dataset
78 log_must $ZFS set canmount=off $dataset
80 log_must $ZFS create $dataset
85 list="$list $dataset"
90 # dataset, setting them to a 'local' value if required.
92 function init_props #dataset init_code
94 typeset dataset=$1
105 log_note "Leaving properties for $dataset unchange
[all...]
/freebsd-head/sys/contrib/openzfs/tests/zfs-tests/tests/functional/inheritance/
H A Dinherit.kshlib35 function get_prop_src # property dataset
39 typeset dataset=$2
41 prop_val=`zfs get -H -o source $prop $dataset`
45 "property for dataset $dataset"
53 # either be "default", "local", or "inherited from <parent dataset>".
56 # a dataset name.
101 function set_n_verify_prop #property value dataset
105 typeset dataset=$3
107 zfs set $prop=$prop_val $dataset
[all...]
H A Dinherit_001_pos.ksh54 typeset dataset=$1
59 create_pool "$dataset" "$disks"
61 log_must zfs create $dataset
62 log_must zfs set canmount=off $dataset
64 log_must zfs create $dataset
69 list="$list $dataset"
74 # dataset, setting them to a 'local' value if required.
76 function init_props { #dataset init_code
77 typeset dataset=$1
89 log_note "Leaving properties for $dataset unchange
[all...]
/freebsd-head/tests/sys/cddl/zfs/tests/cli_root/zfs_rename/
H A Dzfs_rename_002_pos.ksh46 # 2. Rename each dataset object to a new name.
47 # 3. Rename each dataset back to its original name.
63 set -A dataset "$TESTPOOL/$TESTFS@snapshot" "$TESTPOOL/$TESTFS1" \
79 while ((i < ${#dataset[*]} )); do
82 rename_dataset ${dataset[i]} ${dataset[i]}-new
83 rename_dataset ${dataset[i]}-new ${dataset[i]}
88 if [[ ${dataset[i]} == *@* ]]; then
89 data=$(snapshot_mountpoint ${dataset[
[all...]
H A Dzfs_rename_001_pos.ksh47 # 2. Rename each dataset object to a new name.
63 set -A dataset "$TESTPOOL/$TESTFS@snapshot" "$TESTPOOL/$TESTFS1" \
79 while (( i < ${#dataset[*]} )); do
80 rename_dataset ${dataset[i]} ${dataset[i]}-new
114 while ((i < ${#dataset[*]} )); do
115 if datasetexists ${dataset[i]}-new ; then
116 log_must $ZFS rename ${dataset[i]}-new ${dataset[i]}
121 log_pass "'zfs rename' successfully renamed each dataset typ
[all...]
/freebsd-head/tests/sys/cddl/zfs/tests/cli_user/zfs_list/
H A Dsetup.ksh42 for dataset in $DATASETS
44 log_must $ZFS create $TESTPOOL/$TESTFS/$dataset
45 enc=$(get_prop encryption $TESTPOOL/$TESTFS/$dataset)
51 log_must $ZFS snapshot $TESTPOOL/$TESTFS/${dataset}@snap
55 log_must $ZFS create -V 64M $TESTPOOL/$TESTFS/${dataset}-vol
57 log_must $ZFS snapshot $TESTPOOL/$TESTFS/${dataset}-vol@snap
63 $TESTPOOL/$TESTFS/$dataset
64 if datasetexists $TESTPOOL/$TESTFS/${dataset}-vol; then
66 $TESTPOOL/$TESTFS/${dataset}-vol
/freebsd-head/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_rename/
H A Dzfs_rename_002_pos.ksh42 # 2. Rename each dataset object to a new name.
43 # 3. Rename each dataset back to its original name.
51 set -A dataset "$TESTPOOL/$TESTFS@snapshot" "$TESTPOOL/$TESTFS1" \
67 while ((i < ${#dataset[*]} )); do
70 rename_dataset ${dataset[i]} ${dataset[i]}-new
71 rename_dataset ${dataset[i]}-new ${dataset[i]}
76 if [[ ${dataset[i]} == *@* ]]; then
77 data=$(snapshot_mountpoint ${dataset[
[all...]
H A Dzfs_rename_001_pos.ksh43 # 2. Rename each dataset object to a new name.
51 set -A dataset "$TESTPOOL/$TESTFS@snapshot" "$TESTPOOL/$TESTFS1" \
67 while (( i < ${#dataset[*]} )); do
68 rename_dataset ${dataset[i]} ${dataset[i]}-new
102 while ((i < ${#dataset[*]} )); do
103 if datasetexists ${dataset[i]}-new ; then
104 log_must zfs rename ${dataset[i]}-new ${dataset[i]}
109 log_pass "'zfs rename' successfully renamed each dataset typ
[all...]
/freebsd-head/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_share/
H A Dzfs_share_012_pos.ksh38 # 1. Share a dataset that also has canmount set to noauto
39 # 2. Capture the zfs exports file when the dataset is mounted + shared
40 # 3. Simulate a reboot by unmounting the dataset and restoring the exports file
41 # 4. Verify that 'zfs share -a' removes the export since dataset is not mounted
46 dataset="$TESTPOOL/$TESTFS"
47 mountpt=$(get_prop mountpoint $dataset)
51 zfs set canmount=on $dataset
52 zfs set sharenfs=off $dataset
67 log_must zfs set canmount=noauto $dataset
68 zfs mount $dataset > /de
[all...]
/freebsd-head/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/zfs_list/
H A Dzfs_list.kshlib52 for dataset in $( $CMD )
54 ACTUAL=$(basename $dataset)
55 if [ "$dataset" != "$TESTPOOL/$TESTFS" ]
94 for dataset in $( $CMD )
96 ACTUAL=$(basename $dataset)
97 if [ "$dataset" != "$TESTPOOL/$TESTFS" ]
H A Dsetup.ksh43 for dataset in $DATASETS
45 log_must zfs create $TESTPOOL/$TESTFS/$dataset
47 log_must zfs snapshot $TESTPOOL/$TESTFS/${dataset}@snap
51 log_must zfs create -V 64M $TESTPOOL/$TESTFS/${dataset}-vol
53 log_must zfs snapshot $TESTPOOL/$TESTFS/${dataset}-vol@snap
59 $TESTPOOL/$TESTFS/$dataset
60 if datasetexists $TESTPOOL/$TESTFS/${dataset}-vol; then
62 $TESTPOOL/$TESTFS/${dataset}-vol
/freebsd-head/sys/contrib/openzfs/cmd/mount_zfs/
H A Dmount_zfs.c46 * Return the pool/dataset to mount given the name passed to mount. This
47 * is expected to be of the form pool/dataset, however may also refer to
51 parse_dataset(char *dataset) argument
59 * We expect a pool/dataset to be provided, however if we're
62 * name we can mount the root dataset.
64 error = stat64(dataset, &statbuf);
70 fd = open(dataset, O_RDONLY);
84 dataset = strdup(name);
86 return (dataset);
92 * named 'dataset' the
133 mtab_update(char *dataset, char *mntpoint, char *type, char *mntopts) argument
179 char *dataset; local
[all...]
/freebsd-head/tests/sys/cddl/zfs/tests/cli_root/
H A Dcli_common.kshlib76 # Check the received dataset exists or not
82 for dataset in $@; do
83 ! datasetexists $dataset && \
84 bad_rst_tgts="$bad_rst_tgts $dataset"
/freebsd-head/tests/sys/cddl/zfs/tests/iscsi/
H A Discsi_common.kshlib41 typeset dataset=$1
44 [[ -z $dataset ]] && return 1
50 [[ $dataset == $target ]] && return 0
/freebsd-head/tests/sys/cddl/zfs/tests/rsend/
H A Drsend_002_pos.ksh97 dataset=$POOL2/$FS/vol
98 log_must eval "$ZFS send -I @vsnap $dataset@final > " \
100 log_must destroy_tree $dataset@final $dataset@snapC \
101 $dataset@snapB $dataset@init
/freebsd-head/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/
H A Dcli_common.kshlib75 # Check the received dataset exists or not
81 for dataset in $@; do
82 ! datasetexists $dataset && \
83 bad_rst_tgts="$bad_rst_tgts $dataset"
/freebsd-head/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/
H A Drsend_002_pos.ksh83 dataset=$POOL2/$FS/vol
84 log_must eval "zfs send -I @vsnap $dataset@final > " \
86 log_must destroy_tree $dataset@final $dataset@snapC \
87 $dataset@snapB $dataset@init

Completed in 146 milliseconds

12345