/freebsd-13-stable/contrib/smbfs/examples/ |
H A D | smbfs.sh.sample | 20 for vol in ${vols}; do 21 $mount $vol 22 echo -n "$vol " 27 for vol in ${vols}; do 28 $umount $vol 29 echo -n "$vol "
|
/freebsd-13-stable/tests/sys/cddl/zfs/tests/cli_root/zfs_rename/ |
H A D | zfs_rename_006_pos.ksh | 69 vol=$TESTPOOL/$TESTVOL 73 if ! snapexists $vol@$snap; then 74 log_must $ZFS snapshot $vol@$snap 77 rename_dataset $vol@$snap $vol@${snap}-new 78 rename_dataset $vol ${vol}-new 79 rename_dataset ${vol}-new@${snap}-new ${vol}-new@$snap 80 rename_dataset ${vol} [all...] |
/freebsd-13-stable/sys/contrib/openzfs/tests/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_busy zfs destroy -f $vol
|
H A D | zfs_create_nomount.ksh | 35 for ds in "$fs" "$vol"; do 44 typeset vol="$TESTPOOL/$TESTVOL1" 49 log_mustnot zfs create -V $VOLSIZE -u "$vol"
|
/freebsd-13-stable/tests/sys/cddl/zfs/tests/cli_root/zfs_create/ |
H A D | zfs_create_003_pos.ksh | 61 datasetexists $vol && \ 62 log_must $ZFS destroy -f $vol 69 vol=$TESTPOOL/$TESTVOL 73 log_must $ZFS create ${options[i]} -V $VOLSIZE $vol 74 datasetexists $vol || \ 75 log_fail "zfs create ${options[i]} -V $VOLSIZE $vol fail." 77 log_must $ZFS destroy -f $vol
|
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/refreserv/ |
H A D | refreserv_005_pos.ksh | 57 vol=$fs/vol 58 log_must zfs create -V 10M $vol 59 refreserv=`get_prop refreservation $vol` 64 log_must zfs set reservation=10M $vol 65 log_must zfs set refreservation=10M $vol 68 log_must zfs set reservation=$(($refreserv + $fudge)) $vol 69 log_must zfs set reservation=$(($refreserv - $fudge)) $vol 70 log_must zfs set refreservation=$(($refreserv + $fudge)) $vol 71 log_must zfs set refreservation=$(($refreserv - $fudge)) $vol [all...] |
/freebsd-13-stable/sys/contrib/openzfs/tests/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} [all...] |
/freebsd-13-stable/tests/sys/cddl/zfs/tests/refreserv/ |
H A D | refreserv_005_pos.ksh | 71 fs=$TESTPOOL/$TESTFS; vol=$fs/vol 72 log_must $ZFS create -V 10M $vol 76 log_must $ZFS set refreservation=10M $vol 77 avail=$(get_prop mountpoint $vol) 78 log_mustnot $ZFS set refreservation=$avail $vol 81 log_must $ZFS set volsize=15M $vol 82 log_must $ZFS set refreservation=15M $vol 83 log_mustnot $ZFS set refreservation=16M $vol
|
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_copies/ |
H A D | zfs_copies_003_pos.ksh | 54 if datasetexists $vol; then 55 log_must zfs destroy $vol 61 vol=$TESTPOOL/$TESTVOL1
|
H A D | zfs_copies_006_pos.ksh | 54 if datasetexists $vol; then 55 log_must zfs destroy $vol 67 vol=$TESTPOOL/$TESTVOL1
|
/freebsd-13-stable/tests/sys/cddl/zfs/tests/cli_root/zfs_copies/ |
H A D | zfs_copies_003_pos.ksh | 68 if datasetexists $vol; then 69 log_must $ZFS destroy $vol 75 vol=$TESTPOOL/$TESTVOL1
|
H A D | zfs_copies_006_pos.ksh | 68 if datasetexists $vol; then 69 log_must $ZFS destroy $vol 81 vol=$TESTPOOL/$TESTVOL1
|
/freebsd-13-stable/sys/contrib/openzfs/tests/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="${ZVOL_DEVDIR}/$vol" 64 log_must zfs create -s -b $vbs -V $volsize $vol 68 new_volsize=$(get_prop volsize $vol) 72 log_must_busy zfs destroy $vol
|
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/reservation/ |
H A D | reservation_019_pos.ksh | 48 vol=$TESTPOOL/$TESTVOL 50 # Create sparse vol and verify 51 log_must zfs create -V $vol_size -s $vol 52 resv=$(get_prop refreservation $vol) 56 log_must zfs set refreservation=auto $vol 59 resv=$(get_prop refreservation $vol) 60 expected=$(volsize_to_reservation $vol $vol_size)
|
H A D | reservation_020_pos.ksh | 35 # Destroy first vol and descendants in one go. 46 vol=$TESTPOOL/$TESTVOL 47 snap=$vol@clone 50 # Create sparse vol and verify 51 log_must zfs create -V $vol_size $vol 52 resv=$(get_prop refreservation $vol) 53 expected=$(volsize_to_reservation $vol $vol_size)
|
/freebsd-13-stable/sys/geom/raid/ |
H A D | tr_concat.c | 100 g_raid_tr_update_state_concat(struct g_raid_volume *vol) argument 108 sc = vol->v_softc; 109 trs = (struct g_raid_tr_concat_object *)vol->v_tr; 115 n = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_ACTIVE); 116 f = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_FAILED); 117 if (n + f == vol->v_disks_count) { 125 if (s != vol->v_state) { 130 if (vol->v_raid_level == G_RAID_VOLUME_RL_CONCAT && 132 !G_RAID_VOLUME_S_ALIVE(vol->v_state)) { 134 for (i = 0; i < vol 158 struct g_raid_volume *vol; local 186 struct g_raid_volume *vol; local 199 struct g_raid_volume *vol; local 212 struct g_raid_volume *vol; local 292 struct g_raid_volume *vol; local [all...] |
H A D | tr_raid1e.c | 139 static int g_raid_tr_raid1e_select_read_disk(struct g_raid_volume *vol, 143 V2P(struct g_raid_volume *vol, off_t virt, argument 149 strip_size = vol->v_strip_size; 155 *disk = (nstrip * N) % vol->v_disks_count; 157 *offset = ((nstrip * N) / vol->v_disks_count) * strip_size; 161 P2V(struct g_raid_volume *vol, int disk, off_t offset, argument 167 strip_size = vol->v_strip_size; 171 nstrip = (offset / strip_size) * vol->v_disks_count + disk; 179 g_raid_tr_taste_raid1e(struct g_raid_tr_object *tr, struct g_raid_volume *vol) argument 192 g_raid_tr_update_state_raid1e_even(struct g_raid_volume *vol) argument 245 g_raid_tr_update_state_raid1e_odd(struct g_raid_volume *vol) argument 299 g_raid_tr_update_state_raid1e(struct g_raid_volume *vol, struct g_raid_subdisk *sd) argument 336 struct g_raid_volume *vol; local 361 struct g_raid_volume *vol; local 398 struct g_raid_volume *vol; local 429 struct g_raid_volume *vol; local 502 struct g_raid_volume *vol; local 560 struct g_raid_volume *vol; local 606 struct g_raid_volume *vol; local 619 struct g_raid_volume *vol; local 635 g_raid_tr_raid1e_select_read_disk(struct g_raid_volume *vol, int no, off_t off, off_t len, u_int mask) argument 690 struct g_raid_volume *vol; local 760 struct g_raid_volume *vol; local 838 struct g_raid_volume *vol; local 889 struct g_raid_volume *vol; local 1150 struct g_raid_volume *vol; local 1214 struct g_raid_volume *vol; local [all...] |
H A D | tr_raid0.c | 98 g_raid_tr_update_state_raid0(struct g_raid_volume *vol) argument 105 sc = vol->v_softc; 106 trs = (struct g_raid_tr_raid0_object *)vol->v_tr; 112 n = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_ACTIVE); 113 f = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_FAILED); 114 if (n + f == vol->v_disks_count) { 122 if (s != vol->v_state) { 123 g_raid_event_send(vol, G_RAID_VOLUME_S_ALIVE(s) ? 126 g_raid_change_volume_state(vol, s); 128 g_raid_write_metadata(sc, vol, NUL 139 struct g_raid_volume *vol; local 167 struct g_raid_volume *vol; local 180 struct g_raid_volume *vol; local 193 struct g_raid_volume *vol; local 274 struct g_raid_volume *vol; local [all...] |
H A D | tr_raid5.c | 103 g_raid_tr_taste_raid5(struct g_raid_tr_object *tr, struct g_raid_volume *vol) argument 132 g_raid_tr_update_state_raid5(struct g_raid_volume *vol, argument 140 sc = vol->v_softc; 141 trs = (struct g_raid_tr_raid5_object *)vol->v_tr; 148 na = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_ACTIVE); 149 ns = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_STALE) + 150 g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_RESYNC); 151 nu = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_UNINITIALIZED); 152 if (na == vol->v_disks_count) 154 else if (na + ns == vol 187 struct g_raid_volume *vol; local 201 struct g_raid_volume *vol; local 214 struct g_raid_volume *vol; local 346 struct g_raid_volume *vol; local [all...] |
H A D | g_raid.c | 125 static void g_raid_destroy_provider(struct g_raid_volume *vol); 128 static int g_raid_update_volume(struct g_raid_volume *vol, u_int event); 590 g_raid_change_volume_state(struct g_raid_volume *vol, int state) argument 593 G_RAID_DEBUG1(0, vol->v_softc, 595 vol->v_name, 596 g_raid_volume_state2str(vol->v_state), 598 vol->v_state = state; 726 g_raid_nsubdisks(struct g_raid_volume *vol, int state) argument 732 sc = vol->v_softc; 736 for (i = 0; i < vol 751 g_raid_get_subdisk(struct g_raid_volume *vol, int state) argument 815 struct g_raid_volume *vol; local 913 g_raid_clean(struct g_raid_volume *vol, int acw) argument 941 g_raid_dirty(struct g_raid_volume *vol) argument 960 struct g_raid_volume *vol; local 1010 struct g_raid_volume *vol; local 1039 struct g_raid_volume *vol; local 1056 struct g_raid_volume *vol; local 1078 struct g_raid_volume *vol; local 1168 g_raid_is_in_locked_range(struct g_raid_volume *vol, const struct bio *bp) argument 1185 struct g_raid_volume *vol; local 1226 g_raid_finish_with_locked_ranges(struct g_raid_volume *vol, struct bio *bp) argument 1262 struct g_raid_volume *vol; local 1283 g_raid_lock_range(struct g_raid_volume *vol, off_t off, off_t len, struct bio *ignore, void *argp) argument 1320 g_raid_unlock_range(struct g_raid_volume *vol, off_t off, off_t len) argument 1448 struct g_raid_volume *vol; local 1500 struct g_raid_volume *vol; local 1619 g_raid_launch_provider(struct g_raid_volume *vol) argument 1686 g_raid_destroy_provider(struct g_raid_volume *vol) argument 1718 g_raid_update_volume(struct g_raid_volume *vol, u_int event) argument 1766 struct g_raid_volume *vol; local 1823 struct g_raid_volume *vol; local 1918 struct g_raid_volume *vol, *vol1; local 1984 g_raid_start_volume(struct g_raid_volume *vol) argument 2026 struct g_raid_volume *vol, *tmpv; local 2075 g_raid_destroy_volume(struct g_raid_volume *vol) argument 2304 g_raid_write_metadata(struct g_raid_softc *sc, struct g_raid_volume *vol, struct g_raid_subdisk *sd, struct g_raid_disk *disk) argument 2338 struct g_raid_volume *vol; local 2463 struct g_raid_volume *vol; local [all...] |
/freebsd-13-stable/sys/contrib/openzfs/tests/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."
|
/freebsd-13-stable/tests/sys/cddl/zfs/tests/cli_root/zfs_promote/ |
H A D | zfs_promote_008_pos.ksh | 62 log_must $ZFS promote $vol 71 vol=$TESTPOOL/$TESTVOL 72 snap=$vol@$TESTSNAP 89 origin_prop=$(get_prop origin $vol) 91 log_fail "The dependency of $vol is not correct."
|
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/ |
H A D | send-c_volume.ksh | 32 log_must_busy zfs destroy -r $vol 41 typeset vol="$POOL/newvol" 49 log_must zfs create -V 256m -o compress=lz4 $vol 56 log_must zfs snapshot $vol@snap 58 log_must eval "zfs send -c $vol@snap >$BACKDIR/full" 61 verify_stream_size $BACKDIR/full $vol 68 log_must zfs snapshot $vol@snap2 70 log_must eval "zfs send -c -i snap $vol@snap2 >$BACKDIR/inc" 73 verify_stream_size $BACKDIR/inc $vol 90 $vol [all...] |
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 77 log_must eval "zfs recv -d -F $POOL2 <$BACKDIR/vol" [all...] |
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/bootfs/ |
H A D | bootfs_002_neg.ksh | 54 if datasetexists $TESTPOOL/vol 56 log_must zfs destroy $TESTPOOL/vol 81 log_must zfs create -V 10m $TESTPOOL/vol 84 log_mustnot zpool set bootfs=$TESTPOOL/vol $TESTPOOL
|