1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

pv: mark fake PVs as not used

Some of the PVs are not even orphan PVs - they're fake PVs - this can
happen if we're listing all devices with "pvs -a". Such PV must not
be marked as used.
This commit is contained in:
Peter Rajnoha 2016-02-15 14:46:31 +01:00
parent abbaeef096
commit 0000db7f98

View File

@ -213,6 +213,9 @@ int is_used_pv(const struct physical_volume *pv)
struct lvmcache_info *info;
uint32_t ext_flags;
if (!pv->vg)
return 0;
if (!is_orphan(pv))
return 1;