Lines Matching defs:disk
63 static int get_parts(disk_t *disk, struct ipart *iparts, char *opath,
112 if (get_parts(desc->p.disk, iparts, pname, sizeof (pname)) != 0) {
173 desc->p.disk, part_name, desc->secondary_name,
197 * number and not to the physical disk. This is
199 * physical disk partition.
212 desc->p.disk, part_name, desc->name, errp);
238 if ((*errp = get_parts(dp->p.disk, iparts, NULL, 0)) != 0) {
337 * A partition descriptor points to a disk, the name is the partition number
340 * partitions found on each disk on a system. These are processed into an array
383 * number and not to the physical disk. This is
385 * physical disk partition.
533 * been created on a disk. get_parts loops through the partitions,
538 * disk -The disk device to be evaluated for partitions
549 get_parts(disk_t *disk, struct ipart *iparts, char *opath, int opath_len)
560 char *device; /* name of fixed disk drive */
567 if ((fd = open_disk(disk, opath, opath_len)) < 0) {
577 if (!partition_has_fdisk(disk, fd)) {
627 len = strlen(disk->aliases->alias) + 1;
634 (void) snprintf(device, len, "%s", disk->aliases->alias);
644 * so iterating through the disk continues.
646 * a potential problem with the disk, so
647 * don't continue iterating through the disk
700 if (dp->p.disk->removable) {
703 if (!media_read_name(dp->p.disk, mname, sizeof (mname))) {
734 if (get_parts(desc->p.disk, iparts, NULL, 0) != 0) {