From b749ed561cc7ee9c5aa7c7ce45237883bb80b705 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Wed, 26 Mar 2014 19:01:57 +0100 Subject: [PATCH] userspace: add bugfix for Debian udev rules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch received from Jörg Mann by email. Some Debian versions seem to have typos in their udev rules. As a consequence, /dev/mars/mydata does not disappear when leaving primary state. Other consequences might also exist. In an unreproduced case the /dev/mars/ object was unlinked while the mount was continuously active, without causing any harm to operations (besides that xfs_growfs did not work, which led to the discovery of the mysterious situation). Probably the udev userspace may require further fixes. Fortunately, udev-less systems (as those used by me for testing) are not affected. --- userspace/debian-udev.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 userspace/debian-udev.patch diff --git a/userspace/debian-udev.patch b/userspace/debian-udev.patch new file mode 100644 index 00000000..5c40854d --- /dev/null +++ b/userspace/debian-udev.patch @@ -0,0 +1,20 @@ +--- 91-permissions.rules 2014-03-25 17:18:31.945152708 +0100 ++++ 91-permissions.rules.orig 2013-04-29 00:36:42.000000000 +0200 +@@ -90,7 +90,7 @@ + KERNEL=="pht[0-9]*", GROUP="tape" + + # sound devices +-SUBSYSTEM=="sound", GROUP="audio", \ ++SUBSYSTEM=="sound", GROUP="audio", + OPTIONS+="static_node=snd/seq", OPTIONS+="static_node=snd/timer" + + # ieee1394 devices +@@ -103,7 +103,7 @@ + KERNEL=="video1394-[0-9]*", GROUP="video" + + # input devices +-KERNEL=="event[0-9]*", ATTRS{name}=="*dvb*|*DVB*|* IR *", \ ++KERNEL=="event[0-9]*", ATTRS{name}=="*dvb*|*DVB*|* IR *" \ + MODE="0664", GROUP="video" + KERNEL=="js[0-9]*", MODE="0664" + KERNEL=="event[0-9]*", ENV{ID_CLASS}=="joystick", \