From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Kevin P. Fleming" Date: Wed, 06 Aug 2003 17:09:56 +0000 Subject: Re: Some question about Udev Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Greg KH wrote: > > initramfs isn't freed from memory today :) OK, well, that's different then.. > > Yeah, I've thought about that. Hacking up a udevfs would be a piece of > cake due to the libfs code in the kernel if it comes to that. Just a > ramfs image that allows multiple mounts. Here's another thought (somewhat off-topic for this list): I have been considering implementing a sysfs "class" for filesystems. If something like that existed, the tmpfs (or ramfs) filesystem "driver" could expose information about each existing tmpfs instance, including some sort of cookie. With the addition of a new mount option for the tmpfs filesystem, it would be possible to specify a remount of that existing tmpfs instance by passing in the cookie for the existing instance. Another option would be to make this cookie appear in /proc/mounts, which would certainly be quicker to implement than a new sysfs class. Thoughts? > > It's a piece of cake to rebuild a udev database, as we can just walk the > sysfs tree. So any "errors" or restarts is easy to handle. Hmmm... I guess I was thinking about things like udev tracking hotplug event sequence numbers and such, needing to remember more than just "what exists in sysfs right now". I may have been reading too much into the situation though. > > Ick, I'll just stick with tdb using "normal" files to store such a > state. On restart, just rebuild the database. Actually, using tdb's > "ram database" option will be the way to go. Well, by "magic" I just meant normal files that the user wouldn't see. Something like /dev/.udev_state.tdb that could just sit around in case another udev instance needed it. Sorry for the poor terminology choice there. ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ 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