/freebsd-9.3-release/usr.sbin/mptutil/ |
H A D | mpt_drive.c | 89 * - IOC2 : This gives us a list of volumes, and by walking the volumes we 90 * can enumerate all of the drives attached to volumes including 142 CONFIG_PAGE_RAID_VOL_0 **volumes; local 179 * Go ahead and read the info for all the volumes. For this 182 volumes = malloc(sizeof(*volumes) * ioc2->NumActiveVolumes); 186 volumes[i] = mpt_vol_info(fd, vol->VolumeBus, vol->VolumeID, 188 if (volumes[i] == NULL) { 194 count += volumes[ [all...] |
H A D | mpt_show.c | 317 printf("mpt%d Configuration: %d volumes, %d drives\n", 387 CONFIG_PAGE_RAID_VOL_0 **volumes; local 392 warnx("show volumes: extra arguments"); 412 * Go ahead and read the info for all the volumes and figure 415 volumes = malloc(sizeof(*volumes) * ioc2->NumActiveVolumes); 419 volumes[i] = mpt_vol_info(fd, vol->VolumeBus, vol->VolumeID, 421 if (volumes[i] == NULL) 425 volumes[i]->VolumeStatus.State)); 441 if (volumes[ [all...] |
/freebsd-9.3-release/sbin/gvinum/ |
H A D | gvinum.c | 181 int sd_in_plex, status, subdisks, tokens, undeffd, volumes; local 240 drives = volumes = plexes = subdisks = 0; 289 snprintf(buf1, sizeof(buf1), "volume%d", volumes); 291 volumes++; 391 if (!errors && (volumes || plexes || subdisks || drives)) { 392 gctl_ro_param(req, "volumes", sizeof(int), &volumes); 423 int drives, i, flags, volumes, subdisks, plexes; local 426 flags = plexes = subdisks = volumes = 0; 446 gctl_ro_param(req, "volumes", sizeo 1267 int drives, volumes, plexes, subdisks, flags; local [all...] |
/freebsd-9.3-release/usr.sbin/mfiutil/ |
H A D | mfi_config.c | 275 int *volumes; member in struct:config_id_state 416 if (state->volumes[i] == state->target_id) 742 state.volumes = calloc(config->log_drv_count, sizeof(int)); 743 if (state.volumes == NULL) { 750 state.volumes[i] = ld->properties.ld.v.target_id; 753 qsort(state.volumes, config->log_drv_count, sizeof(int), 756 state.volumes = NULL; 830 free(state.volumes); 1121 "mfi%d %s: %d arrays, %d volumes, %d spares\n", mfi_unit,
|
H A D | mfi_show.c | 374 printf("mfi%d Configuration: %d arrays, %d volumes, %d spares\n", 455 warnx("show volumes: extra arguments"); 474 /* List the volumes. */ 527 MFI_COMMAND(show, volumes, show_volumes);
|
/freebsd-9.3-release/sys/geom/vinum/ |
H A D | geom_vinum.c | 186 LIST_INIT(&sc->volumes); 315 int error, i, *drives, *flags, *plexes, *subdisks, *volumes; local 323 volumes = gctl_get_paraml(req, "volumes", sizeof(*volumes)); 327 if (volumes == NULL || plexes == NULL || subdisks == NULL || 376 for (i = 0; i < *volumes; i++) {
|
H A D | geom_vinum_subr.c | 198 LIST_FOREACH(v, &sc->volumes, volume) { 886 LIST_FOREACH(v, &sc->volumes, volume) { 1010 LIST_FOREACH(v, &sc->volumes, volume) { 1063 LIST_FOREACH(v, &sc->volumes, volume) { 1094 LIST_FOREACH_SAFE(v, &sc->volumes, volume, v2) {
|
H A D | geom_vinum_var.h | 230 LIST_HEAD(,gv_volume) volumes; /* All volumes. */ member in struct:gv_softc
|
H A D | geom_vinum_list.c | 145 /* List volumes. */ 216 /* List one or more volumes. */ 227 LIST_FOREACH(v, &sc->volumes, volume) 234 LIST_FOREACH(v, &sc->volumes, volume)
|
H A D | geom_vinum_rm.c | 189 LIST_FOREACH_SAFE(v, &sc->volumes, volume, v2) 340 /* Remove all associated subdisks, plexes, volumes. */
|
H A D | geom_vinum_create.c | 188 LIST_INSERT_HEAD(&sc->volumes, v, volume);
|
/freebsd-9.3-release/sys/geom/part/ |
H A D | g_part_ldm.c | 63 * This allows access to mirrored LDM volumes. Since we do not 69 CTLFLAG_RW | CTLFLAG_TUN, &show_mirrors, 0, "Show mirrored volumes"); 169 * The most interesting for us are volumes, they are represents 180 * striped volumes). 225 uint64_t offset; /* offset for spanned volumes */ 307 LIST_HEAD(, ldm_volume) volumes; 962 /* keep volumes ordered by volume number */ 964 LIST_FOREACH(volume, &db->volumes, entry) { 972 LIST_INSERT_HEAD(&db->volumes, &blk->u.vol, entry); 1098 LIST_FOREACH(volume, &db->volumes, entr [all...] |