Lines Matching defs:disks

1187 	 * XXX: Remove this before we have disks above 128PB. :)
1482 g_raid_md_ddf_supported(int level, int qual, int disks, int force)
1485 if (disks > DDF_MAX_DISKS_HARD)
1491 if (disks < 1)
1493 if (!force && disks < 2)
1497 if (disks < 1)
1500 if (!force && disks != 2)
1503 if (!force && disks != 3)
1512 if (disks < 3)
1519 if (disks < 3)
1528 if (disks < 3)
1537 if (disks < 4)
1546 if (disks < 4)
1553 if (disks < 3)
1559 if (disks != 1)
1565 if (disks < 2)
1574 if (disks < 4)
1583 if (disks < 4)
1592 if (disks < 3)
1654 * Try to replace OFFLINE disks first, then FAILED.
1908 /* Make all disks found till the moment take their places. */
1921 /* Pickup any STALE/SPARE disks to refill array if needed. */
2028 /* If we collected all needed disks - start array. */
2044 G_RAID_DEBUG1(1, sc, "Volume %s now has %d of %d disks",
2209 /* Write updated metadata to all disks. */
2245 struct g_raid_disk *disk, *disks[DDF_MAX_DISKS_HARD];
2292 "(0x%02x/0x%02x), or number of disks (%d).",
2297 /* Search for disks, connect them and probe. */
2300 bzero(disks, sizeof(disks));
2338 disks[i] = disk;
2361 disks[i] = disk;
2379 if (disks[i] != NULL &&
2380 disks[i]->d_state == G_RAID_DISK_S_NONE)
2381 g_raid_destroy_disk(disks[i]);
2481 disk = disks[i];
2501 /* Pickup any STALE/SPARE disks to refill array if needed. */
2644 /* Write updated metadata to remaining disks. */
2880 /* Mark spare and failed disks as such. */
2911 /* Remove disks without "participating" flag (unused). */
3027 /* Write updated metadata to remaining disks. */