Lines Matching refs:device
57 const char *device,
69 assert(device);
93 u = fstab_node_to_udev_node(device);
97 r = unit_name_from_path(u, ".device", &d);
113 "BindsTo=dev-mapper-%i.device\n"
137 r = unit_name_from_path(uu, ".device", &dd);
159 r = generator_write_timeouts(arg_dest, device, name, options, &filtered);
213 to = strjoin(arg_dest, "/dev-mapper-", e, ".device.requires/", n, NULL);
223 dmname = strjoin("dev-mapper-", e, ".device", NULL);
227 r = write_drop_in(arg_dest, dmname, 90, "device-timeout",
231 return log_error_errno(r, "Failed to write device drop-in: %m");
385 _cleanup_free_ char *name = NULL, *device = NULL, *keyfile = NULL, *options = NULL;
396 k = sscanf(l, "%ms %ms %ms %ms", &name, &device, &keyfile, &options);
402 uuid = startswith(device, "UUID=");
404 uuid = path_startswith(device, "/dev/disk/by-uuid/");
411 log_info("Not creating device '%s' because it was not specified on the kernel command line.", name);
415 r = create_disk(name, device, keyfile, (d && d->options) ? d->options : options);
433 _cleanup_free_ char *device = NULL;
444 device = strappend("UUID=", d->uuid);
445 if (!device)
455 r = create_disk(d->name, device, d->keyfile ?: arg_default_keyfile, options);