summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Rockai <prockai@redhat.com>2013-11-17 22:35:16 +0100
committerPetr Rockai <prockai@redhat.com>2013-11-17 22:35:16 +0100
commitecc296311ff2a251aa254353b0a0fb3ee97be97c (patch)
tree996a421d38fce601d06ecaf494bfc88d3f157f25
parenta5bb1b48eea704c5970a719d2e77577dccd82bb9 (diff)
downloadlvm2-ecc296311ff2a251aa254353b0a0fb3ee97be97c.tar.gz
metadata: Do not throw an error in pv_label for missing PVs.
-rw-r--r--lib/metadata/pv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/metadata/pv.c b/lib/metadata/pv.c
index 1d608f2fe..349048ec1 100644
--- a/lib/metadata/pv.c
+++ b/lib/metadata/pv.c
@@ -355,7 +355,7 @@ struct label *pv_label(const struct physical_volume *pv)
struct lvmcache_info *info =
lvmcache_info_from_pvid((const char *)&pv->id.uuid, 0);
if (!info) {
- if (pv->vg) /* process_each_pv will create PVs that are dummy
+ if (pv->vg && pv->dev) /* process_each_pv will create PVs that are dummy
* and that have no label associated */
log_error(INTERNAL_ERROR "PV %s unexpectedly not in cache.",
dev_name(pv->dev));