linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Frederick (Rick) A Niles" <fniles@mitre.org>
To: linux-hotplug@vger.kernel.org
Subject: Directory not removed when driver is unloaded.
Date: Tue, 29 Nov 2005 22:55:06 +0000	[thread overview]
Message-ID: <1133304906.3400.59.camel@beatrix.mitre.org> (raw)

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

             reply	other threads:[~2005-11-29 22:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-29 22:55 Frederick (Rick) A Niles [this message]
2005-11-29 23:50 ` Directory not removed when driver is unloaded Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1133304906.3400.59.camel@beatrix.mitre.org \
    --to=fniles@mitre.org \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).