/freebsd-current/sys/geom/vinum/ |
H A D | geom_vinum_create.c | 110 * insert this drive not on the head of the drives list, as 115 d2 = LIST_FIRST(&sc->drives); 117 LIST_INSERT_HEAD(&sc->drives, d, drive); 127 LIST_FOREACH(d2, &sc->drives, drive) { 173 LIST_INSERT_HEAD(&sc->drives, d, drive); 305 * Create a concatenated volume from specified drives or drivegroups. 316 int *drives, dcount; local 326 drives = gctl_get_paraml(req, "drives", sizeof(*drives)); 381 int *drives, *flags, dcount, pcount, scount; local 472 int *drives, *flags, dcount; local 551 int *drives, *flags, dcount; local [all...] |
H A D | geom_vinum_rm.c | 132 /* We don't allow to remove open drives. */ 170 LIST_FOREACH_SAFE(d, &sc->drives, drive, d2) { 185 LIST_FOREACH_SAFE(d, &sc->drives, drive, d2) 377 d2 = LIST_FIRST(&sc->drives); 379 LIST_INSERT_HEAD(&sc->drives, d, drive);
|
H A D | geom_vinum_events.c | 267 d2 = LIST_FIRST(&sc->drives); 269 LIST_INSERT_HEAD(&sc->drives, d, drive);
|
H A D | geom_vinum.c | 141 LIST_FOREACH(d, &sc->drives, drive) { 146 LIST_FOREACH(d2, &sc->drives, drive) { 181 LIST_INIT(&sc->drives); 313 int i, *drives, *flags, *plexes, *subdisks, *volumes; local 324 drives = gctl_get_paraml(req, "drives", sizeof(*drives)); 326 drives == NULL) { 337 for (i = 0; i < *drives; i++) {
|
H A D | geom_vinum_subr.c | 192 LIST_FOREACH(d, &sc->drives, drive) { 576 /* Shortcut for "referenced" drives. */ 925 LIST_FOREACH(d, &sc->drives, drive) { 939 LIST_FOREACH(d, &sc->drives, drive) { 973 * Compare the modification dates of the drives. 982 KASSERT(!LIST_EMPTY(&sc->drives), 986 LIST_FOREACH(d2, &sc->drives, drive) { 1022 LIST_FOREACH(d, &sc->drives, drive) { 1107 LIST_FOREACH_SAFE(d, &sc->drives, drive, d2) {
|
H A D | geom_vinum_var.h | 49 * Vinum drives start with this structure: 229 LIST_HEAD(,gv_drive) drives; /* All drives. */ member in struct:gv_softc
|
H A D | geom_vinum_list.c | 123 /* List drives. */ 436 /* List one or more drives. */ 447 LIST_FOREACH(d, &sc->drives, drive) 454 LIST_FOREACH(d, &sc->drives, drive)
|
H A D | geom_vinum_drive.c | 281 LIST_FOREACH(d, &sc->drives, drive) { 284 * drives that were just created aren't officially up yet, so
|
/freebsd-current/usr.sbin/mptutil/ |
H A D | mpt_drive.c | 89 * can enumerate all of the drives attached to volumes including 90 * online drives and failed drives. 91 * - IOC3 : This gives us a list of all online physical drives including 92 * drives that are not part of a volume nor a spare drive. It 93 * does not include any failed drives. 94 * - IOC5 : This gives us a list of all spare drives including failed 105 * inserts new drives. 117 if (list->drives[i]->PhysDiskNum == PhysDiskNum) 119 if (list->drives[ [all...] |
H A D | mpt_config.c | 356 struct drive_info *drives; member in struct:volume_info 359 /* Parse a comma-separated list of drives for a volume. */ 381 /* Validate the number of drives for this volume. */ 385 warnx("RAID0 requires at least 2 drives in each " 392 warnx("RAID1 requires exactly 2 drives in each " 399 warnx("RAID1E requires at least 3 drives in each " 407 info->drives = calloc(count, sizeof(struct drive_info)); 409 for (dinfo = info->drives; (cp = strsep(&volume_str, ",")) != NULL; 448 for (i = 0, dinfo = info->drives; i < info->drive_count; 485 /* Search drives firs [all...] |
H A D | mpt_show.c | 324 printf("mpt%d Configuration: %d volumes, %d drives\n", 487 warnx("show drives: extra arguments"); 518 len = strlen(mpt_pdstate(list->drives[i])); 523 /* List the drives. */ 526 printf("%4u ", list->drives[i]->PhysDiskNum); 527 print_pd(list->drives[i], state_len, 1); 542 MPT_COMMAND(show, drives, show_drives); 553 warnx("show drives: extra arguments");
|
H A D | mptutil.h | 61 CONFIG_PAGE_RAID_PHYS_DISK_0 *drives[0]; member in struct:mpt_drive_list
|
/freebsd-current/usr.sbin/mfiutil/ |
H A D | mfi_config.c | 283 struct mfi_pd_info *drives; member in struct:array_info 287 /* Parse a comma-separated list of drives for an array. */ 309 /* Validate the number of drives for this array. */ 311 warnx("Too many drives for a single array: max is %d", 320 "drives in each array"); 327 warnx("RAID5 and RAID50 require at least 3 drives in " 335 warnx("RAID6 and RAID60 require at least 4 drives in " 343 info->drives = calloc(count, sizeof(struct mfi_pd_info)); 344 if (info->drives == NULL) { 349 for (pinfo = info->drives; (c [all...] |
H A D | mfi_show.c | 381 printf(" array %u of %u drives:\n", ar->array_ref, 538 warnx("show drives: extra arguments"); 556 /* Walk the list of drives to determine width of state column. */ 576 /* List the drives. */ 607 MFI_COMMAND(show, drives, show_drives);
|
/freebsd-current/sbin/gvinum/ |
H A D | gvinum.c | 181 int drives, errors, fd, flags, i, line, plexes, plex_in_volume; local 192 /* Force flag used to ignore already created drives. */ 242 drives = volumes = plexes = subdisks = 0; 377 snprintf(buf1, sizeof(buf1), "drive%d", drives); 379 drives++; 393 if (!errors && (volumes || plexes || subdisks || drives)) { 397 gctl_ro_param(req, "drives", sizeof(int), &drives); 411 warnx("usage:\tconcat [-fv] [-n name] drives\n"); 425 int drives, local 492 int drives, flags, i; local 1276 int drives, volumes, plexes, subdisks, flags; local [all...] |
/freebsd-current/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_mmap.c | 174 char *map, *dk, *drives, dev[PATH_MAX]; local 181 drives = malloc(len); 182 ATF_REQUIRE(drives != NULL); 183 ATF_REQUIRE(sysctl(mib, miblen, drives, &len, NULL, 0) == 0); 184 for (dk = strtok(drives, " "); dk != NULL; dk = strtok(NULL, " ")) { 193 free(drives);
|
/freebsd-current/sys/dev/ips/ |
H A D | ips_disk.c | 107 iobuf->bio_driver1 = (void *)(uintptr_t)dsc->sc->drives[dsc->disk_number].drivenum; 152 totalsectors = dsc->sc->drives[dsc->disk_number].sector_count; 168 dsc->sc->drives[dsc->disk_number].sector_count >> 11); 214 command_struct->drivenum= sc->drives[dsc->disk_number].drivenum;
|
H A D | ips.c | 265 if(sc->drives[i].state == IPS_LD_FREE) continue; 267 i, sc->drives[i].raid_lvl, 268 sc->drives[i].sector_count, 269 ips_diskdev_statename(sc->drives[i].state)); 270 if(sc->drives[i].state == IPS_LD_OKAY || 271 sc->drives[i].state == IPS_LD_DEGRADED){
|
H A D | ips.h | 134 ips_drive_t drives[IPS_MAX_NUM_DRIVES]; member in struct:ips_softc
|
H A D | ips_commands.c | 302 memcpy(sc->drives, driveinfo->drives, sizeof(ips_drive_t) * 8); 304 device_printf(sc->dev, "logical drives: %d\n",sc->drivecount);
|
H A D | ipsreg.h | 308 ips_drive_t drives[IPS_MAX_NUM_DRIVES]; member in struct:__anon2653
|
/freebsd-current/stand/i386/mbr/ |
H A D | mbr.S | 24 .set NHRDRV,0x475 # Number of hard drives
|
/freebsd-current/stand/i386/pmbr/ |
H A D | pmbr.S | 57 .set NHRDRV,0x475 # Number of hard drives
|
/freebsd-current/stand/i386/boot0/ |
H A D | boot0.S | 123 .set NHRDRV,0x475 # Number of hard drives
|