[linux-lvm] loop devices

Mika Lansirinne Mika.Lansirinne at ecdl.hut.fi
Thu Dec 13 05:58:02 UTC 2001

I made a quick and dirty hack and changed "/proc/partitions" to 
"/etc/partitions" in tools/lib/lvm_dir_cache.c. Then I copied 
/proc/partitions to /etc and added a few lines for loop[0,1] to that file. 
That does the trick for me. I could get my job done (they were meant to be 
temporary anyway). So it seems, like I suggested earlier, that the 
lvm_dir_cache function just ignores loop devices.

As I see, In lvm_dir_cache.c, only partitions get checked. And only if that 
fails to add entries to the dir_cache list then will other devices be 
checked. There is a reason for that isn't there??

Oh yes, I use LVM tools from the package 1.0.1 + nonpatched 2.4.16 kernel.


On Wed, 12 Dec 2001 13:58:56 -0600,Tom Brown wrote:
> I too tried to make a pv on a loop device when I first downloaded lvm
> and ran into a stone wall. Stepping through the code that Mika pasted
> the debugging output from suggested it was not supported but I didn't
> know how to fix it.

Mika Länsirinne, System Manager / Research Engineer, M.Sc. (E.E.)
Helsinki University of Technology
Electronic Circuit Design Laboratory
P.O. Box 3000				Email: mla at ecdl.hut.fi
FIN-02015 HUT				Tel: +358 9 451 2277
Finland					Fax: +358 9 451 2269

More information about the linux-lvm mailing list