Lines Matching refs:disk
37 sr_prepare_chunk(int devfd, int vol, int disk)
44 diskfd = sr_open_chunk(devfd, vol, disk, &bd, &realdev, &part);
57 int vol = -1, ndisks = 0, disk;
65 /* Prepare file system on each disk that is part of this volume. */
66 for (disk = 0; disk < ndisks; disk++)
67 sr_prepare_chunk(devfd, vol, disk);
73 int vol = -1, ndisks = 0, disk;
84 /* Install boot block on each disk that is part of this volume. */
85 for (disk = 0; disk < ndisks; disk++)
86 sr_install_bootblk(devfd, vol, disk);
110 * XXX - this only works with the real disk name (e.g. sd0) - this
129 fprintf(stderr, "%s: softraid volume with %i disk(s)\n",
152 sr_open_chunk(int devfd, int vol, int disk, struct bioc_disk *bd,
157 /* Get device name for this disk/chunk. */
160 bd->bd_diskid = disk;
164 /* Check disk status. */
168 disk);
177 errx(1, "invalid disk name");