* Directory not removed when driver is unloaded.
@ 2005-11-29 22:55 Frederick (Rick) A Niles
2005-11-29 23:50 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Frederick (Rick) A Niles @ 2005-11-29 22:55 UTC (permalink / raw)
To: linux-hotplug
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_id\x16865&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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Directory not removed when driver is unloaded.
2005-11-29 22:55 Directory not removed when driver is unloaded Frederick (Rick) A Niles
@ 2005-11-29 23:50 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2005-11-29 23:50 UTC (permalink / raw)
To: linux-hotplug
On Tue, Nov 29, 2005 at 05:55:06PM -0500, Frederick (Rick) A Niles wrote:
> (2) There was a bug in udev for this older version and hopefully it's
> fixed now...
What exact version of udev are you using?
What does 'udevinfo -V' return?
And yes, upgrading to the latest version might be a good place to start
:)
thanks,
greg k-h
-------------------------------------------------------
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_id\x16865&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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-29 23:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-29 22:55 Directory not removed when driver is unloaded Frederick (Rick) A Niles
2005-11-29 23:50 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).