mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
As part of fix that came with cf700151eba483aeedbf790fd66ce1c44e19c707, I forgot to add the check whether the result of stat was successful or not. This bug caused uninitialized buffer to be used for entries from .cache file which are no longer valid. This bug may have caused these uninitialized values to be used further, for example (see the unreal (2567,590944) representing major:minor pair): $ pvs /dev/abc: stat failed: No such file or directory Path /dev/abc no longer valid for device(2567,590944) PV VG Fmt Attr PSize PFree /dev/mapper/test lvm2 --- 104.00m 104.00m /dev/vda2 rhel lvm2 a-- 9.51g 0