From: Bodo Eggert <7eggert@gmx.de>
To: Tuomo Valkonen <tuomov@iki.fi>,
linux-kernel@vger.kernel.org,
Jan Engelhardt <jengelh@computergmbh.de>
Subject: Re: The ext3 way of journalling
Date: Tue, 08 Jan 2008 23:24:06 +0100 [thread overview]
Message-ID: <E1JCMre-0001B2-GY@be1.7eggert.dyndns.org> (raw)
In-Reply-To: <9JqKt-7Z5-9@gated-at.bofh.it>
Tuomo Valkonen <tuomov@iki.fi> wrote:
> On 2008-01-08, Jan Engelhardt <jengelh@computergmbh.de> wrote:
>> "Power users" may still
>> use the index= option of sound card modules and wire it up in
>> /etc/modprobe.d if they prefer.
>
> Another very cryptic directory whose contents say nothing to me.
> Configuration files should be self-documenting and editable,
> instead having to be created based on long documentation.
> The simple /etc/modules -- which at least Debian's stock kernels
> do not use -- qualifies, but few other files these days do.
>
>> You can guess my answer: udev will fix it.
>
> And break everything else, such as my symlinks, permissions, etc.
> I'm not going to learn its cryptic special-case config files for
> such trivial tasks as creating a fucking symlink or change the
> permissions of a file, for which exist general purpose methods:
> chmod, chown, ln -s.
Edit the start script, append your commands to create the links.
Or edit the correct file in /etc/udev/rules.d to include the links.
>> Well what do you expect of it? The kernel does not keep USB port <->
>> SCSI device mappings. Neither USB device <-> SCSI device mapping,
>> because not all USB ports or USB devices are mass-storage devices.
>> It just is not the kernel's job.
>
> Mapping everything to scsi nodes is brain damaged. The old hda, hdb,
> etc. mappings had somewhat clear correspondence between to physical
> evice addresses, and were easy to use without such complicated crap
> as udev. Of course, I'd prefer just device unique IDs being used,
> where possible... but I'm not going to suffer udev for that.
If you wire your devices to a named/numbered port, you can use one device
node for each port. Therefore it's sane to create hda to hdd, fd0 to fd3,
etc. But if you don't have a fixed mapping (USB), or if you'd have too
many possible (and mostly unused) ports for the available amount of devices
(SCSI), you can not create fixed numbers. Even for hde ..., you have no
native ordering, you can only tell the first controller from the rest.
When the SCSI naming was created, there were at most 256 SCSI devices of
each kind. Since each partition is a SCSI device, too, you had at most
16 disks of up to 15 partitions! This was later extended to 128 disks.
If you'd hardcode the controller, linux would have been unable to support
more than 8 SCSI controllers.
The result was the semi-random enumeration of the SCSI devices, and all
the hacks trying to work around that. (google for Joerg Schilling lkml)
Udev provides a clean way of naming the devices, using the static
information from the devices or the path.
I agree that the current udev documentation makes it hard to even find the
settings you'd like to change. That's because the documentation is meant
for developers, while the configuration is themed by the distribution.
The udev files itself are as simple as possible. Imagine them to be
<bloat>XML</bloat>, like the pile of HAL, DBUS and KDE automatically
mounting my disks using the wrong settings into the wrong directory
and forcing me to su in order to umount them! I temporarily beat that
beast, but the kill is still on the TODO list. Maybe as soon as I find
more^W usable^W documentation ...
>> May I remind you that the kernel also "loses" all your network interface
>> configuration, routes, firewalling rules and all sysctl settings at
>> boot (sic: reboot & powerdown).
>
> But traditional /dev does not lose permissions and symlinks. udev
> tmpfs shadow brain damage does. You have to illogically and
> inconveniently edit udev's cryptic config files instead, and yet
> it in no way stops /dev from being modified.
You aren't stopped from directly poking the memory and crashing the systems
either - if you are root. Or from deleting all nodes on a classic /dev.
Don't do that then.
>> Nonsense. The kernel notices udev about all available hardware and udev
>> will load modules. It has nothing to do with initrd, in fact, this very
>> step of loading a gazillion of modules is done after initrd has passed
>> control on to /sbin/init. At least, in opensuse.
>
> I've never seen a system that would do so. And I won't use udev.
No system can load modules that are not on initrd, and only needed-for-boot
modules are usually put on the initrd. The bulk of modules must be loaded
from the real root. This seems to work quite well (except not here because
I prefer to include all necessary drivers in the kernel.)
I've debugged hotplug, too, and I found it was a wrapper around a wrapper
around ... a script that would be supposed to load the required firmware,
except it did neither load it nor provide a way to find out why it didn't.
Each HOWTO mentioned a different directory to use, and a different filename.
I'd have settled for manually loading the firmware, but hacking the scripts
to pieces was finally easier than finding out how I was supposed to do that.
I did not need to install a firmware after this, therefore I don't know if
udev is better, but it CAN'T be worse.
next parent reply other threads:[~2008-01-08 22:24 UTC|newest]
Thread overview: 83+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <9JpbI-5yi-9@gated-at.bofh.it>
[not found] ` <9JpEP-6df-25@gated-at.bofh.it>
[not found] ` <9JpYc-6Eb-13@gated-at.bofh.it>
[not found] ` <9Jqhr-7l9-13@gated-at.bofh.it>
[not found] ` <9JqKt-7Z5-9@gated-at.bofh.it>
2008-01-08 22:24 ` Bodo Eggert [this message]
[not found] ` <9Jqri-7ym-17@gated-at.bofh.it>
[not found] ` <9JqUn-8bF-15@gated-at.bofh.it>
[not found] ` <9JvKj-85h-41@gated-at.bofh.it>
2008-01-11 16:22 ` Bodo Eggert
2008-01-11 18:39 ` Lennart Sorensen
2008-01-12 1:41 ` Bodo Eggert
2008-01-12 7:10 ` TimC
2008-01-12 10:08 ` Matthias Schniedermeyer
2008-01-08 16:07 Tuomo Valkonen
2008-01-08 16:35 ` Jan Engelhardt
2008-01-08 16:52 ` Tuomo Valkonen
2008-01-08 17:18 ` Jan Engelhardt
2008-01-08 17:48 ` Tuomo Valkonen
2008-01-08 18:20 ` Jan Engelhardt
2008-01-08 18:32 ` Diego Calleja
2008-01-08 18:42 ` Tuomo Valkonen
2008-01-08 16:39 ` John Stoffel
2008-01-08 16:59 ` Tuomo Valkonen
2008-01-08 21:49 ` John Stoffel
2008-01-09 13:39 ` Mathieu SEGAUD
2008-01-09 14:16 ` Tuomo Valkonen
2008-01-10 13:16 ` Theodore Tso
2008-01-10 13:41 ` Tuomo Valkonen
2008-01-12 15:06 ` Theodore Tso
2008-01-12 19:24 ` Andrey Vul
2008-01-13 22:13 ` Tuomo Valkonen
2008-01-13 22:23 ` Tuomo Valkonen
2008-01-13 23:11 ` Theodore Tso
2008-01-14 7:15 ` Tuomo Valkonen
2008-01-14 9:42 ` Bernd Petrovitsch
2008-01-14 9:48 ` Tuomo Valkonen
2008-01-14 9:57 ` Bernd Petrovitsch
2008-01-14 10:44 ` Christer Weinigel
2008-01-14 11:11 ` Tuomo Valkonen
2008-01-14 11:18 ` Bernd Petrovitsch
2008-01-14 11:27 ` Tuomo Valkonen
2008-01-14 10:06 ` Krzysztof Halasa
2008-01-14 11:03 ` Tuomo Valkonen
2008-01-14 12:46 ` Krzysztof Halasa
2008-01-14 16:18 ` Lennart Sorensen
2008-01-14 23:13 ` Alejandro Riveira Fernández
2008-01-15 16:31 ` Lennart Sorensen
2008-01-15 1:09 ` Krzysztof Halasa
2008-01-15 16:32 ` Lennart Sorensen
2008-01-14 16:10 ` me
2008-01-14 16:17 ` Tuomo Valkonen
2008-01-14 22:39 ` John Hubbard
2008-01-14 0:36 ` Bernd Eckenfels
2008-01-08 16:48 ` Andre Noll
2008-01-08 17:52 ` Tuomo Valkonen
2008-01-08 18:07 ` Masoud Sharbiani "مسعود شربیانی"
2008-01-08 18:16 ` Tuomo Valkonen
2008-01-08 18:22 ` Alan Cox
2008-01-08 18:11 ` Jan Engelhardt
2008-01-08 18:20 ` Tuomo Valkonen
2008-01-08 18:29 ` Andre Noll
2008-01-08 18:40 ` Tuomo Valkonen
2008-01-08 18:47 ` Alan Cox
2008-01-08 23:06 ` Matthias Schniedermeyer
2008-01-09 7:56 ` Tuomo Valkonen
2008-01-09 10:21 ` Matthias Schniedermeyer
2008-01-09 10:28 ` Matthias Schniedermeyer
2008-01-09 12:30 ` Theodore Tso
2008-01-10 11:30 ` Helge Hafting
2008-01-10 14:02 ` Lennart Sorensen
2008-01-10 14:41 ` Matthias Schniedermeyer
2008-01-09 2:05 ` Bernd Petrovitsch
2008-01-08 16:53 ` Andi Kleen
2008-01-08 17:01 ` Tuomo Valkonen
2008-01-08 18:15 ` Theodore Tso
2008-01-08 20:51 ` Andi Kleen
2008-01-08 21:03 ` Ondrej Zary
2008-01-08 21:57 ` Theodore Tso
2008-01-09 3:21 ` Kyle Moffett
2008-01-09 7:55 ` Valdis.Kletnieks
2008-01-09 12:49 ` Theodore Tso
2008-01-09 8:00 ` BuraphaLinux Server
2008-01-09 8:21 ` Valdis.Kletnieks
2008-01-09 9:54 ` Martin Schwidefsky
2008-01-09 12:25 ` Theodore Tso
2008-01-09 12:44 ` Michal Schmidt
2008-01-09 13:53 ` Martin Schwidefsky
2008-01-09 19:47 ` Martin Schwidefsky
2008-01-08 21:32 ` Pavel Machek
2008-02-08 4:16 ` Rogelio Serrano
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=E1JCMre-0001B2-GY@be1.7eggert.dyndns.org \
--to=7eggert@gmx.de \
--cc=jengelh@computergmbh.de \
--cc=linux-kernel@vger.kernel.org \
--cc=tuomov@iki.fi \
/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
all inboxes | Powered by JetHome®