|| ||Linus Torvalds <torvalds-AT-linux-foundation.org> |
|| ||Alan Cox <alan-AT-lxorguk.ukuu.org.uk> |
|| ||Re: [PATCH] Allow userspace block device implementation |
|| ||Tue, 28 Jul 2009 09:00:49 -0700 (PDT)|
|| ||Zachary Amsden <zamsden-AT-redhat.com>, Tejun Heo <tj-AT-kernel.org>,
Peter Zijlstra <peterz-AT-infradead.org>,
linux-kernel-AT-vger.kernel.org, axboe-AT-kernel.dk, hch-AT-infradead.org,
tytso-AT-mit.edu, miklos <miklos-AT-szeredi.hu>|
|| ||Article, Thread
On Tue, 28 Jul 2009, Alan Cox wrote:
> Use device mapper. Really we should shoot all the partition code in the
> kernel but the back compatibility is a bit tricky. We don't actually need
> the partition code any more.
Really, we should _not_ "shoot all the partition code in the kernel".
Quite the reverse.
You need the kernel to read the disk anyway, you're _much_ better off
having the kernel know about the partitioning etc. There are absolutely
zero upsides to making the bootup be dependent on yet another user land
tool, and then effectively forcing people to use initrd whether they want
it or not - just in order to find the real root.
The fact that some distributions already go too far, and use DM whether it
makes sense or not is only inconveniencing real users. It makes things
like data portability much harder. I have had real-life cases where I
wanted to move a disk from one machine to another, only to notice that the
crazy default for the distro I had used was to make it impossible, because
all the filesystems crossed disks.
I've since learnt to not use DM (and instead doing a very inconvenient
"partition everything by hand because the install tool doesn't allow for
any simple automated way to make a sane install"), and to just put /home
on one disk and / on the other, and then I can way more easily just move
my /home disk around, for example.
Yes, I realize that MD is convenient for a certain class of users, but a
_lot_ of distro people seem to totally miss all the inconveniences.
Possibly because they care more about "enterprise" customers than about
people who tinker.
to post comments)