diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2016-02-15 15:50:11 +0100 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2016-02-15 15:52:13 +0100 |
commit | 45be3c875f4605f4f950e8abfa12cf422526f5db (patch) | |
tree | 4d8d293f8c236db25aa56238e6d6c6a762222bbf | |
parent | 099d99975c25ba4f4c0593b778c95e7e185fd527 (diff) | |
download | lvm2-45be3c875f4605f4f950e8abfa12cf422526f5db.tar.gz |
pv: use pv->fmt to check for fake PVs, not pv->vg
pv->vg is not set yet during pvcreate processing. Use pv->fmt instead to
check for these fake PVs (all normal PVs have format defined, devices
which are not PVs don't have this set).
This fixes commit 0000db7f98a07aa31c5b1cf13938b612e7f2821b.
-rw-r--r-- | lib/metadata/pv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/metadata/pv.c b/lib/metadata/pv.c index d5820b5b2..1d6804514 100644 --- a/lib/metadata/pv.c +++ b/lib/metadata/pv.c @@ -213,7 +213,7 @@ int is_used_pv(const struct physical_volume *pv) struct lvmcache_info *info; uint32_t ext_flags; - if (!pv->vg) + if (!pv->fmt) return 0; if (!is_orphan(pv)) |