diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-09-09 18:18:17 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-09-09 18:49:07 +0200 |
commit | 6c29f2b942358d4dd9d3e7c65c13c3612dded3cc (patch) | |
tree | 2604ad41d6cd00785e13caa5515996acc3e942ee /udev/udev-event.c | |
parent | 7f06ec2e19387424de34bae35320c2fe192cb69d (diff) |
simplify "symlink name stack"
With well defined and kernel-supplied node names, we no longer need
to support a possible stack of conflicting symlinks and node names.
Only symlinks with identical names can be claimed by multiple devices.
This shrinks the former /dev/.udev/names/ significantly.
Also the /dev/{block,char}/MAJ:MIN" links are excluded from the name
stack - they are unique and can not conflict.
Diffstat (limited to 'udev/udev-event.c')
-rw-r--r-- | udev/udev-event.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/udev/udev-event.c b/udev/udev-event.c index 7b4e4ac5c3..701c061820 100644 --- a/udev/udev-event.c +++ b/udev/udev-event.c @@ -688,9 +688,9 @@ exit_add: char devnode[UTIL_PATH_SIZE]; info(event->udev, "'%s' not found in database, using kernel name '%s'\n", - udev_device_get_syspath(dev), udev_device_get_sysname(dev)); + udev_device_get_syspath(dev), udev_device_get_knodename(dev)); util_strscpyl(devnode, sizeof(devnode), - udev_get_dev_path(event->udev), "/", udev_device_get_sysname(dev), NULL); + udev_get_dev_path(event->udev), "/", udev_device_get_knodename(dev), NULL); udev_device_set_devnode(dev, devnode); } |