Home
last modified time | relevance | path

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

12345

/illumos-gate/usr/src/test/zfs-tests/tests/functional/snapused/
H A Dsnapused.kshlib37 typeset dataset=$1
43 used=$(get_prop used $dataset)
57 typeset dataset=$1
66 typeset dataset=$1
76 if [[ "$child" == "$dataset" ]]; then
96 typeset dataset=$1
122 typeset dataset=$1
131 typeset dataset=$1
148 typeset dataset=$1
157 typeset dataset=$1
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/inheritance/
H A Dinherit_001_pos.ksh55 typeset dataset=$1
62 log_must zfs create $dataset
70 list="$list $dataset"
78 typeset dataset=$1
126 typeset dataset=$1
177 typeset dataset=$1
194 mntpt="/$dataset"
198 obj_name=${dataset##*/}
201 dset=${dataset%/*}
212 dataset=$dset
[all …]
H A Dinherit.kshlib39 typeset dataset=$2
41 prop_val=`zfs get -H -o source $prop $dataset`
45 "property for dataset $dataset"
105 typeset dataset=$3
107 zfs set $prop=$prop_val $dataset
108 check_val=`get_prop $prop $dataset`
111 log_fail "Property $prop of $dataset has value $check_val"\
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
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_set/
H A Dreadonly_001_pos.ksh50 snapexists ${dataset}@$TESTSNAP && \
57 typeset dataset=$1
59 typeset fstype=$(get_prop type $dataset)
71 typeset dataset=$1
84 typeset dataset=$1
87 if datasetnonexists $dataset ; then
88 log_note "$dataset does not exist!"
147 for dataset in $all_datasets; do
150 initial_dataset $dataset
153 verify_readonly $dataset $value
[all …]
H A Dzfs_set_common.kshlib53 typeset dataset=$3
62 [[ -z $prop || -z $dataset ]] && \
65 log_must zfs set $prop=$expect_value $dataset
76 log_fail "The '$dataset' '$prop' value \
92 log_mustnot zfs set $prop=$expect_value $dataset
258 typeset dataset=$2
261 source=$(zfs get -H -o source $prop $dataset)
281 typeset dataset="$1"
334 typeset dataset="$1"
341 "$dataset"
[all …]
H A Dsnapdir_001_pos.ksh50 for dataset in $all_datasets; do
51 snapexists ${dataset}@snap && \
52 log_must zfs destroy ${dataset}@snap
58 typeset dataset=$1
60 typeset mtpt=$(get_prop mountpoint $dataset)
91 for dataset in $all_datasets; do
92 log_must zfs snapshot ${dataset}@snap
97 for dataset in $all_datasets; do
101 "$dataset" "false"
104 "$dataset"
[all …]
H A Dcanmount_002_pos.ksh121 dataset=${dataset_pos[i]}
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
133 log_must unmounted $dataset
135 log_must unmounted $dataset
138 log_must zfs mount $dataset
139 log_must mounted $dataset
[all …]
H A Dcanmount_001_pos.ksh99 for dataset in "${dataset_pos[@]}" ; do
101 set_n_check_prop "$value" "canmount" "$dataset"
103 log_mustnot ismounted $dataset
104 log_mustnot zfs mount $dataset
105 log_mustnot ismounted $dataset
107 if ! ismounted $dataset ; then
108 log_must zfs mount $dataset
110 log_must ismounted $dataset
115 for dataset in "${dataset_neg[@]}" ; do
118 "$dataset" "false"
[all …]
H A Dmountpoint_002_pos.ksh51 set -A dataset "$TESTPOOL/$TESTFS" "$TESTPOOL/$TESTCTR"
83 if ismounted ${dataset[i]} ; then
84 log_must zfs unmount ${dataset[i]}
86 log_mustnot ismounted ${dataset[i]}
90 log_mustnot ismounted ${dataset[i]}
H A Dro_props_001_pos.ksh51 set -A dataset $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL \
88 dst_type=$(get_prop type ${dataset[i]})
94 cur_value=$(get_prop $prop ${dataset[i]})
106 ${dataset[i]}
109 ${dataset[i]} false
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_rename/
H A Dzfs_rename_002_pos.ksh51 set -A dataset "$TESTPOOL/$TESTFS@snapshot" "$TESTPOOL/$TESTFS1" \
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[i]})/$TESTFILE0
78 elif [[ ${dataset[i]} == "$TESTPOOL/$TESTVOL" ]] && is_global_zone; then
82 data=$(get_prop mountpoint ${dataset[i]})/$TESTFILE0
H A Dzfs_rename_001_pos.ksh51 set -A dataset "$TESTPOOL/$TESTFS@snapshot" "$TESTPOOL/$TESTFS1" \
68 rename_dataset ${dataset[i]} ${dataset[i]}-new
103 if datasetexists ${dataset[i]}-new ; then
104 log_must zfs rename ${dataset[i]}-new ${dataset[i]}
H A Dzfs_rename.kshlib88 if ! datasetexists ${dataset[i]}-new ; then
93 if [[ ${dataset[i]}-new != *@* ]] ; then
94 zfs rename ${dataset[i]}-new ${dataset[i]}
96 typeset newfs=${dataset[i]}-new
97 typeset oldfs=${dataset[i]}
104 log_must zfs destroy -fR ${dataset[i]}-new
/illumos-gate/usr/src/lib/libshare/common/
H A Dlibshare_zfs.c417 char *dataset; in sa_zfs_is_shared() local
439 free(dataset); in sa_zfs_is_shared()
798 char *dataset; in sa_get_zfs_share_common() local
1142 free(dataset); in sa_zfs_set_sharenfs()
1446 char *dataset; in sa_share_zfs() local
1537 free(dataset); in sa_share_zfs()
1733 free(dataset); in sa_zfs_setprop()
1739 free(dataset); in sa_zfs_setprop()
1746 free(dataset); in sa_zfs_setprop()
1753 free(dataset); in sa_zfs_setprop()
[all …]
/illumos-gate/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" ]
/illumos-gate/usr/src/test/zfs-tests/cmd/libzfs_input_check/
H A Dlibzfs_input_check.c331 char dataset[MAXNAMELEN + 32]; in test_create() local
333 (void) snprintf(dataset, sizeof (dataset), "%s/create-fs", pool); in test_create()
600 test_remap(const char *dataset) in test_remap() argument
747 (void) snprintf(dataset, sizeof (dataset), "%s/test-fs", pool); in zfs_ioc_input_tests()
780 test_create(dataset); in zfs_ioc_input_tests()
792 test_get_bookmarks(dataset); in zfs_ioc_input_tests()
806 test_remap(dataset); in zfs_ioc_input_tests()
809 test_load_key(dataset); in zfs_ioc_input_tests()
810 test_change_key(dataset); in zfs_ioc_input_tests()
811 test_unload_key(dataset); in zfs_ioc_input_tests()
[all …]
/illumos-gate/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
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_vss.c105 char dataset[MAXPATHLEN]; in smbd_vss_get_count() local
116 if (smb_getdataset(libhd, path, dataset, MAXPATHLEN) != 0) { in smbd_vss_get_count()
121 if ((zfshd = zfs_open(libhd, dataset, ZFS_TYPE_DATASET)) == NULL) { in smbd_vss_get_count()
151 char dataset[MAXPATHLEN]; in smbd_vss_get_snapshots() local
179 if (smb_getdataset(libhd, path, dataset, MAXPATHLEN) != 0) { in smbd_vss_get_snapshots()
185 if ((zfshd = zfs_open(libhd, dataset, ZFS_TYPE_DATASET)) == NULL) { in smbd_vss_get_snapshots()
241 char dataset[MAXPATHLEN]; in smbd_vss_map_gmttoken() local
261 if (smb_getdataset(libhd, path, dataset, MAXPATHLEN) != 0) { in smbd_vss_map_gmttoken()
266 if ((zfshd = zfs_open(libhd, dataset, ZFS_TYPE_DATASET)) == NULL) { in smbd_vss_map_gmttoken()
276 lsnap = dataset; in smbd_vss_map_gmttoken()
/illumos-gate/usr/src/cmd/zinject/
H A Dtranslate.c84 parse_pathname(const char *inpath, char *dataset, char *relpath, in parse_pathname() argument
144 (void) strcpy(dataset, mp.mnt_special); in parse_pathname()
159 object_from_path(const char *dataset, uint64_t object, zinject_record_t *record) in object_from_path() argument
163 if ((zhp = zfs_open(g_zfs, dataset, ZFS_TYPE_DATASET)) == NULL) in object_from_path()
242 int level, zinject_record_t *record, char *poolname, char *dataset) in translate_record() argument
281 dataset[0] = '\0'; in translate_record()
289 if (parse_pathname(object, dataset, path, &statbuf) != 0) in translate_record()
292 ziprintf(" dataset: %s\n", dataset); in translate_record()
298 if (object_from_path(dataset, statbuf.st_ino, record) != 0) in translate_record()
322 (void) strcpy(poolname, dataset); in translate_record()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/channel_program/synctask_core/
H A Dchange_key.c41 get_pool(const char *dataset) in get_pool() argument
43 char *res = strdup(dataset); in get_pool()
59 const char *dataset = argv[1]; in main() local
74 pool = get_pool(dataset); in main()
76 fnvlist_add_string(args, "dataset", dataset); in main()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/reservation/
H A Dreservation_003_pos.sh76 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
/illumos-gate/usr/src/test/zfs-tests/tests/functional/alloc_class/
H A Dalloc_class_012_pos.ksh35 typeset dataset="$1"
38 zdb -dddddd $dataset $inum | nawk '{
92 dataset="$TESTPOOL/$TESTFS"
94 log_must file_in_special_vdev $dataset $inum

12345