From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Fri, 30 Dec 2005 21:58:44 +0000 Subject: Re: new version of udev has different cd/dvd devices Message-Id: <20051230215844.GA6526@vrfy.org> List-Id: References: <43B313ED.40402@bl.com> In-Reply-To: <43B313ED.40402@bl.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Fri, Dec 30, 2005 at 09:00:12PM +0000, Darren Salt wrote: > I demand that Kay Sievers may or may not have written... > > > On Fri, Dec 30, 2005 at 07:12:21PM +0000, Darren Salt wrote: > >> I demand that Kay Sievers may or may not have written... > >>> On Fri, Dec 30, 2005 at 07:09:20PM +0100, Marco d'Itri wrote: > >>>> On Dec 30, Greg KH wrote: > >>>>> Or we can just stick with the rules we have today that use %e just > >>>>> fine, as it emulates exactly what a static /dev would have done, and no > >>>>> one is complaining about it :) > >>>> People are complaining about it because events are not received in bus > >>>> order anymore, so the names randomly change (and since there is no > >>>> locking often the same links is created for two devices). > >>> Exactly. That's the reason why it will be removed. > >> So, basically, you're removing something which *worked* here because of an > >> unrelated change which broke it. > > > It never worked reliably for modular kernels. > > Hmm. I'm using mostly monolithic, and it's failing regardless. Sure, that's expected, cause your naming rules are broken. > >>>> But still, I'd rather keep it as long as possible since half broken is > >>>> better than totally broken and I do not have a replacement ready. > >>> That doesn't makes sense. %e it conceptually completely broken and > >>> offering something that can't work does not give any value. > >> Can you provide instances in which it *doesn't* work, given events > >> received in bus order? > > > Plug in/out any device on any bus, reboot and all your silly numbers will > > change. That's no longer acceptable with current system requirements. > > That's a known effect and, as such, can be routed around. For some devices, I > can see that this can be a problem; but for others, it may well be perfectly > acceptable. "Some devices" concepts are exactly that we are working on to get rid of. Why are you running an explicitely marked as "unstable" system, if you have no clue what we are working on? > I know that (given the previous, stable, naming) removing and not replacing > the sound card here in my main Linux box would cause the on-board sound > hardware to be "card 0" rather than "card 1". That's acceptable and expected > (I'm allowing ALSA to automatically number them because, until fairly > recently, this worked reliably). Then you never used USB sound devices, like headsets or something else. Again, if you lack of the needed experience in the area or ability to imagine the picture, please stop posting this nonsense. > [snip] > >>> Write out a rule at discovery (from udev itself) for every unconfigured > >>> device and you get a sane enumeration, that will not change at next boot. > >> ITYM "sane enumeration that will not change". > > > There is by concept no "sane enumeration" on a dynamic system and will > > never be. But seem you don't get the picture at all. > > If the user says that "these parts of the system are static" (and I say that > much of my system is static), why *shouldn't* some enumeration be considered > sane? Cause _nothing_ is static today. Get used to it. > >> If, with no devices previously configured, it differs from what would be > >> done with events sorted into bus order, I for one will consider it broken > >> for the simple reason that it cannot be predicted from bus order. > > > Again, seems you have absolutely no clue what all this is about, do your > > homework before posting such nonsense. > > For "bus order", read "whatever order happens to have been used by older udev > which provides stable naming given the same hardware configuration". This > looks like bus order from where I'm sitting. Repeating the same stuff again and again doesn't add any value to it. > If a newly-upgraded udev happens to generate its own rules which provide > different naming, well, that's breakage right there: I could insert a disk > into one CDROM drive then be surprised that I get a "drive empty" error > because udev has called the wrong one (the writer, /dev/hdd) /dev/cdrom. No, definitely not. Your broken rules have renamed it. Fix them and everthing is fine. Kay ------------------------------------------------------- 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_id865&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