| /freebsd-12.1/tests/sys/cddl/zfs/tests/snapused/ |
| H A D | snapused.kshlib | 42 typeset dataset=$1 48 used=$(get_prop used $dataset) 62 typeset dataset=$1 71 typeset dataset=$1 81 if [[ "$child" == "$dataset" ]]; then 101 typeset dataset=$1 127 typeset dataset=$1 136 typeset dataset=$1 153 typeset dataset=$1 162 typeset dataset=$1 [all …]
|
| /freebsd-12.1/tests/sys/cddl/zfs/tests/cli_root/zfs_set/ |
| H A D | readonly_001_pos.ksh | 64 snapexists ${dataset}@$TESTSNAP && \ 71 typeset dataset=$1 73 typeset fstype=$(get_prop type $dataset) 85 typeset dataset=$1 98 typeset dataset=$1 101 if datasetnonexists $dataset ; then 102 log_note "$dataset not exist!" 159 for dataset in $all_datasets; do 162 initial_dataset $dataset 165 verify_readonly $dataset $value [all …]
|
| H A D | snapdir_001_pos.ksh | 64 for dataset in $all_datasets; do 65 snapexists ${dataset}@snap && \ 66 log_must $ZFS destroy ${dataset}@snap 72 typeset dataset=$1 74 typeset mtpt=$(get_prop mountpoint $dataset) 107 for dataset in $all_datasets; do 108 log_must $ZFS snapshot ${dataset}@snap 113 for dataset in $all_datasets; do 117 "$dataset" "false" 120 "$dataset" [all …]
|
| H A D | canmount_002_pos.ksh | 141 dataset=${dataset_pos[i]} 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 153 log_must unmounted $dataset 155 log_must unmounted $dataset 158 log_must $ZFS mount $dataset 159 log_must mounted $dataset [all …]
|
| H A D | canmount_001_pos.ksh | 113 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" "false" [all …]
|
| H A D | zfs_set_common.kshlib | 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'" 244 typeset dataset=$2 247 source=$($ZFS get -H -o source $prop $dataset) 249 log_fail "Unable to get $prop source for dataset $dataset"
|
| H A D | mountpoint_002_pos.ksh | 63 set -A dataset "$TESTPOOL/$TESTFS" "$TESTPOOL/$TESTCTR" 95 if ismounted ${dataset[i]} ; then 96 log_must $ZFS unmount ${dataset[i]} 98 log_mustnot ismounted ${dataset[i]} 102 log_mustnot ismounted ${dataset[i]}
|
| /freebsd-12.1/tests/sys/cddl/zfs/tests/inheritance/ |
| H A D | inherit_001_pos.ksh | 70 typeset dataset=$1 85 list="$list $dataset" 94 typeset dataset=$1 121 ${local_val[((i/2))]} $dataset 134 typeset dataset=$1 189 typeset dataset=$1 199 mntpt="$ZFSROOT/"$dataset 203 obj_name=${dataset##*/} 206 dset=${dataset%/*} 212 dataset=$dset [all …]
|
| H A D | inherit.kshlib | 40 typeset dataset=$2 42 prop_val=`$ZFS get -H -o source $prop $dataset` 46 "property for dataset $dataset" 106 typeset dataset=$3 108 $ZFS set $prop=$prop_val $dataset 109 check_val=`get_prop $prop $dataset` 112 log_fail "Property $prop of $dataset has value $check_val"\
|
| H A D | README.config | 30 # The configX.cfg files describe both the dataset hierarchy to 36 # <dataset name> <dataset type> <inital property setting> 38 # <dataset name> - must be the full dataset name 40 # <dataset type> - recognised types are POOL, CTR and FS 54 # dataset hierarchy. 57 # The configuration below creates a three tier dataset layout, consisting
|
| H A D | README.state | 33 # dataset hierarchy which has been specified by the corresponding 38 # <target dataset>:<command> 44 # <target dataset> - dataset upon which the <command> is to be executed. Can 50 # <command> - command to be executed upon the specified dataset. 58 # can be 'default', 'local' or the name of a dataset 69 # <command> has been executed on the <target dataset>. 70 # As above can be 'default', 'local', or the dataset 74 # 1) there must be a <property src..> line corresponding to each dataset 87 # The first simply verifies that the properties on the top level dataset
|
| /freebsd-12.1/sys/cddl/compat/opensolaris/kern/ |
| H A D | opensolaris_zone.c | 84 if (strcmp(dataset, zd2->zd_dataset) == 0) { in zone_dataset_attach() 100 strcpy(zd->zd_dataset, dataset); in zone_dataset_attach() 132 if (strcmp(dataset, zd->zd_dataset) == 0) in zone_dataset_detach() 162 if (dataset[0] == '\0') in zone_dataset_visible() 182 if (strlen(dataset) >= len && in zone_dataset_visible() 183 bcmp(dataset, zd->zd_dataset, len) == 0 && in zone_dataset_visible() 184 (dataset[len] == '\0' || dataset[len] == '/' || in zone_dataset_visible() 185 dataset[len] == '@')) { in zone_dataset_visible() 201 len = strlen(dataset); in zone_dataset_visible() 202 if (dataset[len - 1] == '/') in zone_dataset_visible() [all …]
|
| /freebsd-12.1/tests/sys/cddl/zfs/tests/cli_root/zfs_rename/ |
| H A D | zfs_rename_002_pos.ksh | 63 set -A dataset "$TESTPOOL/$TESTFS@snapshot" "$TESTPOOL/$TESTFS1" \ 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[i]})/$TESTFILE0 90 elif [[ ${dataset[i]} == "$TESTPOOL/$TESTVOL" ]] && is_global_zone; then 94 data=$(get_prop mountpoint ${dataset[i]})/$TESTFILE0
|
| H A D | zfs_rename.kshlib | 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
|
| H A D | zfs_rename_001_pos.ksh | 63 set -A dataset "$TESTPOOL/$TESTFS@snapshot" "$TESTPOOL/$TESTFS1" \ 80 rename_dataset ${dataset[i]} ${dataset[i]}-new 115 if datasetexists ${dataset[i]}-new ; then 116 log_must $ZFS rename ${dataset[i]}-new ${dataset[i]}
|
| /freebsd-12.1/tests/sys/cddl/zfs/tests/cli_user/zfs_list/ |
| H A D | setup.ksh | 42 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 D | zfs_list_006_pos.ksh | 73 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"
|
| H A D | zfs_list.kshlib | 53 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" ]
|
| /freebsd-12.1/contrib/libarchive/libarchive/ |
| H A D | archive_read.c | 392 if (a->client.dataset == NULL) in archive_read_set_callback_data2() 428 p = realloc(a->client.dataset, sizeof(*a->client.dataset) in archive_read_add_callback_data() 437 a->client.dataset[i].data = a->client.dataset[i-1].data; in archive_read_add_callback_data() 439 a->client.dataset[i].total_size = -1; in archive_read_add_callback_data() 487 a->client.dataset[i].data); in archive_read_open1() 1137 free(a->client.dataset); in _archive_read_free() 1653 client->dataset[cursor].total_size; in __archive_read_filter_seek() 1668 client->dataset[cursor].total_size; in __archive_read_filter_seek() 1687 client->dataset[cursor].total_size; in __archive_read_filter_seek() 1698 client->dataset[cursor].total_size; in __archive_read_filter_seek() [all …]
|
| /freebsd-12.1/cddl/contrib/opensolaris/cmd/zinject/ |
| H A D | translate.c | 87 parse_pathname(const char *inpath, char *dataset, char *relpath, in parse_pathname() argument 132 (void) strcpy(dataset, sfs.f_mntfromname); in parse_pathname() 161 err = dmu_objset_own(dataset, DMU_OST_ZFS, B_TRUE, FTAG, &os); in object_from_path() 164 dataset, strerror(err)); in object_from_path() 246 if ((err = dmu_objset_own(dataset, DMU_OST_ANY, in calculate_range() 249 dataset, strerror(err)); in calculate_range() 357 dataset[0] = '\0'; in translate_record() 365 if (parse_pathname(object, dataset, path, &statbuf) != 0) in translate_record() 368 ziprintf(" dataset: %s\n", dataset); in translate_record() 374 if (object_from_path(dataset, path, &statbuf, record) != 0) in translate_record() [all …]
|
| /freebsd-12.1/tests/sys/cddl/zfs/tests/reservation/ |
| H A D | reservation.kshlib | 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"
|
| H A D | reservation_003_pos.ksh | 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-12.1/contrib/unbound/util/data/ |
| H A D | msgparse.c | 351 dataset->type)) { in moveover_rrsigs() 404 if(!dataset) in change_rrsig_rrset() 417 return dataset; in change_rrsig_rrset() 424 dataset->hash = hash; in change_rrsig_rrset() 429 dataset->rrsig_count += dataset->rr_count; in change_rrsig_rrset() 430 dataset->rr_count = 0; in change_rrsig_rrset() 433 dataset->rrsig_last->next = dataset->rr_first; in change_rrsig_rrset() 434 else dataset->rrsig_first = dataset->rr_first; in change_rrsig_rrset() 435 dataset->rrsig_last = dataset->rr_last; in change_rrsig_rrset() 437 dataset->rr_last = 0; in change_rrsig_rrset() [all …]
|
| /freebsd-12.1/tests/sys/cddl/zfs/tests/rsend/ |
| H A D | rsend_002_pos.ksh | 97 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-12.1/usr.bin/ministat/ |
| H A D | ministat.c | 141 struct dataset { struct 149 static struct dataset * argument 152 struct dataset *ds; in NewSet() 178 Min(struct dataset *ds) in Min() 185 Max(struct dataset *ds) in Max() 192 Avg(struct dataset *ds) in Avg() 199 Median(struct dataset *ds) in Median() 208 Var(struct dataset *ds) in Var() 244 Relative(struct dataset *ds, struct dataset *rs, int confidx) in Relative() 469 static struct dataset * [all …]
|