From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Wed, 02 Nov 2005 23:49:20 +0000 Subject: Re: udev user specified or human readable /dev names Message-Id: <20051102234920.GB30226@vrfy.org> List-Id: References: <20051101225357.GA13215@us.ibm.com> <20051102000531.GB17207@vrfy.org> <20051102003531.GA15854@us.ibm.com> <20051102010615.GA18684@vrfy.org> <20051102020156.GA17330@us.ibm.com> <20051102025345.GA19174@vrfy.org> <20051102153018.GA30686@us.ibm.com> In-Reply-To: <20051102153018.GA30686@us.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: Patrick Mansfield Cc: linux-hotplug-devel@lists.sourceforge.net, dm-devel@redhat.com On Wed, Nov 02, 2005 at 07:30:18AM -0800, Patrick Mansfield wrote: > On Wed, Nov 02, 2005 at 03:53:45AM +0100, Kay Sievers wrote: >=20 > > Sure, that may be easier. > > But such a tool is only useful if the devices are already present on the > > system, right? Then you can read all current available ID_* variables f= rom > > the udev database and compose a nice rule from it. :) >=20 > Yes looks like that can work (again I *was* thinking symlinks, and not > env variables) . If that does not work well, let me know and we can make the needed changes. > > > And is there a way to rename or add /dev entries without removing and > > > adding back a device? > >=20 > > You can run udevstart again, if its not configured to do some weird > > stuff. >=20 > That is rather slow, and didn't removing links (like a rename would want). Sure. > > The current devel kernel has a "uevent" file, which triggers the > > hotplug event again, this could be used to create additional configured > > links. > >=20 > > Also: > > ACTION=ADd DEVPATH=3D/block/sdm /sbin/udev block > > would do it. >=20 > Those don't remove links either. ACTION=3Dremove DEVPATH=3D/block/sdm /sbin/udev block ACTION=ADd DEVPATH=3D/block/sdm /sbin/udev block But sure, we may want to add something smarter than this, cause the node will disappear for a short time and the inode number of the node will change which isn't nice if you want to recreate symlinks only. We will need something like this anyway, cause if you change a volume label of a filesystem, you have a similar problem. > > Or do you mean adding a link temporarily, so that it get tracked and > > removed when the device goes away? >=20 > No. Ah bad, that's what I like to have for a pam_console/udev solution. :) Kay ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ 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