[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] LVM vs. /proc/partitions



Lars Kellogg-Stedman writes:
> I have a single logical volume configured on my system.  I'm running 2.4.2
> w/ lvm 0.9.1beta6, devfs, and SGI's xfs patches.  /proc/partition looks
> like this (I've only included the first four columns for brevity):
> 
>   9 0 8887040 md0
>   58 0 8884224 lvma
>   8 0 4444462 scsi/host0/bus0/target1/lun0/disc
>   8 16 4444462 scsi/host0/bus0/target2/lun0/disc
>   [...]
> 
> The problem here is obvious -- there isn't a device file, anywhere, called
> 'lvma'.  There is, on the other hand, /dev/vg0/vol0.  Would making the
> value displayed in /proc/partitions match the (devfs) device node require
> significant work?

The problem is not directly with LVM, but with the fact that Linus doesn't
like the way that LVM set the device name (I don't know why, really).  In
any case, there is code in the 2.2 LVM patch which lets you enable LVM_NAME
and sets the name, but it needs some code in genhd.c or similar to work.
It is totally a "clean code" issue and not a technical one.  Maybe one
of the Sistina folk will add the LVM_NAME part back as a patch fragment
for 2.4?

There was another patch floating around to re-work the device naming, but
I can't find it right now.  I'm not sure if anyone has made an effort to
get that patch in to Linus at all.  It was somewhat nicer than the LVM_NAME
code, as it allowed each block device to generate its own names (a good
idea, IMHO).

Cheers, Andreas
-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]