Lines Matching defs:disk
100 * easily substitue a spare for a failed disk. But, the driver code assumes
153 DPRINTF6("Disk at col %d: dev %s numBlocks %" PRIu64 " blockSize %d (%ld MB)\n",
206 RF_ERRORMSG1("Error: block size of disk at c %d different from disk at c 0\n", c);
211 RF_ERRORMSG2("WARNING: truncating disk at c %d to %d blocks\n",
234 * recall from the above comment that the spare disk descriptors are stored
258 RF_ERRORMSG1("Warning: spare disk %s failed TUR\n",
263 DPRINTF6("Spare Disk %d: dev %s numBlocks %" PRIu64 " blockSize %d (%ld MB)\n", i,
276 RF_ERRORMSG3("Block size of %d on spare disk %s is not the same as on other disks (%d)\n", disks[i].blockSize, disks[i].devname, bs);
281 RF_ERRORMSG3("Spare disk %s (%d blocks) is too small to serve as a spare (need %" PRIu64 " blocks)\n",
288 RF_ERRORMSG3("Warning: truncating spare disk %s to %" PRIu64 " blocks (from %" PRIu64 ")\n",
357 /* configure a single disk during auto-configuration at boot */
578 /* configure a single disk in the array */
1021 RF_ERRORMSG1("Warning: spare disk %s failed TUR\n",
1028 DPRINTF6("Spare Disk %d: dev %s numBlocks %" PRIu64 " blockSize %d (%ld MB)\n",
1038 /* check sizes and block sizes on the spare disk */
1041 RF_ERRORMSG3("Block size of %d on spare disk %s is not the same as on other disks (%d)\n", disks[spare_number].blockSize, disks[spare_number].devname, bs);
1047 RF_ERRORMSG3("Spare disk %s (%d blocks) is too small to serve as a spare (need %" PRIu64 " blocks)\n",
1057 RF_ERRORMSG3("Warning: truncating spare disk %s to %" PRIu64 " blocks (from %" PRIu64 ")\n",
1113 RF_RaidDisk_t *disk;
1130 disk = &raidPtr->Disks[raidPtr->numCol + spare_number];
1131 if (disk->status != rf_ds_spare &&
1132 disk->status != rf_ds_failed) {
1133 printf("Spare is in use %d\n", disk->status);
1143 disk->auto_configured = 0;
1144 disk->dev = 0;
1145 disk->numBlocks = 0;
1146 disk->status = rf_ds_failed;
1147 snprintf(disk->devname, sizeof(disk->devname),
1183 RF_RaidDisk_t *disk;
1198 disk = &raidPtr->Disks[col];
1201 switch (disk->status) {
1216 disk->auto_configured = 0;
1217 disk->dev = 0;
1218 disk->numBlocks = 0;
1219 snprintf(disk->devname, sizeof(disk->devname), "component%d", col);