summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2015-07-09 15:26:32 -0500
committerDavid Teigland <teigland@redhat.com>2015-07-09 15:26:32 -0500
commit074295245b3f57310a2688a4628f016b17ba2f5d (patch)
treebdde2bd753d20e64c834b66730893e13ca682983
parentcb14bbdbc93a129f0ef9cf37314691b7fe79050e (diff)
downloadlvm2-074295245b3f57310a2688a4628f016b17ba2f5d.tar.gz
pvcreate: remove recent warning message
log_warn was added recently because no known code used the given condition, but running pvcreate on an existing PV uses this case, and should not produce a warning.
-rw-r--r--lib/cache/lvmcache.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/cache/lvmcache.c b/lib/cache/lvmcache.c
index d44f9d4aa..9f5b83ae3 100644
--- a/lib/cache/lvmcache.c
+++ b/lib/cache/lvmcache.c
@@ -1856,14 +1856,12 @@ struct lvmcache_info *lvmcache_add(struct labeller *labeller, const char *pvid,
}
/*
- * FIXME: when could this ever happen?
- * If this does happen, identify when/why here, and
- * if not, remove this code.
+ * This happens when running pvcreate on an existing PV.
*/
if (strcmp(pvid_s, existing->dev->pvid)) {
- log_warn("Replacing dev %s pvid %s with dev %s pvid %s",
- dev_name(existing->dev), existing->dev->pvid,
- dev_name(dev), pvid_s);
+ log_verbose("Replacing dev %s pvid %s with dev %s pvid %s",
+ dev_name(existing->dev), existing->dev->pvid,
+ dev_name(dev), pvid_s);
}
/*