[linux-lvm] bug in lvm tools 0.8i, 0.8final
rmurray at cyberhqz.com
Thu May 4 05:03:59 UTC 2000
I've just come across a bug in lvm tools when not using /proc/partitions.
lvm_add_dir_cache adds an entry, but checks for duplicates with
lvm_dir_cache_hit. The problem is simple:
lrwxrwxrwx 1 root root 9 May 8 1999 /dev/cdrom -> /dev/hdd
If you have that symbolic link around, it will show up in the cache as
/dev/cdrom, so if you try to pvcreate /dev/hdd, /dev/hdd never makes it
into the cache.
Either the duplicate mechanism should be taken out, or ignore symlinks
and have things that check the cache dereference the symlinks...
Ryan Murray, (rmurray at cyberhqz.com, rmurray at stormix.com)
Programmer, Stormix Technologies Inc.
The opinions expressed here are my own.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 232 bytes
Desc: not available
More information about the linux-lvm