From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Thayer Date: Thu, 29 Apr 2010 22:53:51 +0000 Subject: [PATCH udev-git-20100430] Fix device node deletion Message-Id: <1272581631.3865.20.camel@michael-laptop> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org 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 --- --- 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 @@ } =20 util_strscpyl(filename, sizeof(filename), LIBEXECDIR "/devices", &devnode= [strlen(udev_get_dev_path(udev))], NULL); - if (stat(filename, &stats) =3D 0 || stats.st_rdev =3D udev_device_get_dev= num(dev)) { + if (stat(filename, &stats) =3D 0 && stats.st_rdev =3D udev_device_get_dev= num(dev)) { info(udev, "static device entry found '%s', skip removal\n", devnode); goto out; } --=20 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=C3=BCrgen Kunz