/illumos-gate/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 …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/inheritance/ |
H A D | inherit_001_pos.ksh | 55 typeset dataset=$1 60 create_pool "$dataset" "$disks" 62 log_must zfs create $dataset 63 log_must zfs set canmount=off $dataset 65 log_must zfs create $dataset 70 list="$list $dataset" 78 typeset dataset=$1 90 log_note "Leaving properties for $dataset unchanged." 92 update_recordsize $dataset $init_code 95 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
|
/illumos-gate/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 | 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 | snapdir_001_pos.ksh | 50 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 99 if [[ $dataset == "$TESTPOOL/$TESTVOL" ]] ; then 101 "$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 | canmount_001_pos.ksh | 99 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 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 | 51 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 D | zfs_rename_002_pos.ksh | 51 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 D | zfs_rename_001_pos.ksh | 51 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 D | zfs_rename.kshlib | 88 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 D | libshare_zfs.c | 238 get_legacy_mountpoint(const char *path, char *dataset, size_t dlen, in get_legacy_mountpoint() argument 260 (void) strlcpy(dataset, entry.mnt_special, in get_legacy_mountpoint() 382 get_zfs_property(char *dataset, zfs_prop_t property) in get_zfs_property() argument 390 handle = zfs_open(libhandle, dataset, ZFS_TYPE_FILESYSTEM); in get_zfs_property() 417 char *dataset; in sa_zfs_is_shared() local 422 dataset = get_zfs_dataset((sa_handle_t)sahandle, path, B_FALSE); in sa_zfs_is_shared() 423 if (dataset != NULL) { in sa_zfs_is_shared() 426 handle = zfs_open(libhandle, dataset, in sa_zfs_is_shared() 439 free(dataset); in sa_zfs_is_shared() 570 zfs_construct_resource(sa_share_t share, char *dataset) in zfs_construct_resource() argument [all …]
|
/illumos-gate/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" ]
|
/illumos-gate/usr/src/test/zfs-tests/cmd/libzfs_input_check/ |
H A D | libzfs_input_check.c | 331 char dataset[MAXNAMELEN + 32]; in test_create() local 333 (void) snprintf(dataset, sizeof (dataset), "%s/create-fs", pool); in test_create() 343 IOC_INPUT_TEST(ZFS_IOC_CREATE, dataset, required, optional, 0); in test_create() 411 test_get_bookmarks(const char *dataset) in test_get_bookmarks() argument 419 IOC_INPUT_TEST_WILD(ZFS_IOC_GET_BOOKMARKS, dataset, NULL, optional, 0); in test_get_bookmarks() 453 test_rollback(const char *dataset, const char *snapshot) in test_rollback() argument 459 IOC_INPUT_TEST(ZFS_IOC_ROLLBACK, dataset, NULL, optional, B_FALSE); in test_rollback() 534 test_recv_new(const char *dataset, int fd) in test_recv_new() argument 545 (void) snprintf(snapshot, sizeof (snapshot), "%s@replicant", dataset); in test_recv_new() 573 IOC_INPUT_TEST(ZFS_IOC_RECV_NEW, dataset, required, optional, EBADE); in test_recv_new() [all …]
|
/illumos-gate/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
|
/illumos-gate/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_vss.c | 105 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 D | translate.c | 84 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 D | change_key.c | 41 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 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
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/alloc_class/ |
H A D | alloc_class_012_pos.ksh | 35 typeset dataset="$1" 38 zdb -dddddd $dataset $inum | nawk '{ 92 dataset="$TESTPOOL/$TESTFS" 94 log_must file_in_special_vdev $dataset $inum
|