/titanic_50/usr/src/test/zfs-tests/tests/functional/snapused/ |
H A D | snapused.kshlib | 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*" 57 typeset dataset=$1 58 for child in $($ZFS list -rH -t filesystem,volume -o name $dataset) [all …]
|
/titanic_50/usr/src/test/zfs-tests/tests/functional/inheritance/ |
H A D | inherit_001_pos.ksh | 54 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" 77 typeset dataset=$1 89 log_note "Leaving properties for $dataset unchanged." 91 update_recordsize $dataset $init_code 94 log_note "Leaving properties for $dataset at default values." [all …]
|
H A D | inherit.kshlib | 39 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 D | README.config | 26 # 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 D | README.state | 29 # 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
|
/titanic_50/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_set/ |
H A D | readonly_001_pos.ksh | 49 for dataset in $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL ; do 50 snapexists ${dataset}@$TESTSNAP && \ 51 log_must $ZFS destroy -R ${dataset}@$TESTSNAP 57 typeset dataset=$1 59 typeset fstype=$(get_prop type $dataset) 62 typeset mtpt=$(get_prop mountpoint $dataset) 71 typeset dataset=$1 73 typeset fstype=$(get_prop type $dataset) 76 typeset mtpt=$(get_prop mountpoint $dataset) 84 typeset dataset=$1 [all …]
|
H A D | snapdir_001_pos.ksh | 46 for dataset in $all_datasets; do 47 snapexists ${dataset}@snap && \ 48 log_must $ZFS destroy ${dataset}@snap 54 typeset dataset=$1 56 typeset mtpt=$(get_prop mountpoint $dataset) 87 for dataset in $all_datasets; do 88 log_must $ZFS snapshot ${dataset}@snap 93 for dataset in $all_datasets; do 95 if [[ $dataset == "$TESTPOOL/$TESTVOL" ]] ; then 97 "$dataset" "false" [all …]
|
H A D | canmount_002_pos.ksh | 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 133 log_must unmounted $dataset 135 log_must unmounted $dataset [all …]
|
H A D | zfs_set_common.kshlib | 53 typeset dataset=$3 59 [[ -n $prop ]] && old_value=$(get_prop $prop $dataset) 62 [[ -z $prop || -z $dataset ]] && \ 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' '$prop' value '$cur_value' \ 85 log_fail "The '$dataset' '$prop' value '$cur_value' \ 92 log_mustnot $ZFS set $prop=$expect_value $dataset 94 [[ -n $prop ]] && cur_value=$(get_prop $prop $dataset) [all …]
|
H A D | canmount_001_pos.ksh | 95 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" "false" [all …]
|
H A D | mountpoint_002_pos.ksh | 51 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 D | ro_props_001_pos.ksh | 47 set -A dataset $TESTPOOL $TESTPOOL/$TESTFS $TESTPOOL/$TESTVOL \ 84 dst_type=$(get_prop type ${dataset[i]}) 90 cur_value=$(get_prop $prop ${dataset[i]}) 102 ${dataset[i]} 105 ${dataset[i]} false
|
H A D | canmount_003_pos.ksh | 102 dataset=${dataset_pos[i]} 103 if ismounted $dataset; then 105 set_n_check_prop "noauto" "canmount" "$dataset" 106 log_must mounted $dataset
|
H A D | onoffs_001_pos.ksh | 54 set -A dataset "$TESTPOOL/$TESTFS" "$TESTPOOL/$TESTCTR" "$TESTPOOL/$TESTVOL" 56 set -A dataset "$TESTPOOL/$TESTFS" "$TESTPOOL/$TESTCTR" 70 if [[ ${dataset[i]} == "$TESTPOOL/$TESTVOL" && \
|
/titanic_50/usr/src/lib/libshare/common/ |
H A D | libshare_zfs.c | 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() 277 char *dataset = NULL; in get_zfs_dataset() local 301 dataset = mountpoint; in get_zfs_dataset() 319 dataset = (char *)zfs_get_name(zlist[i]); in get_zfs_dataset() 325 if (dataset != NULL) in get_zfs_dataset() 326 dataset = strdup(dataset); in get_zfs_dataset() 328 return (dataset); in get_zfs_dataset() 338 get_zfs_property(char *dataset, zfs_prop_t property) in get_zfs_property() argument 346 handle = zfs_open(libhandle, dataset, ZFS_TYPE_FILESYSTEM); in get_zfs_property() [all …]
|
/titanic_50/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_rename/ |
H A D | zfs_rename_002_pos.ksh | 46 set -A dataset "$TESTPOOL/$TESTFS@snapshot" "$TESTPOOL/$TESTFS1" \ 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[i]})/$TESTFILE0 73 elif [[ ${dataset[i]} == "$TESTPOOL/$TESTVOL" ]] && is_global_zone; then 77 data=$(get_prop mountpoint ${dataset[i]})/$TESTFILE0
|
H A D | zfs_rename_001_pos.ksh | 46 set -A dataset "$TESTPOOL/$TESTFS@snapshot" "$TESTPOOL/$TESTFS1" \ 63 rename_dataset ${dataset[i]} ${dataset[i]}-new 98 if datasetexists ${dataset[i]}-new ; then 99 log_must $ZFS rename ${dataset[i]}-new ${dataset[i]}
|
H A D | zfs_rename.kshlib | 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_50/usr/src/test/zfs-tests/tests/functional/cli_user/zfs_list/ |
H A D | setup.ksh | 43 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 D | zfs_list.kshlib | 52 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_50/usr/src/cmd/zinject/ |
H A D | translate.c | 89 parse_pathname(const char *inpath, char *dataset, char *relpath, in parse_pathname() argument 149 (void) strcpy(dataset, mp.mnt_special); in parse_pathname() 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() 181 dataset, strerror(err)); in object_from_path() 197 calculate_range(const char *dataset, err_type_t type, int level, char *range, in calculate_range() argument 263 if ((err = dmu_objset_own(dataset, DMU_OST_ANY, in calculate_range() 266 dataset, strerror(err)); in calculate_range() 333 int level, zinject_record_t *record, char *poolname, char *dataset) in translate_record() argument 374 dataset[0] = '\0'; in translate_record() [all …]
|
/titanic_50/usr/src/test/zfs-tests/tests/functional/rsend/ |
H A D | rsend_002_pos.ksh | 83 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_50/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_vss.c | 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() 148 char dataset[MAXPATHLEN]; in smbd_vss_get_snapshots() local 170 if (smb_getdataset(path, dataset, MAXPATHLEN) != 0) { in smbd_vss_get_snapshots() 180 if ((zfshd = zfs_open(libhd, dataset, ZFS_TYPE_DATASET)) == NULL) { in smbd_vss_get_snapshots() 236 char dataset[MAXPATHLEN]; in smbd_vss_map_gmttoken() local 253 if (smb_getdataset(path, dataset, MAXPATHLEN) != 0) in smbd_vss_map_gmttoken() 259 if ((zfshd = zfs_open(libhd, dataset, ZFS_TYPE_DATASET)) == NULL) { in smbd_vss_map_gmttoken() 269 lsnap = dataset; in smbd_vss_map_gmttoken()
|
/titanic_50/usr/src/test/zfs-tests/tests/functional/reservation/ |
H A D | reservation_003_pos.sh | 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_50/usr/src/test/zfs-tests/tests/functional/cli_root/ |
H A D | cli_common.kshlib | 77 for dataset in $@; do 78 ! datasetexists $dataset && \ 79 bad_rst_tgts="$bad_rst_tgts $dataset"
|