Home
last modified time | relevance | path

Searched refs:volno (Results 1 – 21 of 21) sorted by relevance

/dragonfly/sys/dev/raid/vinum/
H A Dvinumconfig.c207 PLEX[plexno].volno = volno; /* note the number of our volume */ in give_plex_to_volume()
878 int volno; in get_empty_volume() local
883 for (volno = 0; volno < vinum_conf.volumes_allocated; volno++) { in get_empty_volume()
910 int volno; in find_volume() local
913 for (volno = 0; volno < vinum_conf.volumes_allocated; volno++) { in find_volume()
915 return volno; in find_volume()
1487 int volno; in config_volume() local
1564 vol->volno = volno; /* needs correct volno to make devs */ in config_volume()
1593 vol->volno = volno; /* also note in volume */ in config_volume()
2061 int volno; in updateconfig() local
[all …]
H A Dvinumstate.c238 if (plex->volno >= 0) /* have a volume */ in set_sd_state()
239 vol = &VOL[plex->volno]; in set_sd_state()
386 if (plex->volno >= 0) /* we have a volume */ in set_plex_state()
387 update_volume_state(plex->volno); /* update its state */ in set_plex_state()
405 update_volume_state(volno); in set_volume_state()
539 && (plex->volno >= 0) in update_plex_state()
542 forceup(VOL[plex->volno].plex[plexno]); in update_plex_state()
573 if (plex->volno >= 0) /* we're part of a volume, */ in update_plex_state()
579 update_volume_state(int volno) in update_volume_state() argument
585 vol = &VOL[volno]; /* point to our volume */ in update_volume_state()
[all …]
H A Dvinumext.h69 int give_plex_to_volume(int volno, int plexno);
79 int my_plex(int volno, int plexno);
88 void free_volume(int volno);
101 void update_volume_config(int volno, int kernelstate);
113 void remove_volume_entry(int volno, int force, int recurse);
186 void update_volume_state(int volno);
221 struct volume *validvol(int volno, struct _ioctl_reply *);
H A Dvinumioctl.c415 validvol(int volno, struct _ioctl_reply *reply) in validvol() argument
417 if ((volno < vinum_conf.volumes_allocated) in validvol()
418 && (VOL[volno].state > volume_uninit)) in validvol()
419 return &VOL[volno]; in validvol()
565 ||(plex->volno >= 0)) { /* or the plex has an owner */ in attachobject()
659 if (plex->volno >= 0) { in detachobject()
660 int volno = plex->volno; in detachobject() local
662 vol = &VOL[volno]; in detachobject()
674 plex->volno = -1; /* anonymous plex */ in detachobject()
712 update_volume_config(volno, 0); in detachobject()
H A Dvinuminterrupt.c149 if (PLEX[rqe->rqg->plexno].volno >= 0) { /* volume I/O, not plex */ in complete_rqe()
150 VOL[PLEX[rqe->rqg->plexno].volno].reads++; in complete_rqe()
151 VOL[PLEX[rqe->rqg->plexno].volno].bytes_read += bp->b_bcount; in complete_rqe()
160 if (PLEX[rqe->rqg->plexno].volno >= 0) { /* volume I/O, not plex */ in complete_rqe()
161 VOL[PLEX[rqe->rqg->plexno].volno].writes++; in complete_rqe()
162 VOL[PLEX[rqe->rqg->plexno].volno].bytes_written += bp->b_bcount; in complete_rqe()
230 VOL[rq->volplex.volno].active--; /* another request finished */ in complete_rqe()
H A Dvinumrequest.c132 int volno; in vinumstrategy() local
152 volno = Volno(dev); in vinumstrategy()
153 vol = &VOL[volno]; in vinumstrategy()
229 rq->volplex.volno = Volno(dev); /* get the volume number */ in vinumstart()
230 vol = &VOL[rq->volplex.volno]; /* and point to it */ in vinumstart()
702 vol = &VOL[rq->volplex.volno]; /* point to volume */ in build_read_request()
775 vol = &VOL[rq->volplex.volno]; /* point to volume */ in build_write_request()
H A Dvinumvar.h566 int volno; /* index of volume */ member
615 int volno; /* volume number */ member
H A Drequest.h152 int volno; /* volume index */ member
H A Dvinumrevive.c79 if (plex->volno >= 0) in revive_block()
80 vol = &VOL[plex->volno]; in revive_block()
H A Dvinumio.c480 if (plex->volno >= 0) /* we have a volume */ in format_config()
484 vinum_conf.volume[plex->volno].name); in format_config()
/dragonfly/usr.sbin/fstyp/
H A Dhammer.c140 int volno = -1; in test_volume() local
151 volno = ondisk->vol_no; in test_volume()
156 return (volno); in test_volume()
165 int i, volno, error = 1; in __fsvtyp_hammer() local
176 volno = -1; in __fsvtyp_hammer()
181 if ((volno = test_volume(volpath)) == -1) in __fsvtyp_hammer()
183 if (volno < 0 || volno >= HAMMER_MAX_VOLUMES) in __fsvtyp_hammer()
185 x[volno]++; in __fsvtyp_hammer()
186 if (volno == HAMMER_ROOT_VOLNO) in __fsvtyp_hammer()
201 if (volno == -1) in __fsvtyp_hammer()
/dragonfly/sbin/vinum/
H A Dv.c529 int volno; in make_devices()
569 for (volno = 0; volno < vinum_conf.volumes_allocated; volno++) in make_devices()
570 make_vol_dev(volno, 0); in make_devices()
594 make_vol_dev(int volno, int recurse)
600 get_volume_info(&vol, volno);
602 voldev = VINUMDEV(volno, 0, 0, VINUM_VOLUME_TYPE); /* create a device number */
646 if (plex.volno >= 0) {
647 get_volume_info(&vol, plex.volno);
648 plexdev = VINUMDEV(plex.volno, plexno, 0, VINUM_PLEX_TYPE);
H A Dcommands.c347 initvol(int volno) in initvol() argument
790 reset_volume_stats(int volno, int recurse) in reset_volume_stats() argument
795 msg.index = volno; in reset_volume_stats()
806 get_volume_info(&vol, volno); in reset_volume_stats()
1031 get_volume_info(&vol, plex.volno); in vinum_attach()
1162 int volno; in vinum_rename_2() local
1198 volno = msg.index; in vinum_rename_2()
1671 vinum_lvi(vol.volno, 1); /* and print info about it */ in vinum_concat()
1820 vinum_lvi(vol.volno, 1); /* and print info about it */ in vinum_stripe()
1968 vinum_lvi(vol.volno, 1); /* and print info about it */ in vinum_raid4()
[all …]
H A Dlist.c299 vinum_lvi(int volno, int recurse) in vinum_lvi() argument
301 get_volume_info(&vol, volno); in vinum_lvi()
402 int volno; in vinum_lv() local
410 for (volno = 0; volno < vinum_conf.volumes_allocated; volno++) in vinum_lv()
411 vinum_lvi(volno, recurse); in vinum_lv()
414 volno = find_object(argv[i], &type); in vinum_lv()
416 vinum_lvi(volno, recurse); in vinum_lv()
446 if (plex.volno >= 0) { in vinum_lpi()
447 get_volume_info(&vol, plex.volno); in vinum_lpi()
1124 if (plex.volno >= 0) { /* we have a volume */ in printconfig()
[all …]
H A Dvext.h72 void initvol(int volno);
85 void reset_volume_stats(int volno, int recurse);
/dragonfly/sbin/restore/
H A Drestore.c592 dumpsymtable(symtabfile, volno); in createleaves()
595 curvol = volno; in createleaves()
648 if (curvol != volno) { in createleaves()
649 dumpsymtable(symtabfile, volno); in createleaves()
651 curvol = volno; in createleaves()
675 curvol = volno; in createfiles()
690 if (curfile.ino > last && curfile.ino < maxino && volno > 1) { in createfiles()
704 while (next > curfile.ino && volno == curvol) in createfiles()
706 if (volno != curvol) { in createfiles()
747 if (volno != curvol) in createfiles()
H A Dtape.c197 volno = 1; in setup()
310 if (volno == 1) in getvol()
353 if (newvol == volno) { in getvol()
381 volno = -1; in getvol()
385 volno = newvol; in getvol()
391 volno = 0; in getvol()
396 volno = 0; in getvol()
403 volno = 0; in getvol()
424 if (volno != 1) in getvol()
445 if (volno == 1) in getvol()
[all …]
H A Drestore.h58 extern long volno; /* current volume being read */
H A Dsymtab.c419 int32_t volno; member
498 hdr.volno = checkpt; in dumpsymtable()
580 getvol(hdr.volno); in initsymtable()
H A Dmain.c56 long volno = 0; variable
H A Dinteractive.c112 volno = 0; in runcmdshell()
169 volno = 0; in runcmdshell()