From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Frederick (Rick) A Niles" Date: Tue, 29 Nov 2005 22:55:06 +0000 Subject: Directory not removed when driver is unloaded. Message-Id: <1133304906.3400.59.camel@beatrix.mitre.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org OK first off let me state the disclaimer that I'm clueless about what I'm doing with udev. So please don't flame me too hard that I'm doing it all wrong. Short description: I've managed to get udev to work very well for me with one exception. The directory that gets created for my devices under /dev does not get removed when the driver exits and then when the driver is reloaded the permission of that directory are wrong. Long description: I'm using a Fedora Core 3 system and I have added the minimal sysfs stuff to my driver. It's using the "10.FC3.7" version of the udev package. /etc/udev/rules.d/90-foo.rules: KERNEL="foo.bar", NAME="foo/bar" KERNEL="foo.baz", NAME="foo/baz" ====== /etc/udev/permissions.d/90-foo.permissions: foo/*:root:users:0666 foo:root:users:0755 ====== (BTW, these aren't the real name for the driver, just for illustration) First time I load the driver, the device files get created and the permissions are correct. When I remove the driver the directory changes permission to 0000 and never changes again, even when I reload the driver. The files are not removed as expected when the driver is unloaded. So either: (1) I'm doing something wrong with my rules and/or permissions file or (2) There was a bug in udev for this older version and hopefully it's fixed now... I appreciate any guidance you can give. Thanks, Rick Niles. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel