Home
last modified time | relevance | path

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

1234

/dragonfly/sbin/hammer2/
H A Dondisk.c60 vol->fd = -1; in hammer2_init_volume()
61 vol->id = -1; in hammer2_init_volume()
81 bzero(vol, sizeof(*vol)); in hammer2_install_volume()
82 vol->fd = fd; in hammer2_install_volume()
83 vol->id = id; in hammer2_install_volume()
357 if (vol->id) in hammer2_verify_volumes_1()
425 if (vol->id != (vol-1)->id + 1) in hammer2_verify_volumes_2()
428 if (vol->offset != (vol-1)->offset + (vol-1)->size) in hammer2_verify_volumes_2()
484 vol->id, w, w, vol->path, (intmax_t)vol->offset, in hammer2_print_volumes()
552 (offset < vol->offset + vol->size)) in hammer2_get_volume()
[all …]
H A Dcmd_recover.c185 hammer2_volume_t *vol; in cmd_recover() local
225 fd = vol->fd; in cmd_recover()
333 loff = vol->offset + vol->size; in cmd_recover()
581 if (vol == NULL) in check_filename()
584 vfd = vol->fd; in check_filename()
1232 hammer2_volume_t *vol; in dump_dir_data() local
1261 vol = NULL; in dump_dir_data()
1266 if (vol == NULL) { in dump_dir_data()
1399 if (vol == NULL) in dump_file_data()
1607 if (sdc->vol == vol && sdc->offset == pbase) { in hammer2_cache_read()
[all …]
/dragonfly/usr.sbin/makefs/hammer2/
H A Dhammer2_ondisk.c314 if (vol->id) { in hammer2_verify_volumes_1()
398 if (vol->id <= (vol-1)->id) { in hammer2_verify_volumes_2()
400 vol->id); in hammer2_verify_volumes_2()
403 if (vol->offset != (vol-1)->offset + (vol-1)->size) { in hammer2_verify_volumes_2()
589 vol->dev = NULL; in hammer2_init_vfsvolumes()
590 vol->id = -1; in hammer2_init_vfsvolumes()
667 vol->dev = e; in hammer2_init_vfsvolumes()
669 vol->offset = voldata->volu_loff[vol->id]; in hammer2_init_vfsvolumes()
679 path, zone, vol->id, (intmax_t)vol->offset, in hammer2_init_vfsvolumes()
710 (offset < vol->offset + vol->size)) { in hammer2_get_volume_from_hmp()
[all …]
/dragonfly/sys/vfs/hammer2/
H A Dhammer2_ondisk.c326 if (vol->id) { in hammer2_verify_volumes_1()
410 if (vol->id <= (vol-1)->id) { in hammer2_verify_volumes_2()
412 vol->id); in hammer2_verify_volumes_2()
415 if (vol->offset != (vol-1)->offset + (vol-1)->size) { in hammer2_verify_volumes_2()
591 vol->dev = NULL; in hammer2_init_volumes()
592 vol->id = -1; in hammer2_init_volumes()
669 vol->dev = e; in hammer2_init_volumes()
671 vol->offset = voldata->volu_loff[vol->id]; in hammer2_init_volumes()
681 path, zone, vol->id, (intmax_t)vol->offset, in hammer2_init_volumes()
712 (offset < vol->offset + vol->size)) { in hammer2_get_volume()
[all …]
/dragonfly/usr.sbin/mptutil/
H A Dmpt_config.c221 if (mpt_lock_volume(vol->VolumeBus, vol->VolumeID) < 0) { in clear_config()
223 mpt_volume_name(vol->VolumeBus, vol->VolumeID)); in clear_config()
241 vol->VolumeBus, vol->VolumeID, 0, in clear_config()
247 mpt_volume_name(vol->VolumeBus, vol->VolumeID)); in clear_config()
493 if (vol == NULL) in build_volume()
579 return (vol); in build_volume()
716 mpt_rescan_bus(vol->VolumeBus, vol->VolumeID); in create_volume()
719 free(vol); in create_volume()
1110 vol->Header.PageType, vol->Header.PageNumber, in dump_config()
1111 vol->Header.PageLength, vol->Header.PageLength * 4, in dump_config()
[all …]
H A Dmpt_show.c279 CONFIG_PAGE_IOC_2_RAID_VOL *vol; in show_config() local
319 vol = ioc2->RaidVolume; in show_config()
322 vol->VolumeID)); in show_config()
323 vinfo = mpt_vol_info(fd, vol->VolumeBus, vol->VolumeID, NULL); in show_config()
328 vnames = mpt_vol_names(fd, vol->VolumeBus, vol->VolumeID, NULL); in show_config()
385 CONFIG_PAGE_IOC_2_RAID_VOL *vol; in show_volumes() local
416 vol = ioc2->RaidVolume; in show_volumes()
418 volumes[i] = mpt_vol_info(fd, vol->VolumeBus, vol->VolumeID, in show_volumes()
437 vol = ioc2->RaidVolume; in show_volumes()
439 printf("%6s ", mpt_volume_name(vol->VolumeBus, vol->VolumeID)); in show_volumes()
[all …]
H A Dmpt_cmd.c297 CONFIG_PAGE_IOC_2_RAID_VOL *vol; in mpt_lookup_volume() local
330 vol = ioc2->RaidVolume; in mpt_lookup_volume()
331 for (i = 0; i < ioc2->NumActiveVolumes; vol++, i++) { in mpt_lookup_volume()
332 if (mpt_query_disk(vol->VolumeBus, vol->VolumeID, &info) != 0) in mpt_lookup_volume()
335 *VolumeBus = vol->VolumeBus; in mpt_lookup_volume()
336 *VolumeID = vol->VolumeID; in mpt_lookup_volume()
H A Dmpt_drive.c140 CONFIG_PAGE_IOC_2_RAID_VOL *vol; in mpt_pd_list() local
183 vol = ioc2->RaidVolume; in mpt_pd_list()
184 for (i = 0; i < ioc2->NumActiveVolumes; vol++, i++) { in mpt_pd_list()
185 volumes[i] = mpt_vol_info(fd, vol->VolumeBus, vol->VolumeID, in mpt_pd_list()
/dragonfly/sys/dev/raid/vinum/
H A Dvinumconfig.c201 vol->name); in give_plex_to_volume()
205 vol->plex[vol->plexes] = plexno; /* this one */ in give_plex_to_volume()
211 vol->size = u64max(vol->size, PLEX[vol->plex[i]].length); in give_plex_to_volume()
770 if (vol->vol_dev && vol->state == volume_unallocated) { in made_vol()
925 ksnprintf(vol->name, sizeof(vol->name), "%s", name); in find_volume()
1515 vol->name); in config_volume()
1519 vol->name); in config_volume()
1520 vol->plex[vol->plexes] = plexno; in config_volume()
1588 vol->name, in config_volume()
1609 vol->size = u64max(vol->size, PLEX[vol->plex[i]].length); in config_volume()
[all …]
H A Dvinumioctl.c74 struct volume *vol; in vinumioctl() local
340 vol = &VOL[objno]; in vinumioctl()
512 struct volume *vol; in attachobject() local
563 if (vol) { in attachobject()
591 struct volume *vol; in detachobject() local
662 vol = &VOL[volno]; in detachobject()
681 &vol->plex[plexno], in detachobject()
683 vol->plexes--; in detachobject()
685 if (!bcmp(vol->name, plex->name, strlen(vol->name) + 1)) in detachobject()
729 struct volume *vol; in renameobject() local
[all …]
H A Dvinumstate.c108 struct volume *vol; in set_sd_state() local
241 vol = NULL; in set_sd_state()
250 if (((vol == NULL) in set_sd_state()
251 || (vol->plexes == 1)) in set_sd_state()
412 vol->name, in set_volume_state()
413 volume_state(vol->state)); in set_volume_state()
586 oldstate = vol->state; in update_volume_state()
591 vol->state = volume_up; in update_volume_state()
596 vol->state = volume_down; in update_volume_state()
599 log(LOG_INFO, "vinum: %s is %s\n", vol->name, volume_state(vol->state)); in update_volume_state()
[all …]
H A Dvinum.c93 struct volume *vol; in vinumattach() local
250 if (vol->vol_dev) { in free_vinum()
251 destroy_dev(vol->vol_dev); in free_vinum()
252 vol->vol_dev = NULL; in free_vinum()
377 struct volume *vol; in vinumopen() local
390 vol = &VOL[index]; in vinumopen()
392 switch (vol->state) { in vinumopen()
484 struct volume *vol; in vinumclose() local
494 vol = &VOL[index]; in vinumclose()
496 switch (vol->state) { in vinumclose()
[all …]
H A Dvinumrequest.c131 struct volume *vol = NULL; in vinumstrategy() local
153 vol = &VOL[volno]; in vinumstrategy()
160 nbio = vinum_bounds_check(bio, vol); in vinumstrategy()
195 struct volume *vol; in vinumstart() local
231 vol->active++; /* one more active request */ in vinumstart()
233 vol = NULL; /* no volume */ in vinumstart()
249 if (vol != NULL) { in vinumstart()
252 plexno = vol->last_plex_read; in vinumstart()
253 vol->last_plex_read++; in vinumstart()
254 if (vol->last_plex_read >= vol->plexes) /* got the the end? */ in vinumstart()
[all …]
H A Dvinumio.c434 struct volume *vol; in format_config() local
436 vol = &vinum_conf.volume[i]; in format_config()
437 if ((vol->state > volume_uninit) in format_config()
438 && (vol->name[0] != '\0')) { /* paranoia */ in format_config()
442 vol->name, in format_config()
443 volume_state(vol->state)); in format_config()
446 if (vol->preferred_plex >= 0) /* preferences, */ in format_config()
450 vinum_conf.plex[vol->preferred_plex].name); in format_config()
/dragonfly/sbin/vinum/
H A Dlist.c306 vol.name, in vinum_lvi()
317 get_plex_info(&plex, vol.plex[vol.preferred_plex]); in vinum_lvi()
322 vol.name, in vinum_lvi()
324 vol.plexes, in vinum_lvi()
333 if (vol.reads != 0) in vinum_lvi()
335 (long long) (vol.bytes_read / vol.reads)); in vinum_lvi()
342 (long long) (vol.bytes_written / vol.writes)); in vinum_lvi()
346 vol.name, in vinum_lvi()
351 (long long) (vol.bytes_read / vol.reads)); in vinum_lvi()
360 (long long) (vol.bytes_written / vol.writes)); in vinum_lvi()
[all …]
H A Dv.c92 struct volume vol; variable
600 get_volume_info(&vol, volno);
605 sprintf(filename, VINUM_DIR "/%s", vol.name);
610 sprintf(filename, VINUM_DIR "/vol/%s", vol.name);
614 if (vol.plexes > 0) {
616 sprintf(filename, VINUM_DIR "/vol/%s.plex", vol.name);
621 for (plexno = 0; plexno < vol.plexes; plexno++)
647 get_volume_info(&vol, plex.volno);
651 sprintf(filename, VINUM_DIR "/vol/%s.plex/%s", vol.name, plex.name);
740 get_volume_info(&vol, object); in find_object()
[all …]
H A Dcommands.c649 fprintf(stderr, "%s is already up\n", vol.name); in vinum_start()
803 struct volume vol; in reset_volume_stats() local
806 get_volume_info(&vol, volno); in reset_volume_stats()
807 for (plexno = 0; plexno < vol.plexes; plexno++) in reset_volume_stats()
808 reset_plex_stats(vol.plex[plexno], recurse); in reset_volume_stats()
1031 get_volume_info(&vol, plex.volno); in vinum_attach()
1032 for (plexno = 0; plexno < vol.plexes; plexno++) { in vinum_attach()
1036 sprintf(newname, "%s.p%d", vol.name, plexno); in vinum_attach()
2308 struct volume vol; in vinum_readpol() local
2320 get_volume_info(&vol, object); in vinum_readpol()
[all …]
/dragonfly/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 "
/dragonfly/sbin/newfs_hammer2/
H A Dmkfs_hammer2.c489 n = pwrite(vol->fd, buf, HAMMER2_PBUFSIZE, in format_hammer2_inode()
533 vol->size - HAMMER2_PBUFSIZE); in format_hammer2()
543 if (vol->id == HAMMER2_ROOT_VOLUME) { in format_hammer2()
565 if (vol->id == HAMMER2_ROOT_VOLUME) { in format_hammer2()
571 voldata->volu_size = vol->size; in format_hammer2()
576 voldata->volu_id = vol->id; in format_hammer2()
594 if (vol->id == HAMMER2_ROOT_VOLUME) { in format_hammer2()
631 fsync(vol->fd); in format_hammer2()
715 hammer2_volume_t *vol = &fso.volumes[i]; in hammer2_mkfs() local
752 hammer2_volume_t *vol = &fso.volumes[i]; in hammer2_mkfs() local
[all …]
/dragonfly/sbin/hammer/
H A Dmisc.c195 hammer_extend_layer1_bits(int vol, int newsiz, int oldsiz) in hammer_extend_layer1_bits() argument
202 p = l1_bits[vol]; in hammer_extend_layer1_bits()
211 l1_bits[vol] = p; in hammer_extend_layer1_bits()
285 int zone, vol, i, j, new_block; in hammer_add_zone_stat() local
290 vol = HAMMER_VOL_DECODE(offset); in hammer_add_zone_stat()
296 if (i > l1_max[vol]) { in hammer_add_zone_stat()
298 hammer_extend_layer1_bits(vol, i + 1, l1_max[vol] + 1); in hammer_add_zone_stat()
299 l1_max[vol] = i; in hammer_add_zone_stat()
302 p = l1_bits[vol] + i * HAMMER_LAYER1_UINT64; in hammer_add_zone_stat()
/dragonfly/contrib/lvm2/dist/lib/locking/
H A Dlocking.h30 int remote_lock_held(const char *vol);
46 int lock_vol(struct cmd_context *cmd, const char *vol, uint32_t flags);
128 #define unlock_vg(cmd, vol) lock_vol(cmd, vol, LCK_VG_UNLOCK) argument
129 #define unlock_and_release_vg(cmd, vg, vol) \ argument
131 unlock_vg(cmd, vol); \
H A Dlocking.c386 int lock_vol(struct cmd_context *cmd, const char *vol, uint32_t flags) in lock_vol() argument
403 log_debug("Internal error: %s: LCK_NONE lock requested", vol); in lock_vol()
417 if (vol[0] != '#' && in lock_vol()
420 !lvmcache_verify_lock_order(vol)) in lock_vol()
425 if (!check_lvm1_vg_inactive(cmd, vol)) in lock_vol()
438 strncpy(resource, vol, sizeof(resource)); in lock_vol()
524 int remote_lock_held(const char *vol) in remote_lock_held() argument
537 if (!_locking.query_resource(vol, &mode)) { in remote_lock_held()
/dragonfly/contrib/lvm2/dist/include/
H A Dlocking.h30 int remote_lock_held(const char *vol);
46 int lock_vol(struct cmd_context *cmd, const char *vol, uint32_t flags);
128 #define unlock_vg(cmd, vol) lock_vol(cmd, vol, LCK_VG_UNLOCK) argument
129 #define unlock_and_release_vg(cmd, vg, vol) \ argument
131 unlock_vg(cmd, vol); \
/dragonfly/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; in feed_volume_feed() local
251 vol = c->volume[SND_VOL_C_VAL(info->volume_class)]; in feed_volume_feed()
260 if (vol[matrix[--i]] != SND_VOL_FLAT) { in feed_volume_feed()
282 info->apply(vol, matrix, info->channels, dst, j); in feed_volume_feed()
/dragonfly/sys/dev/disk/mpt/
H A Dmpt_raid.c119 static const char *mpt_vol_type(struct mpt_raid_volume *vol);
120 static const char *mpt_vol_state(struct mpt_raid_volume *vol);
138 mpt_vol_type(struct mpt_raid_volume *vol) in mpt_vol_type() argument
140 switch (vol->config_page->VolumeType) { in mpt_vol_type()
153 mpt_vol_state(struct mpt_raid_volume *vol) in mpt_vol_state() argument
155 switch (vol->config_page->VolumeStatus.State) { in mpt_vol_state()
193 mpt_vol_prt(struct mpt_softc *mpt, struct mpt_raid_volume *vol, in mpt_vol_prt() argument
200 vol->config_page->VolumeBus, vol->config_page->VolumeID); in mpt_vol_prt()
589 mpt_issue_raid_req(struct mpt_softc *mpt, struct mpt_raid_volume *vol, in mpt_issue_raid_req() argument
602 rap->VolumeID = vol->config_page->VolumeID; in mpt_issue_raid_req()
[all …]

1234