From: "Canek Peláez Valdés" <caneko@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Beta test Gentoo with mdev instead of udev; version 5 - failure :-(
Date: Wed, 14 Mar 2012 13:45:55 -0600 [thread overview]
Message-ID: <CADPrc80m12ryfcoWn5Zm+3sMpo3KTWkRCvuvOthLYwhkQPA2QQ@mail.gmail.com> (raw)
In-Reply-To: <CAA2qdGVvU51S--vCf5gSxyzfrohr94EFHOQ0gg0a4i0VJg9SCw@mail.gmail.com>
On Wed, Mar 14, 2012 at 1:24 PM, Pandu Poluan <pandu@poluan.info> wrote:
>
> On Mar 15, 2012 1:22 AM, "Canek Peláez Valdés" <caneko@gmail.com> wrote:
>>
>> On Wed, Mar 14, 2012 at 12:03 PM, Pandu Poluan <pandu@poluan.info> wrote:
>> >
>> > On Mar 15, 2012 12:25 AM, "Canek Peláez Valdés" <caneko@gmail.com>
>> > wrote:
>> >>
>> >
>> > ---- >8 snip
>> >
>> >>
>> >> That if I connect a USB wi-fi dongle, and it appears with the name
>> >> wlan23, I want *every* time that dongle to have the wlan23 name .Good
>> >> luck doing that without a database.
>> >>
>> >
>> > That could -- should -- be handled by a script or a program that looks
>> > up
>> > the database, do the checks, and rename the node accordingly.
>> >
>> > All the device manager got to do is to plug in into the hotplug kernel
>> > knob,
>> > whereby it will be invoked on every hotplug event, and depending on the
>> > nature if the device (which, in your example, fits the pattern "wlan*")
>> > fires the script/program which performs the lookup+rename part.
>> >
>> > mdev can do that.
>>
>> udev already does it.
>>
>
> So does mdev. If writing a simple script is so distressing for you, why in
> the world are you using Gentoo, with all its manual labor?
Whoa, relax man. We are discussing (or at least I'm trying) in a civil
manner the technical merits of two proposed solutions for a problem.
No need to get personal.
(And BTW, I've been using Gentoo since 2003, and I maintain an overlay
to use systemd without the need of having openrc/baselayout
installed).
>> > Put it under /bin
>> >
>> > Done.
>>
>> Yeah, right. And put LVM2 binaries in /bin. And wpa_supplicant (maybe
>> I need a wireless connected NFS share). And...
>>
>> Not scalable. Doesn't solve the general case. You are seeing too small.
>>
>
> *You* are not seeing _at all_. Witness how the Fedora devs want to merge
> /bin and /sbin
Yeah. I agree with their decision. Read:
http://lists.busybox.net/pipermail/busybox/2010-December/074114.html
> It *is* scalable. Ever tried du /usr?
Yeah, from time to time. Fail to see your point.
> The problem was -- is -- that package maintainers blindly put binaries
> required for booting into /usr
No problem with an intiramfs :D
>> > The vast majority of Linux users, be they using PCs or smartphones, only
>> > need a mechanism to handle hotplugs.
>> >
>> > udev can do it, but so can mdev (with the help of helper
>> > scripts/programs).
>>
>> udev can do it *right now*, no hacks involved. Go and hack mdev until
>> it handles *ALL* the cases udev handles, and see how complex it gets.
>>
>
> If you're so afraid of doing things manually, you have no business using
> Gentoo in the first place.
Again with the personal attacks; relax man. No need to get all worked out.
> Here's a prototype script to ensure that certain NICs will always end up the
> way you want it named:
>
> #!/bin/sh
> mac="$( cat /proc/net/arp | awk -V dev="$MDEV" 'NR==1{next} $6==dev {print
> $4}')"
> name="$(awk -V mac="$mac" '$1==mac {print $2}')"
> [ "$name" ] && mv /dev/$MDEV /dev/$name
> exit 0
>
> (Prototype, because I don't have access to a Linux box atm, so I can't test)
Yeah, I'm gonna try that instead of udev, which works out of the box.
I'm gonna pass, thank you.
>> Been there, tried that. What do you think devfs was? We tried this
>> path already: it doesn't work, it doesn't scale. You couple together
>> the device manager and the database handling and the firing of
>> associated scripts because that's the technical correct solution. It
>> *is* more complex, for sure, but so it's the general problem we are
>> trying to solve.
>>
>
> If you step down from your high chair for awhile and read the busybox thread
> I've been linking, you'll know the difference. One of the emails in that
> thread explained it.
Relax, I'm not on a high chair; again, I'm just stating my opinion. I
have read the mail, I think the day it was posted. I don't buy it, for
all the reasons I have been saying.
>> > udev is going the kitchen sink route. mdev stays the lego brick path.
>>
>> And guess what? I don't want a toy solution built with lego blocks.
>
> Obviously idioms went way over your head.
>
> If you're taking the "Lego brick" allegory as literal, then good luck with
> your kitchen sink. At least I know that with Lego bricks, amazing works of
> art have been created. :-P
:D
Actually, a Lego brick is a good analogy for mdev (in its current
state). It's a beautiful toy; but again, nobody has pointed out how to
make it work with bluetooth devices, for example. From Walt's mail
(his words, not mine):
"This revision includes some checking to see if your system can run
without udev. In general, if you use any of...
* GNOME
* KDE
* XFCE
* lvm2
... you probably need udev, so mdev is not for you."
>> I
>> want a robust, general solution, that it is bound to work *now* and in
>> the future.
>>
>
> So? What makes you think that in the future suddenly mdev stops working?
I doesn't work, out of the box, right now. Again, see Walt's mail.
> The flip side: as udev gets more and more complex, how could you be sure it
> won't catastrophically fail one day, just like HAL?
Educated guess ;)
I have been using Linux since 1997. I lived through the OSS -> ALSA
transition, the GNOME 1.0 -> GNOME 1.2 -> GNOME 2.0 -> GNOME 3.0
transition, the xine -> Mplayer -> Totem transition, the HAL -> no-HAL
transition, and (of course) the mknod -> devfs -udev transition.
I'm willing to bet yet another beer that udev will not have the fate HAL had.
>> > Talk about double standards :-)
>>
>> When I hear Walt saying that mdev handles GNOME/KDE/XFCE/LVM2, you may
>> say that. Right *now*, Walt says mdev doesn't handle those cases.
>>
>
> Walt said that mdev doesn't work with LVM2, but then Alan said that actually
> LVM2 works after booting. It just didn't work during booting. Suspiciously a
> case of missing/misnamed dev nodes to me, easily fixable by adding some
> mdev.conf rules.
So, easily fix it. I'm not using it anyhow.
>> Go and solve it then. I will keep using udev, which works right now, thank
>> you.
>>
>
> I am not using LVM, so I have no test case. But I certainly will pursue this
> issue -- had you not derail the thread by slandering mdev with all your
> might.
I'm not slandering anyone; I'm just stating my opinion. mdev cannot do
what udev does, and I believe the mdev developers agree with that
(certainly Walt does). I don't see why that's "slandering".
Don't take it personal man, relax.
>> >> With all due respect, Alan (and this is completely sincere, in this
>> >> list you are of the guys I respect the most), I believe you are
>> >> thinking too small.
>> >>
>> >
>> > With all due respect, I believe *you* are too defensive in regards to
>> > udev.
>>
>> I'm not defending anything; just stating my opinion. You are free to
>> disagree, of course.
>>
>
> The way you write it, as if udev is the greatest thing since slice bread
> while mdev is 'useless and destined to fail'?
No, udev solves the general problem, mdev not. That's it.
> Sounds like a fanboy rant to me :-)
If you say so. Not the case, actually.
>> Go and code if it's really easy and simple and doable. Me? I will
>> stick with udev, 'cause it works. And it works *right now*, in all my
>> use cases and even some I don't plan to have in the near future.
>>
>
> If it's a case of missing node, it's *very* easy: Identify what node it's
> being expected, identify what node was created by mdev, edit mdev.conf to
> perform a rename+symlink.
Then do it. My "slandering" (so you call it) should not matter.
>> If someone is willing (and able) to do it, good for him/she/them. I'm
>> sticking with udev, and if at some point mdev does everything udev
>> does right now, I again bet a beer that the first would be as complex
>> as the second.
>>
>
> You are *totally* missing the point.
I believe I'm not.
> The point was never to make mdev as complex as udev.
You *are* missing my point. My prediction is that if mdev ever handles
all the cases udev does, mdev will be as complex as udev. I could be
wrong, of course. But again, educated guess ;)
> The point was to give people option by *not* requiring udev, but only
> virtual/device-manager.
And good for them.
> Users no longer have to choose between two dichotomies, i.e., the omnipotent
> udev vs the simplistic mdev. Instead, they can choose between the bloated
> udev, or the lean mdev which *already can* cater for more complex behavior
> if necessary.
Bluetooth anybody?
And relax man, this is friendly dicussion, not religious rethoric.
Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México
next prev parent reply other threads:[~2012-03-14 19:47 UTC|newest]
Thread overview: 186+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-15 6:21 [gentoo-user] Anybody want to beta test Gentoo with mdev instead of udev? waltdnes
2011-11-15 7:44 ` Pandu Poluan
2011-11-15 16:16 ` Alan McKinnon
2011-11-15 17:03 ` Pandu Poluan
2011-11-15 16:41 ` Albert W. Hopkins
2011-11-15 17:04 ` Pandu Poluan
2011-11-15 20:16 ` waltdnes
2011-11-16 0:52 ` Pandu Poluan
2011-11-16 1:41 ` Pandu Poluan
2011-11-16 3:18 ` yegle
2011-11-16 10:21 ` Pandu Poluan
2011-11-16 10:57 ` Pandu Poluan
2011-11-20 16:29 ` pk
2011-11-21 10:47 ` [gentoo-user] Re: Beta test Gentoo with mdev instead of udev; version 2 waltdnes
2011-11-30 13:58 ` Pandu Poluan
2011-12-01 19:36 ` Walter Dnes
2011-12-01 19:45 ` [gentoo-user] Re: Beta test Gentoo with mdev instead of udev; version 3 Walter Dnes
2011-12-02 0:23 ` Pandu Poluan
2012-01-03 10:04 ` Walter Dnes
2012-01-03 10:22 ` Pandu Poluan
2012-01-03 12:32 ` Nicolas Sebrecht
2012-01-03 12:48 ` Pandu Poluan
2012-01-03 13:13 ` Nicolas Sebrecht
2012-01-03 13:42 ` Pandu Poluan
2012-01-03 14:31 ` Nicolas Sebrecht
2012-01-03 14:43 ` Alan McKinnon
2012-01-03 15:04 ` Dale
2012-01-03 22:15 ` Neil Bothwick
2012-01-03 23:15 ` Dale
2012-01-04 12:35 ` Pandu Poluan
2012-01-04 20:21 ` Canek Peláez Valdés
2012-01-04 23:33 ` Dale
2012-01-04 23:49 ` Michael Mol
2012-01-05 0:02 ` Alan McKinnon
2012-01-05 7:30 ` pk
2012-01-05 7:43 ` Alan McKinnon
2012-01-05 8:17 ` pk
2012-01-05 12:08 ` Alan McKinnon
2012-01-05 14:03 ` Dale
2012-01-05 15:52 ` Neil Bothwick
2012-01-05 18:12 ` Alan McKinnon
2012-01-05 16:03 ` pk
2012-01-05 16:20 ` Dale
2012-01-05 16:39 ` pk
2012-01-05 16:48 ` Pandu Poluan
2012-01-06 1:29 ` Dale
2012-01-06 3:00 ` pk
2012-01-06 3:29 ` Pandu Poluan
2012-01-05 15:50 ` pk
2012-01-05 18:02 ` Alan McKinnon
2012-01-05 18:20 ` Michael Mol
2012-01-05 20:15 ` Mick
2012-01-05 20:33 ` Neil Bothwick
2012-01-05 20:01 ` pk
2012-01-05 16:29 ` Pandu Poluan
2012-01-07 1:17 ` Walter Dnes
2012-01-07 11:44 ` pk
2012-01-08 23:48 ` Walter Dnes
2012-01-09 8:19 ` pk
2012-01-09 9:47 ` Pandu Poluan
2012-01-09 19:25 ` pk
2012-01-09 21:08 ` Walter Dnes
2012-01-10 12:13 ` Sebastian Beßler
2012-01-05 9:07 ` Pandu Poluan
2012-01-05 10:01 ` Nicolas Sebrecht
2012-01-05 11:22 ` Neil Bothwick
2012-01-05 19:20 ` Michael Mol
2012-01-05 22:08 ` Nicolas Sebrecht
2012-01-05 21:38 ` Michael Mol
2012-01-05 22:10 ` Alan McKinnon
2012-01-06 1:45 ` Dale
2012-01-06 2:15 ` Pandu Poluan
2012-01-06 2:39 ` Dale
2012-01-05 11:46 ` Alan McKinnon
2012-01-05 14:41 ` pk
2012-01-03 13:18 ` Alan McKinnon
2012-01-03 13:36 ` Nicolas Sebrecht
2012-01-03 13:49 ` Volker Armin Hemmann
2012-01-03 14:35 ` Nicolas Sebrecht
2012-01-03 13:54 ` Dale
2012-01-03 15:22 ` Walter Dnes
2012-01-03 15:49 ` Nicolas Sebrecht
2012-01-03 16:52 ` Mick
2012-02-17 23:40 ` [gentoo-user] Re: Beta test Gentoo with mdev instead of udev; version 4 Walter Dnes
2012-02-18 5:51 ` Pandu Poluan
2012-02-27 9:49 ` Pandu Poluan
2012-02-29 1:27 ` Walter Dnes
2012-03-11 9:09 ` [gentoo-user] Beta test Gentoo with mdev instead of udev; version 5 Walter Dnes
2012-03-11 11:27 ` Daddy
2012-03-11 14:17 ` Alan McKinnon
2012-03-11 18:39 ` Canek Peláez Valdés
2012-03-11 19:37 ` Daddy
2012-03-11 20:10 ` David Abbott
2012-03-11 20:34 ` Alan McKinnon
2012-03-11 21:20 ` Dale
2012-03-11 23:42 ` Daddy
2012-03-12 1:30 ` Dale
2012-03-12 12:21 ` Neil Bothwick
2012-03-13 2:41 ` Peter Humphrey
2012-03-13 7:02 ` Alan McKinnon
2012-03-13 11:01 ` Neil Bothwick
2012-03-13 14:55 ` Peter Humphrey
2012-03-11 23:04 ` Daddy
2012-03-11 20:27 ` Alan McKinnon
2012-03-11 23:07 ` Daddy
2012-03-11 23:38 ` Alan McKinnon
2012-03-12 19:23 ` pk
2012-03-11 19:28 ` Walter Dnes
2012-03-11 19:49 ` Daddy
2012-03-12 19:09 ` pk
2012-03-20 19:49 ` covici
2012-03-20 20:08 ` pk
2012-03-21 0:45 ` Pandu Poluan
2012-03-11 14:08 ` Pandu Poluan
2012-03-11 21:34 ` Walter Dnes
2012-03-13 20:45 ` [gentoo-user] Beta test Gentoo with mdev instead of udev; version 6 Walter Dnes
2012-03-14 13:15 ` J. Roeleveld
2012-03-14 21:43 ` Walter Dnes
2012-03-14 22:09 ` Canek Peláez Valdés
2012-03-14 23:59 ` Walter Dnes
2012-03-15 0:10 ` Pandu Poluan
2012-03-15 0:23 ` Canek Peláez Valdés
2012-03-12 9:24 ` [gentoo-user] Beta test Gentoo with mdev instead of udev; version 5 - failure :-( Alan Mackenzie
2012-03-12 19:42 ` pk
2012-03-13 7:14 ` Walter Dnes
2012-03-13 12:33 ` Alan Mackenzie
2012-03-13 7:33 ` Walter Dnes
2012-03-13 13:05 ` Alan Mackenzie
2012-03-13 19:00 ` Walter Dnes
2012-03-13 19:47 ` Alan Mackenzie
2012-03-13 20:27 ` Canek Peláez Valdés
2012-03-13 20:54 ` Bruce Hill, Jr.
2012-03-13 21:22 ` Canek Peláez Valdés
2012-03-13 21:35 ` Bruce Hill, Jr.
2012-03-13 21:49 ` Canek Peláez Valdés
2012-03-13 22:36 ` Bruce Hill, Jr.
2012-03-13 22:46 ` Canek Peláez Valdés
2012-03-13 22:00 ` Alan McKinnon
2012-03-14 8:48 ` [gentoo-user] " Nicolas Sebrecht
2012-03-13 21:07 ` [gentoo-user] " Alan Mackenzie
2012-03-13 21:33 ` Neil Bothwick
2012-03-13 22:20 ` Alan Mackenzie
2012-03-13 22:38 ` Canek Peláez Valdés
2012-03-13 23:03 ` Alan Mackenzie
2012-03-14 0:07 ` Canek Peláez Valdés
2012-03-14 0:52 ` Pandu Poluan
2012-03-14 15:16 ` Alan Mackenzie
2012-03-14 16:12 ` Pandu Poluan
2012-03-14 21:01 ` Mike Edenfield
2012-03-14 17:22 ` Canek Peláez Valdés
2012-03-14 18:03 ` Pandu Poluan
2012-03-14 18:19 ` Canek Peláez Valdés
2012-03-14 19:24 ` Pandu Poluan
2012-03-14 19:29 ` Pandu Poluan
2012-03-14 19:45 ` Canek Peláez Valdés [this message]
2012-03-14 22:14 ` pk
2012-03-14 18:09 ` Michael Mol
2012-03-14 18:45 ` Canek Peláez Valdés
2012-03-14 19:41 ` Michael Mol
2012-03-14 19:53 ` Canek Peláez Valdés
2012-03-15 7:23 ` Dale
2012-03-14 20:16 ` pk
2012-03-17 4:20 ` Bruce Hill, Jr.
2012-03-17 4:27 ` Canek Peláez Valdés
2012-03-17 14:20 ` Alan McKinnon
2012-03-18 3:42 ` Bruce Hill, Jr.
2012-03-14 21:49 ` Walter Dnes
2012-03-14 15:20 ` Tanstaafl
2012-03-14 15:27 ` Michael Mol
2012-03-14 15:59 ` Pandu Poluan
2012-03-16 6:13 ` Joost Roeleveld
2012-03-16 8:46 ` Neil Bothwick
2012-03-16 14:44 ` Joost Roeleveld
2012-03-16 22:33 ` Neil Bothwick
2012-03-17 14:11 ` Alan McKinnon
2012-03-19 23:23 ` Neil Bothwick
2012-03-19 23:33 ` Alan McKinnon
2012-03-20 8:35 ` Neil Bothwick
2012-03-14 20:47 ` Mike Edenfield
2012-03-13 23:03 ` Neil Bothwick
2012-03-13 23:43 ` Alan Mackenzie
2012-03-14 9:32 ` Neil Bothwick
2012-03-14 17:56 ` Stroller
2012-03-14 19:59 ` Alan Mackenzie
2012-03-15 0:29 ` Walter Dnes
2012-03-17 13:24 ` Graham Murray
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADPrc80m12ryfcoWn5Zm+3sMpo3KTWkRCvuvOthLYwhkQPA2QQ@mail.gmail.com \
--to=caneko@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox