Home
last modified time | relevance | path

Searched refs:dataset (Results 1 – 25 of 101) sorted by relevance

12345

/titanic_51/usr/src/test/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...]
/titanic_51/usr/src/test/zfs-tests/tests/functional/inheritance/
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...]
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 DREADME.config26 # The configX.cfg files describe both the dataset hierarchy to
32 # <dataset name> <dataset type> <inital property setting>
34 # <dataset name> - must be the full dataset name
36 # <dataset type> - recognised types are POOL, CTR and FS
50 # dataset hierarchy.
53 # The configuration below creates a three tier dataset layout, consisting
H A DREADME.state29 # dataset hierarchy which has been specified by the corresponding
34 # <target dataset>:<command>
40 # <target dataset> - dataset upon which the <command> is to be executed. Can
46 # <command> - command to be executed upon the specified dataset.
54 # can be 'default', 'local' or the name of a dataset
65 # <command> has been executed on the <target dataset>.
66 # As above can be 'default', 'local', or the dataset
70 # 1) there must be a <property src..> line corresponding to each dataset
83 # The first simply verifies that the properties on the top level dataset
[all...]
/titanic_51/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_set/
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 Dsnapdir_001_pos.ksh32 # Setting a valid snapdir on a dataset, it should be successful.
36 # 2. Create a snapshot for each dataset.
37 # 3. Setting different valid snapdir to each dataset.
46 for dataset in $all_datasets; do
47 snapexists ${dataset}@snap && \
48 log_must $ZFS destroy ${dataset}@snap
52 function verify_snapdir_visible # $1 dataset, $2 hidden|visible
54 typeset dataset=$1
56 typeset mtpt=$(get_prop mountpoint $dataset)
87 for dataset i
[all...]
H A Dcanmount_002_pos.ksh43 # 2. Set canmount=noauto for each dataset and check the retuen value
45 # 3. mount each dataset(except volume) to see if it can be mounted.
121 dataset=${dataset_pos[i]}
122 set_n_check_prop "noauto" "canmount" "$dataset"
123 log_must $ZFS set mountpoint=$tmpmnt $dataset
124 if ismounted $dataset; then
126 log_must mounted $dataset
127 log_must $ZFS unmount $dataset
128 log_must unmounted $dataset
130 log_must unmounted $dataset
[all...]
H A Dzfs_set_common.kshlib41 # Firstly, set the property value to dataset. Then checking if the property
46 # $3 dataset
53 typeset dataset=$3
59 [[ -n $prop ]] && old_value=$(get_prop $prop $dataset)
62 [[ -z $prop || -z $dataset ]] && \
63 log_fail "property or dataset isn't defined."
65 log_must $ZFS set $prop=$expect_value $dataset
70 [[ -n $prop ]] && cur_value=$(get_prop $prop $dataset)
76 log_fail "The '$dataset' '$prop' value \
79 log_fail "The '$dataset' '
[all...]
H A Dcanmount_001_pos.ksh95 for dataset in "${dataset_pos[@]}" ; do
97 set_n_check_prop "$value" "canmount" "$dataset"
99 log_mustnot ismounted $dataset
100 log_mustnot $ZFS mount $dataset
101 log_mustnot ismounted $dataset
103 if ! ismounted $dataset ; then
104 log_must $ZFS mount $dataset
106 log_must ismounted $dataset
111 for dataset in "${dataset_neg[@]}" ; do
114 "$dataset" "fals
[all...]
H A Dmountpoint_002_pos.ksh42 # 2. Unmount that dataset
51 set -A dataset "$TESTPOOL/$TESTFS" "$TESTPOOL/$TESTCTR"
81 while (( i < ${#dataset[@]} )); do
83 if ismounted ${dataset[i]} ; then
84 log_must $ZFS unmount ${dataset[i]}
86 log_mustnot ismounted ${dataset[i]}
89 "${dataset[i]}"
90 log_mustnot ismounted ${dataset[i]}
H A Dro_props_001_pos.ksh47 set -A dataset $TESTPOOL $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL \
81 while (( i < ${#dataset[@]} )); do
84 dst_type=$(get_prop type ${dataset[i]})
90 cur_value=$(get_prop $prop ${dataset[i]})
96 # just expect it failed. Otherwise, set it to dataset,
102 ${dataset[i]}
105 ${dataset[i]} false
H A Dcanmount_003_pos.ksh37 # While canmount=noauto and the dataset is mounted,
42 # 2. Set canmount=noauto for each dataset and check the return value
43 # and check if it still can not be unmounted when the dataset is mounted
80 log_assert "While canmount=noauto and the dataset is mounted,"\
102 dataset=${dataset_pos[i]}
103 if ismounted $dataset; then
105 set_n_check_prop "noauto" "canmount" "$dataset"
106 log_must mounted $dataset
111 log_pass "Setting canmount=noauto to filesystem while dataset busy pass."
H A Donoffs_001_pos.ksh54 set -A dataset "$TESTPOOL/$TESTFS" "$TESTPOOL/$TESTCTR" "$TESTPOOL/$TESTVOL"
56 set -A dataset "$TESTPOOL/$TESTFS" "$TESTPOOL/$TESTCTR"
65 while (( i < ${#dataset[@]} )); do
70 if [[ ${dataset[i]} == "$TESTPOOL/$TESTVOL" && \
74 "${dataset[i]}" "false"
79 "${dataset[i]}"
83 "${dataset[i]}" "false"
88 "${dataset[i]}"
/titanic_51/usr/src/lib/libshare/common/
H A Dlibshare_zfs.c231 * dataset.
234 get_legacy_mountpoint(char *path, char *dataset, size_t dlen, in get_legacy_mountpoint() argument
255 (void) strlcpy(dataset, entry.mnt_special, in get_legacy_mountpoint()
267 * get the name of the ZFS dataset the path is equivalent to. The
268 * dataset name is used for get/set of ZFS properties since libzfs
269 * requires a dataset to do a zfs_open().
277 char *dataset = NULL; in get_zfs_dataset() local
295 * Search mmttab for mountpoint and get dataset. in get_zfs_dataset()
301 dataset = mountpoint; in get_zfs_dataset()
319 dataset in get_zfs_dataset()
338 get_zfs_property(char * dataset,zfs_prop_t property) get_zfs_property() argument
373 char *dataset; sa_zfs_is_shared() local
526 zfs_construct_resource(sa_share_t share,char * dataset) zfs_construct_resource() argument
544 zfs_inherited(sa_handle_t handle,sa_share_t share,char * sourcestr,char * shareopts,char * mountpoint,char * proto,char * dataset) zfs_inherited() argument
618 zfs_notinherited(sa_group_t group,sa_share_t share,char * mountpoint,char * shareopts,char * proto,char * dataset,int grouperr) zfs_notinherited() argument
697 sa_zfs_process_share(sa_handle_t handle,sa_group_t group,sa_share_t share,char * mountpoint,char * proto,zprop_source_t source,char * shareopts,char * sourcestr,char * dataset) sa_zfs_process_share() argument
783 char *dataset; sa_get_zfs_shares() local
933 char *dataset = NULL; sa_zfs_set_sharenfs() local
1044 char *dataset = NULL; sa_zfs_set_sharesmb() local
1122 char *dataset = NULL; sa_zfs_update() local
1270 char *dataset; sa_share_zfs() local
1393 char dataset[ZFS_MAXPROPLEN]; sa_zfs_get_info() local
1545 char *dataset, *lastcomma; sa_zfs_setprop() local
[all...]
/titanic_51/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_rename/
H A Dzfs_rename_002_pos.ksh37 # 2. Rename each dataset object to a new name.
38 # 3. Rename each dataset back to its original name.
46 set -A dataset "$TESTPOOL/$TESTFS@snapshot" "$TESTPOOL/$TESTFS1" \
62 while ((i < ${#dataset[*]} )); do
65 rename_dataset ${dataset[i]} ${dataset[i]}-new
66 rename_dataset ${dataset[i]}-new ${dataset[i]}
71 if [[ ${dataset[i]} == *@* ]]; then
72 data=$(snapshot_mountpoint ${dataset[
[all...]
H A Dzfs_rename_001_pos.ksh38 # 2. Rename each dataset object to a new name.
46 set -A dataset "$TESTPOOL/$TESTFS@snapshot" "$TESTPOOL/$TESTFS1" \
62 while (( i < ${#dataset[*]} )); do
63 rename_dataset ${dataset[i]} ${dataset[i]}-new
97 while ((i < ${#dataset[*]} )); do
98 if datasetexists ${dataset[i]}-new ; then
99 log_must $ZFS rename ${dataset[i]}-new ${dataset[i]}
104 log_pass "'zfs rename' successfully renamed each dataset typ
[all...]
H A Dzfs_rename.kshlib85 while ((i < ${#dataset[*]} )); do
86 if ! datasetexists ${dataset[i]}-new ; then
91 if [[ ${dataset[i]}-new != *@* ]] ; then
92 $ZFS rename ${dataset[i]}-new ${dataset[i]}
94 typeset newfs=${dataset[i]}-new
95 typeset oldfs=${dataset[i]}
102 log_must $ZFS destroy -fR ${dataset[i]}-new
/titanic_51/usr/src/test/zfs-tests/tests/functional/cli_user/zfs_list/
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
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" ]
/titanic_51/usr/src/cmd/zinject/
H A Dtranslate.c83 * Given a full path to a file, translate into a dataset name and a relative
84 * path within the dataset. 'dataset' must be at least MAXNAMELEN characters,
89 parse_pathname(const char *inpath, char *dataset, char *relpath, in parse_pathname() argument
149 (void) strcpy(dataset, mp.mnt_special); in parse_pathname()
160 * Convert from a (dataset, path) pair into a (objset, object) pair. Note that
166 object_from_path(const char *dataset, const char *path, struct stat64 *statbuf, in object_from_path() argument
178 err = dmu_objset_own(dataset, DMU_OST_ZFS, B_TRUE, FTAG, &os); in object_from_path()
180 (void) fprintf(stderr, "cannot open dataset '%s': %s\n", in object_from_path()
181 dataset, strerro in object_from_path()
197 calculate_range(const char * dataset,err_type_t type,int level,char * range,zinject_record_t * record) calculate_range() argument
333 translate_record(err_type_t type,const char * object,const char * range,int level,zinject_record_t * record,char * poolname,char * dataset) translate_record() argument
[all...]
/titanic_51/usr/src/test/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
/titanic_51/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_vss.c47 * is expecting a path that is the root of the dataset.
50 * in the dataset that was opened. The iterator function gets
98 * path - path of the dataset
99 * count - return value of the number of snapshots for the dataset
104 char dataset[MAXPATHLEN]; in smbd_vss_get_count() local
112 if (smb_getdataset(path, dataset, MAXPATHLEN) != 0) in smbd_vss_get_count()
118 if ((zfshd = zfs_open(libhd, dataset, ZFS_TYPE_DATASET)) == NULL) { in smbd_vss_get_count()
136 * path - is the path of the dataset
148 char dataset[MAXPATHLEN]; in smbd_vss_get_snapshots() local
170 if (smb_getdataset(path, dataset, MAXPATHLE in smbd_vss_get_snapshots()
236 char dataset[MAXPATHLEN]; smbd_vss_map_gmttoken() local
[all...]
/titanic_51/usr/src/test/zfs-tests/tests/functional/reservation/
H A Dreservation_003_pos.sh70 # Set a reservation $RESV_ITER times on a dataset and verify that
73 function multiple_resv { #dataset
76 dataset=$1
78 log_must zero_reservation $dataset
99 log_must $ZFS set reservation=$resv_size_set $dataset
101 resv_size_get=`get_prop reservation $dataset`
108 log_must zero_reservation $dataset
/titanic_51/usr/src/test/zfs-tests/tests/functional/cli_root/
H A Dcli_common.kshlib71 # Check the received dataset exists or not
77 for dataset in $@; do
78 ! datasetexists $dataset && \
79 bad_rst_tgts="$bad_rst_tgts $dataset"

12345