From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Fri, 13 Feb 2004 01:26:37 +0000 Subject: Re: udev - TODO update Message-Id: <20040213012637.GD5351@kroah.com> List-Id: References: <20040212234538.GC21117@vrfy.org> In-Reply-To: <20040212234538.GC21117@vrfy.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Fri, Feb 13, 2004 at 12:45:38AM +0100, Kay Sievers wrote: > > Here a few questions about my favorite file in the tree :) > > > - better partition support (it's a hack right now, maybe new libsysfs changes > can help out a lot here.) > > It's done with Ananth's patches, right? I think so, yes. > - option to always add all partitions. This is needed to properly handle > devices with removable media. > > Sounds soooo... ugly, but seems we should do it. Any idea which direction? I think a config option. If set, we ignore the partition devices, and just create every possible partition when we see the "main" block device. This is needed for removable media devices. I agree it is ugly, but if anyone else can come up with an idea? > - allow database to be queried by other programs > > Is udevinfo enough, or do we need something more? I think udevinfo is enough for now. Anyone else feel a need for more? > - split program into two pieces (daemon and helper that sends events to it). > This will allow us to keep track of sequences, and lots of other needed > stuff. > > It's done, I think :) Heh, yes, thanks a lot. > - keep track of current permissions on devices when daemon shuts down. > > Hmm, what is this? When the /etc/init.d/udev script shuts down we need to save any permission changes that have been done to the device nodes. That way a user can do: chmod 666 /dev/ttyUSB1 and we will pick this change up the next time we boot up. Perhaps just a wrapper script: udevinfo chmod 666 /dev/ttyUSB1 that could also catch the change and write it to the permissions file. But I don't think people will really go for that one. It would be good to see how Gentoo handles this as I think they tar up everything right now on system shutdown. I'm trying to install it on a spare laptop and stuck in build hell right now, so it will probably be a few days... > - better permission handling > > What is missing here? I don't know for sure. Just a vague feeling that the way we currently handle permissions is pretty lousy. Anyone else feel this way too? thanks, greg k-h ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&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