[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [linux-lvm] loop devices
- From: Mika Lansirinne <Mika Lansirinne ecdl hut fi>
- To: linux-lvm sistina com
- Subject: Re: [linux-lvm] loop devices
- Date: Thu Dec 13 05:58:02 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.
-Mika
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 ecdl hut fi
FIN-02015 HUT Tel: +358 9 451 2277
Finland Fax: +358 9 451 2269
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]