* [PATCH udev-git-20100430] Fix device node deletion
@ 2010-04-29 22:53 Michael Thayer
0 siblings, 0 replies; 2+ messages in thread
From: Michael Thayer @ 2010-04-29 22:53 UTC (permalink / raw)
To: linux-hotplug
udev-152 and -153 do not remove device nodes again when a USB device is
unplugged, instead printing the log message 'static device entry found
-- not deleting'. I believe that the patch below against current udev
git will fix this issue.
Signed-off-by: Michael Thayer <michael.thayer@sun.com>
---
--- a/udev/udev-node.c 2010-04-30 00:36:12.571596487 +0200
+++ b/udev/udev-node.c 2010-04-30 00:36:53.871702361 +0200
@@ -428,7 +428,7 @@
}
util_strscpyl(filename, sizeof(filename), LIBEXECDIR "/devices", &devnode[strlen(udev_get_dev_path(udev))], NULL);
- if (stat(filename, &stats) = 0 || stats.st_rdev = udev_device_get_devnum(dev)) {
+ if (stat(filename, &stats) = 0 && stats.st_rdev = udev_device_get_devnum(dev)) {
info(udev, "static device entry found '%s', skip removal\n", devnode);
goto out;
}
--
Sun Microsystems GmbH Michael Thayer
Werkstrasse 24 VirtualBox engineer
71384 Weinstadt, Germany mailto:michael.thayer@sun.com
Sitz der Gesellschaft:
Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Jürgen Kunz
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH udev-git-20100430] Fix device node deletion
@ 2010-05-01 15:32 Kay Sievers
0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2010-05-01 15:32 UTC (permalink / raw)
To: linux-hotplug
On Fri, Apr 30, 2010 at 00:53, Michael Thayer <Michael.Thayer@sun.com> wrote:
> udev-152 and -153 do not remove device nodes again when a USB device is
> unplugged, instead printing the log message 'static device entry found
> -- not deleting'. Â I believe that the patch below against current udev
> git will fix this issue.
Applied.
Thanks,
Kay
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-01 15:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-29 22:53 [PATCH udev-git-20100430] Fix device node deletion Michael Thayer
-- strict thread matches above, loose matches on Subject: below --
2010-05-01 15:32 Kay Sievers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox