From: Pandu Poluan <pandu@poluan.info>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Beta test Gentoo with mdev instead of udev; version 5 - failure :-(
Date: Thu, 15 Mar 2012 01:03:06 +0700 [thread overview]
Message-ID: <CAA2qdGU070RKy5McBrmJM==OzM7U5M+ZfRoi4MavEaEtTM0z8g@mail.gmail.com> (raw)
In-Reply-To: <CADPrc82VvqBu0S9_+sEXKeY73b1uYWN4yAju4MK4hekyJDf2xw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 5783 bytes --]
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.
> Bluetooth keyboards. Done, you made my system unbootable when I need
> to run fsck by hand after a power failure.
>
Put it under /bin
Done.
> Alan, the "vast majority" of Linux users right now are phone users.
> That was my initial point some mails ago. What *you* believe are
> "regular" users (people like you, or maybe even me), stopped being
> true a couple of years ago. The days of the Unix admin and workstation
> user are going the way of the dodo.
>
> At least, that's how I see it.
>
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).
> Again, think about phones. And tablets. And TVs. And
> [insert-here-cool-gadgets-from-the-future].
>
See above.
> No, it's not a matter of "that's the way forward". It's a matter of
> trying to solve the general problem. And since the general solution
> also solves the simple cases, I don't see a reason to waste my
> time/resources in a solution that in the end will not solve the
> general problem.
>
It will always be simpler -- and easier to debug -- if we separate the
hotplug handler (whose function is merely to create a dev node with the
proper permissions and (optionally) fire up a 'configurator') from the
configurator itself.
udev is going the kitchen sink route. mdev stays the lego brick path.
> Of course, as I have been saying from the beginning, this is
> OpenSource. Want to pour some effort into solving the simple cases
> that will not help all the community, and that it will only help in
> fact a minority, that's your prerogative (and Walt's, and Vapier's,
> and everyone else that don't like the "complex" but complete
> solution). Go nuts with it if you want.
>
The code is there; it's called mdev. But your emails are nothing short of
denigrating the code.
Talk about double standards :-)
> But please don't dismiss the general solution as "unnecessary" complex
> when it's not the case, and don't think that the "simple" setups
> (whatever that means) are the majority. Again, think phones and
> tablets: those *are* the majority.
>
Again, see above.
> Oh, for sure you can modify LVM2 to work under mdev. Also
> GNOME/KDE/XFCE, and everything under the sun. You have the source; you
> can do *anything* you want with it.
>
> But the effort wasted^^^^^Hpoured in that excercise will only serve a
> handful of users, and it will be never accepted upstream, because
> upstream is (rightfully) concerned with the general problem.
>
And as I have explained, based on what Alan had posted, LVM2 (for an
example) probably only needs certain device nodes to exist, while mdev's
default behavior is to not change anything unless explicitly told.
Solvable easily, IMO.
> I'm more interested in the general solution that will work not only
> for my current machines, but also for the ones I'm planning to have in
> the future. I'm dying to get a tablet where I can put GNOME 3 on it; I
> can bet you another beer that mdev will be not enough to handle that.
>
Unfortunately I don't have any Gentoo with GUI, so I can't take up on your
offer :-(
> 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.
> Right now Linux runs in my phone, my TV's, my routers and every
> computer I own. I have a couple of Windows installations, which I use
> once or twice every three months (I ported a PyGTK program to Windows
> last week, so I had to boot into Windows for the first time this
> year). I want Linux running on *everything*, and what is more: I don't
> want android in my handhelds, I want the full GNOME experience.
>
> To accomplish that we need udev; mdev it's just not enough.
>
Again, not necessarily. What exactly in Gnome requires udev? Is it merely
expecting some device nodes to exist while mdev's default behavior doesn't
do that? That would be simple to solve.
A bit more difficult is if Gnome communicates with udev via libudev; but
busybox devs have looked into the code of libudev, and found that the
functions provided by that lib is can be emulated relatively quickly [1].
But he then added that he won't do that, because that would make busybox
too complex.
[1] http://lists.busybox.net/pipermail/busybox/2011-September/076689.html
Again, it's a matter of perspective. We can work around the problem by
having the emulated libudev call mdev indirectly via an "mdev helper
program", thus not needing mdev to be a kitchen sink.
In fact, a post [2] slightly tangential to the thread of the above post,
did just that: provide a way for mdev to be able to link onto netlink
without having to make mdev a daemon.
[2] http://lists.busybox.net/pipermail/busybox/2011-September/076740.html
Rgds,
[-- Attachment #2: Type: text/html, Size: 6787 bytes --]
next prev parent reply other threads:[~2012-03-14 18:04 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 [this message]
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
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='CAA2qdGU070RKy5McBrmJM==OzM7U5M+ZfRoi4MavEaEtTM0z8g@mail.gmail.com' \
--to=pandu@poluan.info \
--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