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

123

/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/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...]
H A Dcanmount_002_pos.ksh48 # 2. Set canmount=noauto for each dataset and check the retuen value
50 # 3. mount each dataset(except volume) to see if it can be mounted.
141 dataset=${dataset_pos[i]}
142 set_n_check_prop "noauto" "canmount" "$dataset"
143 log_must $ZFS set mountpoint=$tmpmnt $dataset
144 if ismounted $dataset; then
146 log_must mounted $dataset
147 log_must $ZFS unmount $dataset
148 log_must unmounted $dataset
150 log_must unmounted $dataset
[all...]
H A Dcache_002_neg.ksh61 set -A dataset "$TESTPOOL" "$TESTPOOL/$TESTFS" "$TESTPOOL/$TESTVOL"
71 while (( i < ${#dataset[@]} )); do
74 log_mustnot $ZFS set $propname=${values[j]} ${dataset[i]}
H A Dcanmount_001_pos.ksh113 for dataset in "${dataset_pos[@]}" ; do
115 set_n_check_prop "$value" "canmount" "$dataset"
117 log_mustnot ismounted $dataset
118 log_mustnot $ZFS mount $dataset
119 log_mustnot ismounted $dataset
121 if ! ismounted $dataset ; then
122 log_must $ZFS mount $dataset
124 log_must ismounted $dataset
129 for dataset in "${dataset_neg[@]}" ; do
132 "$dataset" "fals
[all...]
H A Dmountpoint_002_pos.ksh47 # 2. Unmount that dataset
63 set -A dataset "$TESTPOOL/$TESTFS" "$TESTPOOL/$TESTCTR"
93 while (( i < ${#dataset[@]} )); do
95 if ismounted ${dataset[i]} ; then
96 log_must $ZFS unmount ${dataset[i]}
98 log_mustnot ismounted ${dataset[i]}
101 "${dataset[i]}"
102 log_mustnot ismounted ${dataset[i]}
H A Donoffs_001_pos.ksh72 set -A dataset "$TESTPOOL/$TESTFS" "$TESTPOOL/$TESTCTR" "$TESTPOOL/$TESTVOL"
74 set -A dataset "$TESTPOOL/$TESTFS" "$TESTPOOL/$TESTCTR"
83 while (( i < ${#dataset[@]} )); do
88 if [[ ${dataset[i]} == "$TESTPOOL/$TESTVOL" && \
92 "${dataset[i]}" "false"
95 "${dataset[i]}"
H A Dzfs_set_common.kshlib43 # Firstly, set the property value to dataset. Then checking if the property
48 # $3 dataset
55 typeset dataset=$3
60 [ -n "$prop" ] && old_value=$(get_prop $prop $dataset)
62 log_must $ZFS set $prop=$expect_value $dataset
64 log_mustnot $ZFS set $prop=$expect_value $dataset
66 [ -n "$prop" ] && cur_value=$(get_prop $prop $dataset)
68 err="ERROR: Dataset '$dataset': '$prop' value '$cur_value'"
93 # Cleanup all the user properties of the pool and the dataset reside it.
220 # $1 dataset
[all...]
H A Dcache_001_pos.ksh61 set -A dataset "$TESTPOOL" "$TESTPOOL/$TESTFS" "$TESTPOOL/$TESTVOL"
71 while (( i < ${#dataset[@]} )); do
74 set_n_check_prop "${values[j]}" "$propname" "${dataset[i]}"
H A Dcompression_001_pos.ksh61 set -A dataset "$TESTPOOL" "$TESTPOOL/$TESTFS" "$TESTPOOL/$TESTVOL"
71 while (( i < ${#dataset[@]} )); do
74 set_n_check_prop "${values[j]}" "$propname" "${dataset[i]}"
/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/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...]
H A Dzfs_rename.kshlib84 while ((i < ${#dataset[*]} )); do
85 if ! datasetexists ${dataset[i]}-new ; then
90 if [[ ${dataset[i]}-new != *@* ]] ; then
91 $ZFS rename ${dataset[i]}-new ${dataset[i]}
93 typeset newfs=${dataset[i]}-new
94 typeset oldfs=${dataset[i]}
101 log_must $ZFS destroy -fR ${dataset[i]}-new
/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
H A Dzfs_list.kshlib53 for dataset in $( $CMD )
55 ACTUAL=$(basename $dataset)
56 if [ "$dataset" != "$TESTPOOL/$TESTFS" ]
95 for dataset in $( $CMD )
97 ACTUAL=$(basename $dataset)
98 if [ "$dataset" != "$TESTPOOL/$TESTFS" ]
H A Dzfs_list_006_pos.ksh73 typeset dataset=${DATASETS%% *}
113 output=$(run_unprivileged $ZFS list -H -o name $BASEFS/${dataset}@snap)
114 if [[ $output != $BASEFS/${dataset}@snap ]] ; then
115 log_fail "zfs list not show $BASEFS/${dataset}@snap"
119 output=$(run_unprivileged $ZFS list -H -o name $BASEFS/${dataset}-vol@snap)
120 if [[ $output != $BASEFS/${dataset}-vol@snap ]] ; then
121 log_fail "zfs list not show $BASEFS/${dataset}-vol@snap"
/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/tests/sys/cddl/zfs/tests/reservation/
H A Dreservation.kshlib33 # Function to set the reservation property of a dataset to
41 dataset=$1
43 log_must $ZFS set reservation=none $dataset
44 log_must $ZFS set refreservation=none $dataset
46 resv_val=`$ZFS get -H refreservation $dataset | awk '{print $3}'`
48 log_fail "Unable to get reservation prop on $dataset"
54 resv_val=`$ZFS get -pH refreservation $dataset | awk '{print $3}'`
56 log_fail "Unable to get reservation prop on $dataset"
66 # limit of each other. Used primarily to check that a dataset's parent
H A Dreservation_003_pos.ksh73 # Set a reservation $RESV_ITER times on a dataset and verify that
76 function multiple_resv { #dataset
79 dataset=$1
81 log_must zero_reservation $dataset
102 log_must $ZFS set reservation=$resv_size_set $dataset
104 resv_size_get=`get_prop reservation $dataset`
111 log_must zero_reservation $dataset
/freebsd-head/sys/cddl/compat/opensolaris/kern/
H A Dopensolaris_zone.c59 zone_dataset_attach(struct ucred *cred, const char *dataset, int jailid) argument
70 zd = malloc(sizeof(*zd) + strlen(dataset) + 1, M_ZONES, M_WAITOK);
84 if (strcmp(dataset, zd2->zd_dataset) == 0) {
100 strcpy(zd->zd_dataset, dataset);
111 zone_dataset_detach(struct ucred *cred, const char *dataset, int jailid) argument
132 if (strcmp(dataset, zd->zd_dataset) == 0)
150 * Returns true if the named dataset is visible in the current zone.
151 * The 'write' parameter is set to 1 if the dataset is also writable.
154 zone_dataset_visible(const char *dataset, int *write) argument
162 if (dataset[
[all...]

Completed in 385 milliseconds

123