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:
parent
abbaeef096
commit
0000db7f98
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user