Home
last modified time | relevance | path

Searched refs:vol (Results 1 – 25 of 221) sorted by relevance

123456789

/freebsd/usr.sbin/mixer/tests/
H A Dmixer_test.sh127 mixer vol.volume=0
128 atf_check -o match:"0.00:0.00" mixer vol.volume
130 mixer vol.volume=-2
131 atf_check -o match:"0.00:0.00" mixer vol.volume
133 mixer vol.volume=-1:-2
134 atf_check -o match:"0.00:0.00" mixer vol.volume
136 mixer vol.volume=-110%
137 atf_check -o match:"0.00:0.00" mixer vol.volume
140 mixer vol.volume=1
141 atf_check -o match:"1.00:1.00" mixer vol.volume
[all …]
/freebsd/sys/geom/raid/
H A Dtr_raid1e.c136 static int g_raid_tr_raid1e_select_read_disk(struct g_raid_volume *vol,
140 V2P(struct g_raid_volume *vol, off_t virt, in V2P() argument
146 strip_size = vol->v_strip_size; in V2P()
152 *disk = (nstrip * N) % vol->v_disks_count; in V2P()
154 *offset = ((nstrip * N) / vol->v_disks_count) * strip_size; in V2P()
158 P2V(struct g_raid_volume *vol, int disk, off_t offset, in P2V() argument
164 strip_size = vol->v_strip_size; in P2V()
168 nstrip = (offset / strip_size) * vol->v_disks_count + disk; in P2V()
176 g_raid_tr_taste_raid1e(struct g_raid_tr_object *tr, struct g_raid_volume *vol) in g_raid_tr_taste_raid1e() argument
189 g_raid_tr_update_state_raid1e_even(struct g_raid_volume *vol) in g_raid_tr_update_state_raid1e_even() argument
[all …]
H A Dg_raid.c125 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) in g_raid_change_volume_state() argument
593 G_RAID_DEBUG1(0, vol->v_softc, in g_raid_change_volume_state()
595 vol->v_name, in g_raid_change_volume_state()
596 g_raid_volume_state2str(vol->v_state), in g_raid_change_volume_state()
598 vol->v_state = state; in g_raid_change_volume_state()
726 g_raid_nsubdisks(struct g_raid_volume *vol, int state) in g_raid_nsubdisks() argument
732 sc = vol->v_softc; in g_raid_nsubdisks()
736 for (i = 0; i < vol->v_disks_count; i++) { in g_raid_nsubdisks()
[all …]
H A Dtr_concat.c97 g_raid_tr_update_state_concat(struct g_raid_volume *vol) in g_raid_tr_update_state_concat() argument
105 sc = vol->v_softc; in g_raid_tr_update_state_concat()
106 trs = (struct g_raid_tr_concat_object *)vol->v_tr; in g_raid_tr_update_state_concat()
112 n = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_ACTIVE); in g_raid_tr_update_state_concat()
113 f = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_FAILED); in g_raid_tr_update_state_concat()
114 if (n + f == vol->v_disks_count) { in g_raid_tr_update_state_concat()
122 if (s != vol->v_state) { in g_raid_tr_update_state_concat()
127 if (vol->v_raid_level == G_RAID_VOLUME_RL_CONCAT && in g_raid_tr_update_state_concat()
129 !G_RAID_VOLUME_S_ALIVE(vol->v_state)) { in g_raid_tr_update_state_concat()
131 for (i = 0; i < vol->v_disks_count; i++) { in g_raid_tr_update_state_concat()
[all …]
H A Dtr_raid5.c100 g_raid_tr_taste_raid5(struct g_raid_tr_object *tr, struct g_raid_volume *vol) in g_raid_tr_taste_raid5() argument
129 g_raid_tr_update_state_raid5(struct g_raid_volume *vol, in g_raid_tr_update_state_raid5() argument
137 sc = vol->v_softc; in g_raid_tr_update_state_raid5()
138 trs = (struct g_raid_tr_raid5_object *)vol->v_tr; in g_raid_tr_update_state_raid5()
145 na = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_ACTIVE); in g_raid_tr_update_state_raid5()
146 ns = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_STALE) + in g_raid_tr_update_state_raid5()
147 g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_RESYNC); in g_raid_tr_update_state_raid5()
148 nu = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_UNINITIALIZED); in g_raid_tr_update_state_raid5()
149 if (na == vol->v_disks_count) in g_raid_tr_update_state_raid5()
151 else if (na + ns == vol->v_disks_count || in g_raid_tr_update_state_raid5()
[all …]
H A Dtr_raid0.c95 g_raid_tr_update_state_raid0(struct g_raid_volume *vol) in g_raid_tr_update_state_raid0() argument
102 sc = vol->v_softc; in g_raid_tr_update_state_raid0()
103 trs = (struct g_raid_tr_raid0_object *)vol->v_tr; in g_raid_tr_update_state_raid0()
109 n = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_ACTIVE); in g_raid_tr_update_state_raid0()
110 f = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_FAILED); in g_raid_tr_update_state_raid0()
111 if (n + f == vol->v_disks_count) { in g_raid_tr_update_state_raid0()
119 if (s != vol->v_state) { in g_raid_tr_update_state_raid0()
120 g_raid_event_send(vol, G_RAID_VOLUME_S_ALIVE(s) ? in g_raid_tr_update_state_raid0()
123 g_raid_change_volume_state(vol, s); in g_raid_tr_update_state_raid0()
125 g_raid_write_metadata(sc, vol, NULL, NULL); in g_raid_tr_update_state_raid0()
[all …]
H A Dtr_raid1.c134 g_raid_tr_taste_raid1(struct g_raid_tr_object *tr, struct g_raid_volume *vol) in g_raid_tr_taste_raid1() argument
148 g_raid_tr_update_state_raid1(struct g_raid_volume *vol, in g_raid_tr_update_state_raid1() argument
157 sc = vol->v_softc; in g_raid_tr_update_state_raid1()
158 trs = (struct g_raid_tr_raid1_object *)vol->v_tr; in g_raid_tr_update_state_raid1()
166 na = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_ACTIVE); in g_raid_tr_update_state_raid1()
172 bestsd = &vol->v_subdisks[0]; in g_raid_tr_update_state_raid1()
173 for (i = 1; i < vol->v_disks_count; i++) { in g_raid_tr_update_state_raid1()
174 tsd = &vol->v_subdisks[i]; in g_raid_tr_update_state_raid1()
187 vol->v_name, bestsd->sd_pos, in g_raid_tr_update_state_raid1()
192 vol, bestsd, bestsd->sd_disk); in g_raid_tr_update_state_raid1()
[all …]
H A Dmd_promise.c297 promise_meta_translate_disk(struct g_raid_volume *vol, int md_disk_pos) in promise_meta_translate_disk() argument
301 if (md_disk_pos >= 0 && vol->v_raid_level == G_RAID_VOLUME_RL_RAID1E) { in promise_meta_translate_disk()
302 width = vol->v_disks_count / 2; in promise_meta_translate_disk()
539 struct g_raid_volume *vol; in g_raid_md_promise_get_volume() local
542 TAILQ_FOREACH(vol, &sc->sc_volumes, v_next) { in g_raid_md_promise_get_volume()
543 pv = vol->v_md_data; in g_raid_md_promise_get_volume()
547 return (vol); in g_raid_md_promise_get_volume()
553 struct g_raid_volume *vol, *tvol; in g_raid_md_promise_purge_volumes() local
558 TAILQ_FOREACH_SAFE(vol, &sc->sc_volumes, v_next, tvol) { in g_raid_md_promise_purge_volumes()
559 pv = vol->v_md_data; in g_raid_md_promise_purge_volumes()
[all …]
H A Dmd_nvidia.c655 struct g_raid_volume *vol; in g_raid_md_nvidia_start() local
668 vol = g_raid_create_volume(sc, buf, -1); in g_raid_md_nvidia_start()
669 vol->v_mediasize = (off_t)meta->total_sectors * 512; in g_raid_md_nvidia_start()
670 vol->v_raid_level_qualifier = G_RAID_VOLUME_RLQ_NONE; in g_raid_md_nvidia_start()
672 vol->v_raid_level = G_RAID_VOLUME_RL_RAID0; in g_raid_md_nvidia_start()
673 size = vol->v_mediasize / mdi->mdio_total_disks; in g_raid_md_nvidia_start()
675 vol->v_raid_level = G_RAID_VOLUME_RL_RAID1; in g_raid_md_nvidia_start()
676 size = vol->v_mediasize; in g_raid_md_nvidia_start()
678 vol->v_raid_level = G_RAID_VOLUME_RL_RAID1E; in g_raid_md_nvidia_start()
679 size = vol->v_mediasize / (mdi->mdio_total_disks / 2); in g_raid_md_nvidia_start()
[all …]
H A Dmd_intel.c353 intel_get_vol_curr_migr_unit(struct intel_raid_vol *vol) in intel_get_vol_curr_migr_unit() argument
355 off_t curr_migr_unit = (off_t)vol->curr_migr_unit_hi << 32; in intel_get_vol_curr_migr_unit()
357 curr_migr_unit += vol->curr_migr_unit; in intel_get_vol_curr_migr_unit()
362 intel_set_vol_curr_migr_unit(struct intel_raid_vol *vol, off_t curr_migr_unit) in intel_set_vol_curr_migr_unit() argument
365 vol->curr_migr_unit = curr_migr_unit & 0xffffffff; in intel_set_vol_curr_migr_unit()
366 vol->curr_migr_unit_hi = curr_migr_unit >> 32; in intel_set_vol_curr_migr_unit()
1256 struct g_raid_volume *vol; in g_raid_md_intel_start() local
1269 vol = g_raid_create_volume(sc, mvol->name, mvol->tid - 1); in g_raid_md_intel_start()
1276 vol->v_md_data = pv; in g_raid_md_intel_start()
1277 vol->v_raid_level_qualifier = G_RAID_VOLUME_RLQ_NONE; in g_raid_md_intel_start()
[all …]
H A Dmd_sii.c711 struct g_raid_volume *vol; in g_raid_md_sii_start() local
725 vol = g_raid_create_volume(sc, buf, -1); in g_raid_md_sii_start()
726 vol->v_mediasize = (off_t)meta->total_sectors * 512; in g_raid_md_sii_start()
727 vol->v_raid_level_qualifier = G_RAID_VOLUME_RLQ_NONE; in g_raid_md_sii_start()
729 vol->v_raid_level = G_RAID_VOLUME_RL_RAID0; in g_raid_md_sii_start()
730 size = vol->v_mediasize / mdi->mdio_total_disks; in g_raid_md_sii_start()
732 vol->v_raid_level = G_RAID_VOLUME_RL_RAID1; in g_raid_md_sii_start()
733 size = vol->v_mediasize; in g_raid_md_sii_start()
735 vol->v_raid_level = G_RAID_VOLUME_RL_RAID1E; in g_raid_md_sii_start()
736 size = vol->v_mediasize / (mdi->mdio_total_disks / 2); in g_raid_md_sii_start()
[all …]
H A Dmd_ddf.c1391 struct g_raid_volume *vol; in g_raid_md_ddf_get_volume() local
1394 TAILQ_FOREACH(vol, &sc->sc_volumes, v_next) { in g_raid_md_ddf_get_volume()
1395 pv = vol->v_md_data; in g_raid_md_ddf_get_volume()
1399 return (vol); in g_raid_md_ddf_get_volume()
1426 struct g_raid_volume *vol, *tvol; in g_raid_md_ddf_purge_volumes() local
1430 TAILQ_FOREACH_SAFE(vol, &sc->sc_volumes, v_next, tvol) { in g_raid_md_ddf_purge_volumes()
1431 if (vol->v_stopping) in g_raid_md_ddf_purge_volumes()
1433 for (i = 0; i < vol->v_disks_count; i++) { in g_raid_md_ddf_purge_volumes()
1434 if (vol->v_subdisks[i].sd_state != G_RAID_SUBDISK_S_NONE) in g_raid_md_ddf_purge_volumes()
1437 if (i >= vol->v_disks_count) { in g_raid_md_ddf_purge_volumes()
[all …]
/freebsd/usr.sbin/mptutil/
H A Dmpt_config.c49 static void dump_config(CONFIG_PAGE_RAID_VOL_0 *vol);
230 CONFIG_PAGE_IOC_2_RAID_VOL *vol; in clear_config() local
253 vol = ioc2->RaidVolume; in clear_config()
254 for (i = 0; i < ioc2->NumActiveVolumes; vol++, i++) { in clear_config()
255 if (mpt_lock_volume(vol->VolumeBus, vol->VolumeID) < 0) { in clear_config()
257 mpt_volume_name(vol->VolumeBus, vol->VolumeID)); in clear_config()
276 vol = ioc2->RaidVolume; in clear_config()
277 for (i = 0; i < ioc2->NumActiveVolumes; vol++, i++) { in clear_config()
279 vol->VolumeBus, vol->VolumeID, 0, in clear_config()
285 mpt_volume_name(vol->VolumeBus, vol->VolumeID)); in clear_config()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_rename/
H A Dzfs_rename_006_pos.ksh57 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
83 log_must zfs destroy $vol@$snap
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_rename/
H A Dzfs_rename_006_pos.ksh64 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}-new $vol
85 log_must $ZFS destroy $vol@$snap
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/refreserv/
H A Drefreserv_005_pos.ksh57 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
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/delegate/
H A Ddelegate_common.kshlib269 typeset vol=$3
273 verify_vol_destroy $user $perm $vol
276 verify_vol_snapshot $user $perm $vol
279 verify_vol_rollback $user $perm $vol
282 verify_vol_clone $user $perm $vol
285 verify_vol_rename $user $perm $vol
288 verify_vol_promote $user $perm $vol
291 verify_vol_volsize $user $perm $vol
294 common_perm $user $perm $vol
1303 typeset vol=$3
[all …]
/freebsd/tests/sys/cddl/zfs/tests/refreserv/
H A Drefreserv_005_pos.ksh66 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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/
H A Dsend-c_volume.ksh33 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@snap
H A Dsend-c_incremental.ksh38 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)
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_create/
H A Dzfs_create_003_pos.ksh56 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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_create/
H A Dzfs_create_003_pos.ksh49 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
/freebsd/tests/sys/cddl/zfs/tests/zvol/zvol_misc/
H A Dzvol_misc_009_pos.ksh84 for vol in $VOLS; do
85 log_must $ZFS create -V 100M $rootds/$vol
86 log_must test -c /dev/zvol/$rootds/$vol
98 for vol in $VOLS; do
99 log_must test -c /dev/zvol/${received}/${vol}
100 log_must test -c /dev/zvol/${received}/${vol}@snap
108 for vol in $VOLS; do
109 log_must test -c /dev/zvol/${received}/${vol}
110 log_must test -c /dev/zvol/${received}/${vol}@snap
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zvol/zvol_swap/
H A Dzvol_swap_004_pos.ksh50 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/contrib/smbfs/examples/
H A Dsmbfs.sh.sample20 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 "

123456789