Lines Matching defs:device
375 log_error("Swap %s appeared twice with different device paths %s and %s", e, SWAP(u)->parameters_proc_swaps.what, what_proc_swaps);
431 static int swap_process_new(Manager *m, const char *device, int prio, bool set_flags) {
440 r = swap_setup_unit(m, device, device, prio, set_flags);
444 /* If this is a block device, then let's add duplicates for
445 * all other names of this block device */
446 if (stat(device, &st) < 0 || !S_ISBLK(st.st_mode))
453 /* Add the main device node */
455 if (dn && !streq(dn, device))
456 swap_setup_unit(m, dn, device, prio, set_flags);
466 if (streq(p, device))
477 swap_setup_unit(m, p, device, prio, set_flags);
510 /* If there other units for the same device node have a job
514 the same device node queued. */
1092 "%ms " /* device/file */
1205 * a device unit, follow that. */
1215 * the swap device in the kernel */