Lines Matching defs:device

1 /* getroot.c - Get root device */
132 char fstype[ESCAPED_PATH_MAX + 1], device[ESCAPED_PATH_MAX + 1];
135 /* Statting something on a btrfs filesystem always returns a virtual device
136 major/minor pair rather than the real underlying device, because btrfs
138 using a single device it can be dynamically extended onto another). We
139 can't deal with the multiple-device case yet, but in the meantime, we can
140 at least cope with the single-device case by scanning
216 if (sscanf (sep, "%s %s", entry.fstype, entry.device) != 2)
269 if (!*entries[i].device)
272 ret = strdup (entries[i].device);
291 char *device = NULL;
308 device = xasprintf("/dev/rdsk/%s", mnt.mnt_special + 9);
311 device = xasprintf("/dev/rlofi/%s", mnt.mnt_special + 10);
314 device = xasprintf("/dev/rramdisk/%s", mnt.mnt_special + 13);
317 device = xasprintf("/dev/rramdisk/%s", mnt.mnt_special + 17);
327 device = xasprintf("/dev/rramdisk/%s", minor_name);
335 return (device);
377 grub_util_info("device type = %s", type);
391 grub_util_info ("device -> %s", *pdevice);
429 char *device = NULL;
455 (void) vdev_get_bootdevice (vdev_tree, &device);
510 device = xasprintf ("/dev/%s", name);
522 /* If the device is a /dev/dsk path, convert it into a /dev/rdsk one */
523 if (device != NULL && strncmp(device, "/dev/dsk/", 9) == 0) {
524 char *newdevice = xasprintf("/dev/rdsk/%s", device + 9);
525 grub_free(device);
526 device = newdevice;
530 if (device != NULL)
531 grub_util_info("zfs path = %s", device);
533 return device;
630 /* Skip device names like /dev/dm-0, which are short-hand aliases
631 to more descriptive device names, e.g. those under /dev/mapper */
644 /* Convert this block device to its character (raw) device. */
647 /* Keep the device name as it is. */
657 /* /dev/root is not a real block device keep looking, takes care
723 /* No root device for /cygdrive. */
741 This is never identical to the device number of the emulated
742 /dev/sdXN device, so above grub_find_device () does not work.
871 grub_util_error("Unable to determine device");
891 grub_dprintf("hostdisk", "Cannot determine root device\n");
892 grub_util_error("cannot determine root device");
1410 /* This a partitionable RAID device of the form /dev/md_dNNpMM. */
1425 /* This a partitionable RAID device of the form /dev/md/dNNpMM. */
1479 grub_util_error (_("unknown kind of RAID device `%s'"), os_dev);