summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-10-12 04:07:43 +0200
committerLennart Poettering <lennart@poettering.net>2010-10-12 04:08:04 +0200
commite04aad61bb5eff117e51631727a3ef2807c75d6b (patch)
treeba81670a61b706bd9194eb289f9dbd3ba4107dfb /src/device.c
parent60b912f6b1c6bce67ec4a979594981f6a3b13987 (diff)
swap: major rework, use /sbin/swapon for setting up swaps, fix merging of aliased swap disks
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/device.c b/src/device.c
index 2cbb81aebd..7b73110120 100644
--- a/src/device.c
+++ b/src/device.c
@@ -188,10 +188,6 @@ static int device_update_unit(Manager *m, struct udev_device *dev, const char *p
if ((r = device_find_escape_name(m, path, &u)) < 0)
return r;
- /* If a different unit already claimed this name then let's do
- * nothing. This can happen for example when two disks with
- * the same label are plugged in, and which hence try to get
- * conflicting symlinks in /dev/disk/by-label/xxxx */
if (u && DEVICE(u)->sysfs && !path_equal(DEVICE(u)->sysfs, sysfs))
return -EEXIST;