diff options
author | David Teigland <teigland@redhat.com> | 2015-07-09 15:26:32 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2015-07-09 15:26:32 -0500 |
commit | 074295245b3f57310a2688a4628f016b17ba2f5d (patch) | |
tree | bdde2bd753d20e64c834b66730893e13ca682983 | |
parent | cb14bbdbc93a129f0ef9cf37314691b7fe79050e (diff) | |
download | lvm2-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.c | 10 |
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); } /* |