master - pvcreate: remove recent warning message
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=074295245b3f57310a2688a4628f016b17ba2f5d Commit: 074295245b3f57310a2688a4628f016b17ba2f5d Parent: cb14bbdbc93a129f0ef9cf37314691b7fe79050e Author: David Teigland <[email protected]> AuthorDate: Thu Jul 9 15:26:32 2015 -0500 Committer: David Teigland <[email protected]> CommitterDate: Thu Jul 9 15:26:32 2015 -0500
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.
--- lib/cache/lvmcache.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-)
lib/cache/lvmcache.c +4 -6
@@ -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); }/*