[linux-lvm] bug in lvm tools 0.8i, 0.8final
Heinz Mauelshagen
mauelsha at ez-darmstadt.telekom.de
Thu May 4 06:56:28 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.
Thanks for pointing this out.
>
> Either the duplicate mechanism should be taken out, or ignore symlinks
> and have things that check the cache dereference the symlinks...
>
Will check that...
> --
> Ryan Murray, (rmurray at cyberhqz.com, rmurray at stormix.com)
> Programmer, Stormix Technologies Inc.
> The opinions expressed here are my own.
Regards,
Heinz
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Systemmanagement TS T-Nova
Entwicklungszentrum Darmstadt
Heinz Mauelshagen Otto-Roehm-Strasse 71c
Senior Systems Engineer Postfach 10 05 41
64205 Darmstadt
mge at EZ-Darmstadt.Telekom.de Germany
+49 6151 886-425
FAX-386
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
More information about the linux-lvm
mailing list