Lines Matching full:device
2 * devname.c - get a dev by its device inode name
46 * Find a dev struct in the cache by device name, if available.
48 * If there is no entry with the specified device name, and the create
49 * flag is set, then create an empty device entry.
91 * Probe a single block device to add to the device cache.
101 /* See if we already have this device number in the cache. */
120 * Take a quick look at /dev/ptname for the device number. We check
121 * all of the likely device directories. If we don't find it, or if
123 * to find it via an exhaustive search for the device major/minor.
127 char device[256];
129 sprintf(device, "%s/%s", *dir, ptname);
130 if ((dev = blkid_get_dev(cache, device, BLKID_DEV_FIND)) &&
134 if (stat(device, &st) == 0 && S_ISBLK(st.st_mode) &&
136 devname = blkid_strdup(device);
166 * device-mapper support
197 dev_t dep_dev = deps->device[i];
304 char *device = NULL;
309 rc = asprintf(&device, "mapper/%s", names->name);
320 probe_one(cache, device, dev, BLKID_PRI_DM, only_if_new);
323 free(device);
339 * hierarchy giving us the device structure in /dev. (XXX is this a
359 if (sscanf(buf, "device: %d:%d", &ma, &mi) == 2) {
439 char device[110];
446 &ma, &mi, &sz, device) != 4)
450 device, ma, mi));
452 probe_one(cache, device, makedev(ma, mi), BLKID_PRI_EVMS,
461 * Read the device data for all available block devices in the system.
511 * If base name of device has changed, also
514 * names contain whole device name as substring.
538 * dev, and the device's base name has changed,
551 /* Handle the last device if it wasn't partitioned */