/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_rename/ |
H A D | zfs_rename_006_pos.ksh | 57 vol=$TESTPOOL/$TESTVOL 61 if ! snapexists $vol@$snap; then 62 log_must zfs snapshot $vol@$snap 65 rename_dataset $vol@$snap $vol@${snap}-new 66 rename_dataset $vol ${vol}-new 67 rename_dataset ${vol}-new@${snap}-new ${vol}-new@$snap 68 rename_dataset ${vol}-new $vol 71 create_clone $vol@$snap $clone 82 log_must zfs destroy $vol@$snap
|
H A D | zfs_rename_007_pos.ksh | 118 vol=$TESTPOOL/$TESTFS/vol.$$ ; volclone=$TESTPOOL/$TESTFS/volclone.$$ 119 log_must zfs create -V 100M $vol 121 obj=$(target_obj $vol) 124 snap=${vol}@snap.$$ 129 log_must zfs rename $vol ${vol}-new 133 obj=$(target_obj ${vol}-new) 141 log_must zfs rename ${vol}-new $vol
|
/illumos-gate/usr/src/lib/hal/libhal-storage/common/ |
H A D | libhal-storage.c | 818 libhal_volume_free (LibHalVolume *vol) in libhal_volume_free() argument 820 if (vol == NULL ) in libhal_volume_free() 823 free (vol->udi); in libhal_volume_free() 824 libhal_free_string (vol->device_file); in libhal_volume_free() 825 libhal_free_string (vol->volume_label); in libhal_volume_free() 826 libhal_free_string (vol->fstype); in libhal_volume_free() 827 libhal_free_string (vol->mount_point); in libhal_volume_free() 828 libhal_free_string (vol->fsversion); in libhal_volume_free() 829 libhal_free_string (vol->uuid); in libhal_volume_free() 830 libhal_free_string (vol->desired_mount_point); in libhal_volume_free() [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/refreserv/ |
H A D | refreserv_005_pos.ksh | 57 fs=$TESTPOOL/$TESTFS; vol=$fs/vol 58 log_must zfs create -V 10M $vol 62 log_must zfs set refreservation=10M $vol 63 avail=$(get_prop mountpoint $vol) 64 log_mustnot zfs set refreservation=$avail $vol 67 log_must zfs set volsize=15M $vol 68 log_must zfs set refreservation=15M $vol 69 log_mustnot zfs set refreservation=16M $vol
|
H A D | refreserv_multi_raidz.ksh | 107 vol=$TESTPOOL/$TESTVOL 109 -o volblocksize=$vbs "$vol" 111 refres=$(zfs get -Hpo value refreservation "$vol") 115 log_must zfs destroy "$vol" 138 typeset vbs vol refres refres1 refres2 expect 154 vol=$TESTPOOL/$TESTVOL 155 log_must zfs create -V ${volsize}m -o volblocksize=$vbs "$vol" 156 refres=$(zfs get -Hpo value refreservation "$vol") 172 log_must zfs destroy "$vol"
|
H A D | refreserv_raidz.ksh | 104 vol=$TESTPOOL/$TESTVOL 106 -o volblocksize=$vbs "$vol" 107 log_must dd if=/dev/zero of=/dev/zvol/dsk/$vol \ 111 ref=$(zfs get -Hpo value referenced "$vol") 112 refres=$(zfs get -Hpo value refreservation "$vol") 123 log_must zfs destroy "$vol"
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/delegate/ |
H A D | delegate_common.kshlib | 305 typeset vol=$3 310 verify_vol_destroy $user $perm $vol 314 verify_vol_snapshot $user $perm $vol 318 verify_vol_rollback $user $perm $vol 322 verify_vol_clone $user $perm $vol 326 verify_vol_rename $user $perm $vol 330 verify_vol_promote $user $perm $vol 334 verify_vol_volsize $user $perm $vol 338 common_perm $user $perm $vol 1340 typeset vol=$3 [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/rsend/ |
H A D | send-c_volume.ksh | 33 log_must zfs destroy -r $vol 42 typeset vol="$POOL/newvol" 50 log_must zfs create -V 256m -o compress=lz4 $vol 57 log_must zfs snapshot $vol@snap 59 log_must eval "zfs send -c $vol@snap >$BACKDIR/full" 62 verify_stream_size $BACKDIR/full $vol 69 log_must zfs snapshot $vol@snap2 71 log_must eval "zfs send -c -i snap $vol@snap2 >$BACKDIR/inc" 74 verify_stream_size $BACKDIR/inc $vol 90 $vol@snap
|
H A D | send-c_incremental.ksh | 38 typeset final dstlist list vol 73 vol=$POOL2/$FS/vol 74 final=$(getds_with_suffix $vol @final) 75 log_must eval "zfs send -c -R $opt @init $vol@final >$BACKDIR/vol" 76 log_must destroy_tree $vol@snapB $vol@snapC $vol@final 79 dstlist=$(getds_with_suffix $POOL2/$FS/vol @final)
|
H A D | rsend_005_pos.ksh | 95 vol=$POOL2/$FS/vol 96 log_must eval "zfs send -R -I @init $vol@final > " \ 98 log_must destroy_tree $vol@snapB $vol@snapC $vol@final
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_create/ |
H A D | zfs_create_003_pos.ksh | 49 datasetexists $vol && \ 50 log_must zfs destroy -f $vol 57 vol=$TESTPOOL/$TESTVOL 61 log_must zfs create ${options[i]} -V $VOLSIZE $vol 62 datasetexists $vol || \ 63 log_fail "zfs create ${options[i]} -V $VOLSIZE $vol fail." 65 log_must zfs destroy -f $vol
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/zvol/zvol_swap/ |
H A D | zvol_swap_004_pos.ksh | 50 datasetexists $vol && log_must zfs destroy $vol 60 vol="$TESTPOOL/vol_$volsize" 61 swapname="/dev/zvol/dsk/$vol" 64 log_must zfs create -s -b $vbs -V $volsize $vol 67 new_volsize=$(get_prop volsize $vol) 71 log_must zfs destroy $vol
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/reservation/ |
H A D | reservation_019_pos.sh | 50 vol=$TESTPOOL/$TESTVOL 53 log_must zfs create -V $vol_size -s $vol 54 resv=$(get_prop refreservation $vol) 58 log_must zfs set refreservation=auto $vol 61 resv=$(get_prop refreservation $vol) 62 expected=$(volsize_to_reservation $vol $vol_size)
|
H A D | reservation_020_pos.sh | 48 vol=$TESTPOOL/$TESTVOL 49 snap=$vol@clone 53 log_must zfs create -V $vol_size $vol 54 resv=$(get_prop refreservation $vol) 55 expected=$(volsize_to_reservation $vol $vol_size)
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/mpt_sas/ |
H A D | mptsas_raid.c | 112 uint8_t numelements, vol, disk; in mptsas_raidconf_page_0_cb() local 173 vol = 0; in mptsas_raidconf_page_0_cb() 194 raidconfig->m_raidvol[vol].m_israid = 1; in mptsas_raidconf_page_0_cb() 195 raidconfig->m_raidvol[vol]. in mptsas_raidconf_page_0_cb() 204 &raidconfig->m_raidvol[vol])) in mptsas_raidconf_page_0_cb() 212 &raidconfig->m_raidvol[vol])) in mptsas_raidconf_page_0_cb() 215 raidwwn = raidconfig->m_raidvol[vol]. in mptsas_raidconf_page_0_cb() 224 raidconfig->m_raidvol[vol].m_raidtgt = in mptsas_raidconf_page_0_cb() 231 vol++; in mptsas_raidconf_page_0_cb() 576 int config, vol; in mptsas_raid_action_system_shutdown() local [all …]
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_chkpnt.c | 143 char vol[ZFS_MAX_DATASET_NAME_LEN]; in ndmp_create_snapshot() local 146 get_zfsvolname(vol, sizeof (vol), vol_name) == -1) in ndmp_create_snapshot() 154 if (ndmp_has_backup_snapshot(vol, jname)) in ndmp_create_snapshot() 155 (void) snapshot_destroy(vol, jname, B_FALSE, B_TRUE, NULL); in ndmp_create_snapshot() 157 return (snapshot_create(vol, jname, B_FALSE, B_TRUE)); in ndmp_create_snapshot() 177 char vol[ZFS_MAX_DATASET_NAME_LEN]; in ndmp_remove_snapshot() local 180 get_zfsvolname(vol, sizeof (vol), vol_name) == -1) in ndmp_remove_snapshot() 183 return (snapshot_destroy(vol, jname, B_FALSE, B_TRUE, NULL)); in ndmp_remove_snapshot()
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_copies/ |
H A D | zfs_copies.kshlib | 97 vol=$TESTPOOL/$TESTVOL1 101 log_must zfs create -V $VOLSIZE -o copies=$copy $vol 102 log_must zfs set refreservation=none $vol 112 pre_used=$(get_used_prop $vol) 121 post_used=$(get_used_prop $vol) 124 post_used=$(get_used_prop $vol) 139 log_must zfs destroy $vol
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/history/ |
H A D | history_002_pos.ksh | 51 for dataset in $fs $newfs $fsclone $vol $newvol $volclone; do 61 vol=$TESTPOOL/$TESTVOL ; newvol=$TESTPOOL/newvol; volclone=$TESTPOOL/volclone 63 volsnap=$vol@volsnap; volsnap2=$vol@volsnap2 109 run_and_verify "zfs create -V 64M $vol" 110 run_and_verify "zfs set volsize=32M $vol" 128 run_and_verify "zfs receive $vol < $tmpfile2" 134 run_and_verify "zfs rename $vol $newvol"
|
/illumos-gate/usr/src/cmd/bhyve/test/tests/mevent/ |
H A D | vnode_zvol.c | 110 create_zvol(libzfs_handle_t *zfshdl, const char *vol) in create_zvol() argument 119 err = zfs_create(zfshdl, vol, ZFS_TYPE_VOLUME, volprops); in create_zvol() 122 vol, libzfs_error_description(zfshdl)); in create_zvol() 126 VERBOSE(("Created ZVOL %s", vol)); in create_zvol() 134 char *template, *pool, *vol, *backend; in main() local 159 err = asprintf(&vol, "%s/test_zvol_%d", pool, getpid()); in main() 162 err = asprintf(&backend, "/dev/zvol/rdsk/%s", vol); in main() 184 if (!create_zvol(zfshdl, vol)) { in main() 189 if ((volhdl = zfs_open(zfshdl, vol, ZFS_TYPE_VOLUME)) == NULL) { in main()
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/channel_program/synctask_core/ |
H A D | tst.get_number_props.ksh | 29 vol=$TESTPOOL/$TESTVOL 34 datasetexists $vol && log_must zfs destroy $vol 48 log_must zfs set snapshot_limit=10 $vol 50 log_must_program $TESTPOOL $ZCP_ROOT/synctask_core/tst.get_number_props.zcp $fs $snap $vol
|
H A D | tst.get_type.ksh | 28 vol=$TESTPOOL/$TESTVOL 33 datasetexists $vol && log_must zfs destroy $vol 40 log_must zfs create -V $VOLSIZE $vol 49 ans, setpoint = zfs.get_prop("$vol", "type")
|
H A D | tst.list_system_props.ksh | 28 vol=$TESTPOOL/$TESTVOL 33 datasetexists $vol && log_must zfs destroy $vol 40 log_must zfs create -V $VOLSIZE $vol 51 zfs.list.system_properties("$vol")
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_promote/ |
H A D | zfs_promote_008_pos.ksh | 49 log_must zfs promote $vol 58 vol=$TESTPOOL/$TESTVOL 59 snap=$vol@$TESTSNAP 76 origin_prop=$(get_prop origin $vol) 78 log_fail "The dependency of $vol is not correct."
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_unmount/ |
H A D | zfs_unmount_008_neg.ksh | 55 for ds in $vol $fs1; do 78 vol=$TESTPOOL/vol.$$ 88 log_must zfs create -V 10m $vol 90 vol="" 100 for ds in $snap $vol "blah"; do
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_expand/ |
H A D | zpool_expand_002_pos.ksh | 59 if datasetexists $VFS/vol$i; then 60 log_must zfs destroy $VFS/vol$i 70 log_must zfs create -V $org_size $VFS/vol$i 88 log_must zfs set volsize=$exp_size $VFS/vol$i 92 log_must zpool online -e $TESTPOOL1 /dev/zvol/dsk/$VFS/vol$i 145 log_must zfs set volsize=$org_size $VFS/vol$i
|