From: Russell Neches Date: Sun, 16 May 2004 21:03:43 +0000 Subject: Re: 2.6.6/udev weirdness Message-Id: <20040516210343.GA27134@atlantis.ccs.neu.edu> List-Id: References: <20040512235509.GA3836@heliopause.vort.org> In-Reply-To: <20040512235509.GA3836@heliopause.vort.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org > Would you mind re-reading the section titled "Example: Writing a rule for > my USB-Storage digital camera"? > In that section I explain the importance of a key such as KERNEL="sd?1", > and if you had followed this section while writing your rule, I think you > may have avoided the problems you describe in this thread. > If that still does not clear it up for you, let me know, and I'll see if > there is a way I can improve the wording there. Actually, I think the wording is quite clear in that section. I reckoned that I was having a different problem, though. My origional rules did, after all, work exactly as I wanted them to under 2.6.5. It's easy enough to see why one would want to distinguish between sda and sda1 and how to do it. My problem wasn't that I couldn't figure out how to solve that particular problem, it was that the behavior changed between minor version numbers of the kernel. I had thought (incorrectly, it seems) that sysfs is intended specifically to provide a standardized, reliable source of hardware information, and that the whole point of the thing was to prevent problems like the one I noticed. If sysfs is going to be a mix of some values that aren't supposed to change, and some that do, or might, or can, or could change (aside from chanes to _enforce_ compliance with policy), then it's much less useful. If there is some way of knowing which values may be expected to "stay put" between kernel revisions, then that goes part of the way to fixing the problem. This particular situation is pretty harmless. However, I can easily imagine a situation where it woudln't be. For instance, a server with a very large, complex disk array. This is one of the situations that udev is intended to address. If you don't know what can be changed in sysfs, then how do you write safe, effective rules so that you can use your disk array the way you want? It would be a fairly subtle problem. Now, if that's just the way it is, then that's the way it is. Russell ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id%62&alloc_ida84&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