Lines Matching defs:device
31 #include "sd-device.h"
37 #include "device-util.h"
200 _cleanup_free_ char *device = NULL;
204 if (fscanf(f, "%i %lu %lu %ms", &pass, &cur, &max, &device) != 4) {
233 fprintf(console, "\r%s: fsck %3.1f%% complete...\r%n", device, p, &m);
278 const char *device, *type;
308 device = argv[1];
310 if (stat(device, &st) < 0) {
311 r = log_error_errno(errno, "Failed to stat %s: %m", device);
316 log_error("%s is not a block device.", device);
323 log_error_errno(r, "Failed to detect device %s: %m", device);
331 /* Find root device */
357 log_error_errno(r, "Failed to detect root device: %m");
361 r = sd_device_get_devname(dev, &device);
363 log_error_errno(r, "Failed to detect device node of root directory: %m");
374 log_warning_errno(r, "Couldn't detect if fsck.%s may be used for %s, proceeding: %m", type, device);
376 log_info("fsck.%s doesn't exist, not checking file system on %s.", type, device);
426 * The previous versions use flock for the device and conflict with
440 cmdline[i++] = device;