X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fdevice.c;h=7b73110120fca436a76489070cb9253b862efd31;hp=bf032d0ce292bcb135a92880701bf82e8a7a0ed6;hb=f3b6a3edbce43df47374761529dd663c9a39c612;hpb=5845b46ba3883fe0b21217c65f41383eb52cddb6 diff --git a/src/device.c b/src/device.c index bf032d0ce..7b7311012 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; @@ -537,7 +533,6 @@ const UnitVTable device_vtable = { .no_instances = true, .no_snapshots = true, .no_isolate = true, - .no_alias = true, .init = device_init,