/freebsd-current/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-current/tests/sys/cddl/zfs/tests/cli_root/zfs_rename/ |
H A D | zfs_rename_006_pos.ksh | 64 vol=$TESTPOOL/$TESTVOL 68 if ! snapexists $vol@$snap; then 69 log_must $ZFS snapshot $vol@$snap 72 rename_dataset $vol@$snap $vol@${snap}-new 73 rename_dataset $vol ${vol}-new 74 rename_dataset ${vol}-new@${snap}-new ${vol}-new@$snap 75 rename_dataset ${vol} [all...] |
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_create/ |
H A D | zfs_create_003_pos.ksh | 49 datasetexists $vol && destroy_dataset $vol -f 56 vol=$TESTPOOL/$TESTVOL 60 log_must zfs create ${options[i]} -V $VOLSIZE $vol 61 datasetexists $vol || \ 62 log_fail "zfs create ${options[i]} -V $VOLSIZE $vol fail." 64 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-current/tests/sys/cddl/zfs/tests/cli_root/zfs_create/ |
H A D | zfs_create_003_pos.ksh | 56 datasetexists $vol && \ 57 log_must $ZFS destroy -f $vol 64 vol=$TESTPOOL/$TESTVOL 68 log_must $ZFS create ${options[i]} -V $VOLSIZE $vol 69 datasetexists $vol || \ 70 log_fail "zfs create ${options[i]} -V $VOLSIZE $vol fail." 72 log_must $ZFS destroy -f $vol
|
/freebsd-current/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-current/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-current/tests/sys/cddl/zfs/tests/refreserv/ |
H A D | refreserv_005_pos.ksh | 66 fs=$TESTPOOL/$TESTFS; vol=$fs/vol 67 log_must $ZFS create -V 10M $vol 71 log_must $ZFS set refreservation=10M $vol 72 avail=$(get_prop mountpoint $vol) 73 log_mustnot $ZFS set refreservation=$avail $vol 76 log_must $ZFS set volsize=15M $vol 77 log_must $ZFS set refreservation=15M $vol 78 log_mustnot $ZFS set refreservation=16M $vol
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_copies/ |
H A D | zfs_copies_003_pos.ksh | 54 datasetexists $vol && destroy_dataset $vol 59 vol=$TESTPOOL/$TESTVOL1
|
H A D | zfs_copies_006_pos.ksh | 54 datasetexists $vol && destroy_dataset $vol 65 vol=$TESTPOOL/$TESTVOL1
|
/freebsd-current/tests/sys/cddl/zfs/tests/cli_root/zfs_copies/ |
H A D | zfs_copies_003_pos.ksh | 63 if datasetexists $vol; then 64 log_must $ZFS destroy $vol 70 vol=$TESTPOOL/$TESTVOL1
|
H A D | zfs_copies_006_pos.ksh | 63 if datasetexists $vol; then 64 log_must $ZFS destroy $vol 76 vol=$TESTPOOL/$TESTVOL1
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zvol/zvol_swap/ |
H A D | zvol_swap_004_pos.ksh | 50 datasetexists $vol && destroy_dataset $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-current/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-current/sys/geom/raid/ |
H A D | tr_concat.c | 97 g_raid_tr_update_state_concat(struct g_raid_volume *vol) argument 105 sc = vol->v_softc; 106 trs = (struct g_raid_tr_concat_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) { 127 if (vol->v_raid_level == G_RAID_VOLUME_RL_CONCAT && 129 !G_RAID_VOLUME_S_ALIVE(vol->v_state)) { 131 for (i = 0; i < vol 155 struct g_raid_volume *vol; local 183 struct g_raid_volume *vol; local 196 struct g_raid_volume *vol; local 209 struct g_raid_volume *vol; local 289 struct g_raid_volume *vol; local [all...] |
H A D | tr_raid1e.c | 136 static int g_raid_tr_raid1e_select_read_disk(struct g_raid_volume *vol, 140 V2P(struct g_raid_volume *vol, off_t virt, argument 146 strip_size = vol->v_strip_size; 152 *disk = (nstrip * N) % vol->v_disks_count; 154 *offset = ((nstrip * N) / vol->v_disks_count) * strip_size; 158 P2V(struct g_raid_volume *vol, int disk, off_t offset, argument 164 strip_size = vol->v_strip_size; 168 nstrip = (offset / strip_size) * vol->v_disks_count + disk; 176 g_raid_tr_taste_raid1e(struct g_raid_tr_object *tr, struct g_raid_volume *vol) argument 189 g_raid_tr_update_state_raid1e_even(struct g_raid_volume *vol) argument 242 g_raid_tr_update_state_raid1e_odd(struct g_raid_volume *vol) argument 296 g_raid_tr_update_state_raid1e(struct g_raid_volume *vol, struct g_raid_subdisk *sd) argument 333 struct g_raid_volume *vol; local 358 struct g_raid_volume *vol; local 395 struct g_raid_volume *vol; local 426 struct g_raid_volume *vol; local 499 struct g_raid_volume *vol; local 557 struct g_raid_volume *vol; local 603 struct g_raid_volume *vol; local 616 struct g_raid_volume *vol; local 632 g_raid_tr_raid1e_select_read_disk(struct g_raid_volume *vol, int no, off_t off, off_t len, u_int mask) argument 687 struct g_raid_volume *vol; local 757 struct g_raid_volume *vol; local 835 struct g_raid_volume *vol; local 886 struct g_raid_volume *vol; local 1147 struct g_raid_volume *vol; local 1211 struct g_raid_volume *vol; local [all...] |
H A D | tr_raid0.c | 95 g_raid_tr_update_state_raid0(struct g_raid_volume *vol) argument 102 sc = vol->v_softc; 103 trs = (struct g_raid_tr_raid0_object *)vol->v_tr; 109 n = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_ACTIVE); 110 f = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_FAILED); 111 if (n + f == vol->v_disks_count) { 119 if (s != vol->v_state) { 120 g_raid_event_send(vol, G_RAID_VOLUME_S_ALIVE(s) ? 123 g_raid_change_volume_state(vol, s); 125 g_raid_write_metadata(sc, vol, NUL 136 struct g_raid_volume *vol; local 164 struct g_raid_volume *vol; local 177 struct g_raid_volume *vol; local 190 struct g_raid_volume *vol; local 271 struct g_raid_volume *vol; local [all...] |
H A D | tr_raid5.c | 100 g_raid_tr_taste_raid5(struct g_raid_tr_object *tr, struct g_raid_volume *vol) argument 129 g_raid_tr_update_state_raid5(struct g_raid_volume *vol, argument 137 sc = vol->v_softc; 138 trs = (struct g_raid_tr_raid5_object *)vol->v_tr; 145 na = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_ACTIVE); 146 ns = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_STALE) + 147 g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_RESYNC); 148 nu = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_UNINITIALIZED); 149 if (na == vol->v_disks_count) 151 else if (na + ns == vol 184 struct g_raid_volume *vol; local 198 struct g_raid_volume *vol; local 211 struct g_raid_volume *vol; local 343 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 1038 struct g_raid_volume *vol; local 1054 struct g_raid_volume *vol; local 1076 struct g_raid_volume *vol; local 1166 g_raid_is_in_locked_range(struct g_raid_volume *vol, const struct bio *bp) argument 1183 struct g_raid_volume *vol; local 1224 g_raid_finish_with_locked_ranges(struct g_raid_volume *vol, struct bio *bp) argument 1260 struct g_raid_volume *vol; local 1281 g_raid_lock_range(struct g_raid_volume *vol, off_t off, off_t len, struct bio *ignore, void *argp) argument 1318 g_raid_unlock_range(struct g_raid_volume *vol, off_t off, off_t len) argument 1444 struct g_raid_volume *vol; local 1496 struct g_raid_volume *vol; local 1615 g_raid_launch_provider(struct g_raid_volume *vol) argument 1682 g_raid_destroy_provider(struct g_raid_volume *vol) argument 1714 g_raid_update_volume(struct g_raid_volume *vol, u_int event) argument 1762 struct g_raid_volume *vol; local 1819 struct g_raid_volume *vol; local 1914 struct g_raid_volume *vol, *vol1; local 1980 g_raid_start_volume(struct g_raid_volume *vol) argument 2022 struct g_raid_volume *vol, *tmpv; local 2071 g_raid_destroy_volume(struct g_raid_volume *vol) argument 2300 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 2334 struct g_raid_volume *vol; local 2459 struct g_raid_volume *vol; local [all...] |
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/bootfs/ |
H A D | bootfs_002_neg.ksh | 54 datasetexists $TESTPOOL/vol && destroy_dataset $TESTPOOL/vol 70 log_must zfs create -V 10m $TESTPOOL/vol 73 log_mustnot zpool set bootfs=$TESTPOOL/vol $TESTPOOL
|
/freebsd-current/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-current/tests/sys/cddl/zfs/tests/cli_root/zfs_promote/ |
H A D | zfs_promote_008_pos.ksh | 57 log_must $ZFS promote $vol 66 vol=$TESTPOOL/$TESTVOL 67 snap=$vol@$TESTSNAP 84 origin_prop=$(get_prop origin $vol) 86 log_fail "The dependency of $vol is not correct."
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/ |
H A D | send-c_volume.ksh | 33 log_must_busy 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 71 log_must zfs snapshot $vol@snap2 73 log_must eval "zfs send -c -i snap $vol@snap2 >$BACKDIR/inc" 76 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...] |