Searched refs:vol (Results 1 - 25 of 54) sorted by relevance

123

/freebsd-11-stable/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 "
/freebsd-11-stable/sys/geom/raid/
H A Dtr_concat.c97 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) {
128 if (vol->v_raid_level == G_RAID_VOLUME_RL_CONCAT &&
130 !G_RAID_VOLUME_S_ALIVE(vol->v_state)) {
132 for (i = 0; i < vol
156 struct g_raid_volume *vol; local
184 struct g_raid_volume *vol; local
197 struct g_raid_volume *vol; local
210 struct g_raid_volume *vol; local
290 struct g_raid_volume *vol; local
[all...]
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, 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
885 struct g_raid_volume *vol; local
1147 struct g_raid_volume *vol; local
1211 struct g_raid_volume *vol; local
[all...]
H A Dtr_raid0.c95 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 Dtr_raid5.c101 g_raid_tr_taste_raid5(struct g_raid_tr_object *tr, struct g_raid_volume *vol) argument
130 g_raid_tr_update_state_raid5(struct g_raid_volume *vol, argument
138 sc = vol->v_softc;
139 trs = (struct g_raid_tr_raid5_object *)vol->v_tr;
146 na = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_ACTIVE);
147 ns = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_STALE) +
148 g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_RESYNC);
149 nu = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_UNINITIALIZED);
150 if (na == vol->v_disks_count)
152 else if (na + ns == vol
185 struct g_raid_volume *vol; local
199 struct g_raid_volume *vol; local
212 struct g_raid_volume *vol; local
344 struct g_raid_volume *vol; local
[all...]
H A Dg_raid.c121 static void g_raid_destroy_provider(struct g_raid_volume *vol);
124 static int g_raid_update_volume(struct g_raid_volume *vol, u_int event);
586 g_raid_change_volume_state(struct g_raid_volume *vol, int state) argument
589 G_RAID_DEBUG1(0, vol->v_softc,
591 vol->v_name,
592 g_raid_volume_state2str(vol->v_state),
594 vol->v_state = state;
722 g_raid_nsubdisks(struct g_raid_volume *vol, int state) argument
728 sc = vol->v_softc;
732 for (i = 0; i < vol
747 g_raid_get_subdisk(struct g_raid_volume *vol, int state) argument
811 struct g_raid_volume *vol; local
909 g_raid_clean(struct g_raid_volume *vol, int acw) argument
937 g_raid_dirty(struct g_raid_volume *vol) argument
957 struct g_raid_volume *vol; local
1008 struct g_raid_volume *vol; local
1037 struct g_raid_volume *vol; local
1054 struct g_raid_volume *vol; local
1076 struct g_raid_volume *vol; local
1169 g_raid_is_in_locked_range(struct g_raid_volume *vol, const struct bio *bp) argument
1186 struct g_raid_volume *vol; local
1227 g_raid_finish_with_locked_ranges(struct g_raid_volume *vol, struct bio *bp) argument
1263 struct g_raid_volume *vol; local
1284 g_raid_lock_range(struct g_raid_volume *vol, off_t off, off_t len, struct bio *ignore, void *argp) argument
1321 g_raid_unlock_range(struct g_raid_volume *vol, off_t off, off_t len) argument
1449 struct g_raid_volume *vol; local
1501 struct g_raid_volume *vol; local
1620 g_raid_launch_provider(struct g_raid_volume *vol) argument
1687 g_raid_destroy_provider(struct g_raid_volume *vol) argument
1719 g_raid_update_volume(struct g_raid_volume *vol, u_int event) argument
1767 struct g_raid_volume *vol; local
1824 struct g_raid_volume *vol; local
1919 struct g_raid_volume *vol, *vol1; local
1985 g_raid_start_volume(struct g_raid_volume *vol) argument
2027 struct g_raid_volume *vol, *tmpv; local
2076 g_raid_destroy_volume(struct g_raid_volume *vol) argument
2303 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
2337 struct g_raid_volume *vol; local
2462 struct g_raid_volume *vol; local
[all...]
H A Dtr_raid1.c134 g_raid_tr_taste_raid1(struct g_raid_tr_object *tr, struct g_raid_volume *vol) argument
148 g_raid_tr_update_state_raid1(struct g_raid_volume *vol, argument
157 sc = vol->v_softc;
158 trs = (struct g_raid_tr_raid1_object *)vol->v_tr;
166 na = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_ACTIVE);
172 bestsd = &vol->v_subdisks[0];
173 for (i = 1; i < vol->v_disks_count; i++) {
174 tsd = &vol->v_subdisks[i];
187 vol->v_name, bestsd->sd_pos,
192 vol, bests
272 struct g_raid_volume *vol; local
309 struct g_raid_volume *vol; local
341 struct g_raid_volume *vol; local
406 struct g_raid_volume *vol; local
458 struct g_raid_volume *vol; local
471 struct g_raid_volume *vol; local
487 g_raid_tr_raid1_select_read_disk(struct g_raid_volume *vol, struct bio *bp, u_int mask) argument
545 struct g_raid_volume *vol; local
607 struct g_raid_volume *vol; local
657 struct g_raid_volume *vol; local
903 struct g_raid_volume *vol; local
[all...]
H A Dmd_promise.c298 promise_meta_translate_disk(struct g_raid_volume *vol, int md_disk_pos) argument
302 if (md_disk_pos >= 0 && vol->v_raid_level == G_RAID_VOLUME_RL_RAID1E) {
303 width = vol->v_disks_count / 2;
533 struct g_raid_volume *vol; local
536 TAILQ_FOREACH(vol, &sc->sc_volumes, v_next) {
537 pv = vol->v_md_data;
541 return (vol);
547 struct g_raid_volume *vol, *tvol; local
552 TAILQ_FOREACH_SAFE(vol, &sc->sc_volumes, v_next, tvol) {
553 pv = vol
572 struct g_raid_volume *vol; local
658 g_raid_md_promise_start_disk(struct g_raid_disk *disk, int sdn, struct g_raid_volume *vol) argument
825 struct g_raid_volume *vol; local
887 g_raid_md_promise_start(struct g_raid_volume *vol) argument
961 struct g_raid_volume *vol; local
983 struct g_raid_volume *vol; local
1236 g_raid_md_volume_event_promise(struct g_raid_md_object *md, struct g_raid_volume *vol, u_int event) argument
1256 struct g_raid_volume *vol, *vol1; local
1695 struct g_raid_volume *vol; local
1975 g_raid_md_free_volume_promise(struct g_raid_md_object *md, struct g_raid_volume *vol) argument
[all...]
H A Dmd_intel.c353 intel_get_vol_curr_migr_unit(struct intel_raid_vol *vol) argument
355 off_t curr_migr_unit = (off_t)vol->curr_migr_unit_hi << 32;
357 curr_migr_unit += vol->curr_migr_unit;
362 intel_set_vol_curr_migr_unit(struct intel_raid_vol *vol, off_t curr_migr_unit) argument
365 vol->curr_migr_unit = curr_migr_unit & 0xffffffff;
366 vol->curr_migr_unit_hi = curr_migr_unit >> 32;
1255 struct g_raid_volume *vol; local
1268 vol = g_raid_create_volume(sc, mvol->name, mvol->tid - 1);
1275 vol->v_md_data = pv;
1276 vol
1688 struct g_raid_volume *vol, *vol1; local
2348 struct g_raid_volume *vol; local
2682 g_raid_md_free_volume_intel(struct g_raid_md_object *md, struct g_raid_volume *vol) argument
[all...]
H A Dmd_ddf.c1382 struct g_raid_volume *vol; local
1385 TAILQ_FOREACH(vol, &sc->sc_volumes, v_next) {
1386 pv = vol->v_md_data;
1390 return (vol);
1417 struct g_raid_volume *vol, *tvol; local
1422 TAILQ_FOREACH_SAFE(vol, &sc->sc_volumes, v_next, tvol) {
1423 pv = vol->v_md_data;
1424 if (vol->v_stopping)
1426 for (i = 0; i < vol->v_disks_count; i++) {
1427 if (vol
1602 g_raid_md_ddf_start_disk(struct g_raid_disk *disk, struct g_raid_volume *vol) argument
1785 struct g_raid_volume *vol; local
1847 g_raid_md_ddf_start(struct g_raid_volume *vol) argument
1930 struct g_raid_volume *vol; local
1952 struct g_raid_volume *vol; local
2223 g_raid_md_volume_event_ddf(struct g_raid_md_object *md, struct g_raid_volume *vol, u_int event) argument
2243 struct g_raid_volume *vol, *vol1; local
2723 struct g_raid_volume *vol; local
3048 g_raid_md_free_volume_ddf(struct g_raid_md_object *md, struct g_raid_volume *vol) argument
[all...]
H A Dmd_jmicron.c648 struct g_raid_volume *vol; local
661 vol = g_raid_create_volume(sc, buf, -1);
664 vol->v_raid_level_qualifier = G_RAID_VOLUME_RLQ_NONE;
666 vol->v_raid_level = G_RAID_VOLUME_RL_RAID0;
667 vol->v_mediasize = size * mdi->mdio_total_disks;
669 vol->v_raid_level = G_RAID_VOLUME_RL_RAID1;
670 vol->v_mediasize = size;
672 vol->v_raid_level = G_RAID_VOLUME_RL_RAID1E;
673 vol->v_mediasize = size * mdi->mdio_total_disks / 2;
676 vol
1023 struct g_raid_volume *vol; local
1391 struct g_raid_volume *vol; local
[all...]
H A Dmd_nvidia.c655 struct g_raid_volume *vol; local
668 vol = g_raid_create_volume(sc, buf, -1);
669 vol->v_mediasize = (off_t)meta->total_sectors * 512;
670 vol->v_raid_level_qualifier = G_RAID_VOLUME_RLQ_NONE;
672 vol->v_raid_level = G_RAID_VOLUME_RL_RAID0;
673 size = vol->v_mediasize / mdi->mdio_total_disks;
675 vol->v_raid_level = G_RAID_VOLUME_RL_RAID1;
676 size = vol->v_mediasize;
678 vol->v_raid_level = G_RAID_VOLUME_RL_RAID1E;
679 size = vol
1027 struct g_raid_volume *vol; local
1395 struct g_raid_volume *vol; local
[all...]
H A Dmd_sii.c711 struct g_raid_volume *vol; local
725 vol = g_raid_create_volume(sc, buf, -1);
726 vol->v_mediasize = (off_t)meta->total_sectors * 512;
727 vol->v_raid_level_qualifier = G_RAID_VOLUME_RLQ_NONE;
729 vol->v_raid_level = G_RAID_VOLUME_RL_RAID0;
730 size = vol->v_mediasize / mdi->mdio_total_disks;
732 vol->v_raid_level = G_RAID_VOLUME_RL_RAID1;
733 size = vol->v_mediasize;
735 vol->v_raid_level = G_RAID_VOLUME_RL_RAID1E;
736 size = vol
1111 struct g_raid_volume *vol; local
1479 struct g_raid_volume *vol; local
[all...]
H A Dg_raid.h423 int g_raid_start_volume(struct g_raid_volume *vol);
426 int g_raid_destroy_volume(struct g_raid_volume *vol);
441 void g_raid_change_volume_state(struct g_raid_volume *vol, int state);
443 void g_raid_write_metadata(struct g_raid_softc *sc, struct g_raid_volume *vol,
453 u_int g_raid_nsubdisks(struct g_raid_volume *vol, int state);
455 struct g_raid_subdisk * g_raid_get_subdisk(struct g_raid_volume *vol,
462 int g_raid_lock_range(struct g_raid_volume *vol, off_t off, off_t len,
464 int g_raid_unlock_range(struct g_raid_volume *vol, off_t off, off_t len);
H A Dg_raid_ctl.c55 struct g_raid_volume *vol; local
91 TAILQ_FOREACH(vol, &sc->sc_volumes, v_next) {
92 if (strcmp(vol->v_name, name) == 0)
/freebsd-11-stable/usr.sbin/mptutil/
H A Dmpt_config.c50 static void dump_config(CONFIG_PAGE_RAID_VOL_0 *vol);
231 CONFIG_PAGE_IOC_2_RAID_VOL *vol; local
254 vol = ioc2->RaidVolume;
255 for (i = 0; i < ioc2->NumActiveVolumes; vol++, i++) {
256 if (mpt_lock_volume(vol->VolumeBus, vol->VolumeID) < 0) {
258 mpt_volume_name(vol->VolumeBus, vol->VolumeID));
277 vol = ioc2->RaidVolume;
278 for (i = 0; i < ioc2->NumActiveVolumes; vol
479 CONFIG_PAGE_IOC_2_RAID_VOL *vol; local
509 CONFIG_PAGE_RAID_VOL_0 *vol; local
624 CONFIG_PAGE_RAID_VOL_0 *vol; local
841 CONFIG_PAGE_IOC_2_RAID_VOL *vol; local
1189 dump_config(CONFIG_PAGE_RAID_VOL_0 *vol) argument
1220 CONFIG_PAGE_RAID_VOL_0 *vol; local
[all...]
H A Dmpt_show.c283 CONFIG_PAGE_IOC_2_RAID_VOL *vol; local
328 vol = ioc2->RaidVolume;
329 for (i = 0; i < ioc2->NumActiveVolumes; vol++, i++) {
330 printf(" volume %s ", mpt_volume_name(vol->VolumeBus,
331 vol->VolumeID));
332 vinfo = mpt_vol_info(fd, vol->VolumeBus, vol->VolumeID, NULL);
334 printf("%s UNKNOWN", mpt_raid_level(vol->VolumeType));
337 vnames = mpt_vol_names(fd, vol->VolumeBus, vol
394 CONFIG_PAGE_IOC_2_RAID_VOL *vol; local
[all...]
H A Dmpt_cmd.c298 CONFIG_PAGE_IOC_2_RAID_VOL *vol; local
331 vol = ioc2->RaidVolume;
332 for (i = 0; i < ioc2->NumActiveVolumes; vol++, i++) {
333 if (mpt_query_disk(vol->VolumeBus, vol->VolumeID, &info) != 0)
336 *VolumeBus = vol->VolumeBus;
337 *VolumeID = vol->VolumeID;
H A Dmpt_drive.c141 CONFIG_PAGE_IOC_2_RAID_VOL *vol; local
185 vol = ioc2->RaidVolume;
186 for (i = 0; i < ioc2->NumActiveVolumes; vol++, i++) {
187 volumes[i] = mpt_vol_info(fd, vol->VolumeBus, vol->VolumeID,
/freebsd-11-stable/sys/geom/vinum/
H A Dgeom_vinum_create.c316 char *drive, buf[30], *vol; local
321 vol = gctl_get_param(req, "name", NULL);
322 if (vol == NULL) {
336 strlcpy(v->name, vol, sizeof(v->name));
381 char *drive, buf[30], *vol; local
388 vol = gctl_get_param(req, "name", NULL);
389 if (vol == NULL) {
415 strlcpy(v->name, vol, sizeof(v->name));
474 char *vol, *drive, buf[30]; local
479 vol
551 char *drive, buf[30], *vol; local
[all...]
H A Dgeom_vinum_share.c577 } else if (!strcmp(token[j], "vol") ||
/freebsd-11-stable/sys/dev/sound/pcm/
H A Dfeeder_volume.c53 feed_volume_##SIGN##BIT##ENDIAN(int *vol, int *matrix, \
67 v = FEEDVOLUME_CALC##BIT(x, vol[matrix[i]]); \
240 int i, *vol, *matrix; local
251 vol = c->volume[SND_VOL_C_VAL(info->volume_class)];
260 if (vol[matrix[--i]] != SND_VOL_FLAT) {
282 info->apply(vol, matrix, info->channels, dst, j);
/freebsd-11-stable/sys/geom/part/
H A Dg_part_ldm.c273 struct ldm_volume vol; member in union:ldm_vblk::__anon7987
942 blk->u.vol.number = p[offset + 16];
948 offset = ldm_vnum_get(p, offset + 16, &blk->u.vol.size, size);
957 blk->u.vol.part_type = p[offset + 4];
961 if (volume->number > blk->u.vol.number)
966 LIST_INSERT_AFTER(last, &blk->u.vol, entry);
968 LIST_INSERT_HEAD(&db->volumes, &blk->u.vol, entry);
1345 struct ldm_volume *vol; local
1410 LIST_FOREACH(vol, &db.volumes, entry) {
1411 LIST_FOREACH(comp, &vol
[all...]
/freebsd-11-stable/sys/geom/
H A Dgeom_vol_ffs.c54 char * vol; member in struct:g_vol_ffs_softc
137 pp->mediasize, pp->sectorsize, "vol/%s",
/freebsd-11-stable/contrib/mdocml/
H A Dman_validate.c283 free(man->meta.vol);
288 man->meta.title = man->meta.vol = man->meta.date =
359 man->meta.vol = mandoc_strdup(n->string);
362 man->meta.vol = mandoc_strdup(p);

Completed in 122 milliseconds

123