[linux-lvm] tools/lib/lvm_dir_cache.c -- still can't find devices
jay at lazy.accessus.net
Mon Dec 18 16:12:33 UTC 2000
Seems lvm_dir_cache.c still has some subtle problems in that it's not
quite proper in device detection.
In my case I'm using LVM with loopback devices for testing out,
etc. Basically it appears that LVM scans /proc/partitions, finds some
devices listed there, adds them to the cache and increments cache_size
variable. Next, if cache_size == 0 it will then scan /dev, unfortunately
my cache_size isn't == 0 at this point and /dev/loop devices are not
listed in /proc/partitions.
Any thoughts on how to fix this one? Possibly add an option for the tools
that specify you want to forcefully scan /dev or such? I'm thinking there
are times when this may be wanted since it's conceivable that some other
device or such may be used or become avail that would not get caught under
the other scanning cases.
Another thought, why even use the dircache scheme, is it vital elsewhere?
I'm thinking if I run pvcreate /dev/loop0 it should just use the
devicename I specified to setup whatever structs, etc. Am I missing
something? Then the vgscan/lvscan tools and such could default to
scanning all of dev, these tools imply to me that you want to scan your
entire system's devices for LVM volumes, etc.
More information about the linux-lvm