From: Brian Kress <kressb@fsc-usa.com>
To: linux-kernel@vger.kernel.org
Cc: Mauelshagen@Sistina.com
Subject: RFC: Modularize /proc/partitons (was Re: /proc/partitions for LVM)
Date: Wed, 22 Nov 2000 16:27:51 -0500 [thread overview]
Message-ID: <3A1C3A57.9768247B@fsc-usa.com> (raw)
In-Reply-To: <3A1C3523.A111CDD9@fsc-usa.com> <20001122221152.B4406@srv.t-online.de>
"Heinz J. Mauelshagen" wrote:
>
> On Wed, Nov 22, 2000 at 04:05:39PM -0500, Brian Kress wrote:
> > Question about /proc/partitions and LVM. LVM devices in
> > /proc/partitions currently show up as lvma, lvmb, etc, depending on
> > their device number. This breaks things like mount by filesystem
> > name. Back when LVM existed as a patch, I believe there was some
> > support in fs/partitions/check.c for showing the proper name for
> > the device (something like <vgname>/<lvname>).
>
> Yes.
> It actually was <vgname>/<lvname>.
>
> Linus didn't accept it though.
>
> The code is still available in case he changes his mind.
Yes, I can see that now looking through lvm.c. (LVM_HD_NAME)
I'm guessing why he didn't take it is the minor hack of adding a
function pointer to genhd.c as a special case just for LVM.
A general solution to this problem would be nice. The
big switch statement in disk_name in fs/paritions/check.c is kind
of ugly as it has generic code have to know things about specific
drivers.
How's this for an idea to generalize this. Put a function
pointer in the gendisk structure for a specific function to call
for disk_name for disks for that gendisk. That way, LVM gets its
<vgname>/<lvname>, IDE gets its two disks per major (special cased
right now), all the other special cases get what they need and future
drivers can call their devices whatever they like without touching
this file. Makes the whole thing more modular. Make a NULL for
this function default to the old <name>a, <name>b, etc.
What to people think about this? If this sounds reasonable
I can come up with a patch.
Brian Kress
kressb@fsc-usa.com
>
> > Are their any plans for something like this to be added
> > or is their a reason it was taken out?
> >
> >
> > BTW, 2.4.0-test11 is the first "perfect" kernel for me. It
> > finally has everything I use working correctly. (well, with a
> > small raid5 patch, anyway).
> >
> >
> > Brian Kress
> > kressb@fsc-usa.com
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > the body of a message to majordomo@vger.kernel.org
> > Please read the FAQ at http://www.tux.org/lkml/
>
> --
>
> Regards,
> Heinz -- The LVM guy --
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
> Heinz Mauelshagen Sistina Software Inc.
> Senior Consultant/Developer Bartningstr. 12
> 64289 Darmstadt
> Germany
> Mauelshagen@Sistina.com +49 6151 7103 86
> FAX 7103 96
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2000-11-22 21:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-22 21:05 /proc/partitions for LVM Brian Kress
2000-11-22 22:11 ` Heinz J. Mauelshagen
2000-11-22 21:27 ` Brian Kress [this message]
2000-11-22 23:53 ` RFC: Modularize /proc/partitons (was Re: /proc/partitions for LVM) Heinz J. Mauelshagen
2000-11-23 19:52 ` Brian Kress
2000-11-24 3:48 ` Peter Samuelson
2000-11-24 11:48 ` Heinz J. Mauelshagen
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=3A1C3A57.9768247B@fsc-usa.com \
--to=kressb@fsc-usa.com \
--cc=Mauelshagen@Sistina.com \
--cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.