From: Benjamin Marzinski Date: Fri, 10 Feb 2012 18:16:50 +0000 (-0600) Subject: multipath: adjust messages X-Git-Tag: upstream/0.5.0~48 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e42e8071ccbdd45e1b194e1f0f28b0aa6eabe297;p=platform%2Fupstream%2Fmultipath-tools.git multipath: adjust messages Stop the rport_id messages from being dispalyed all the time, and add a message alerting users when multipath tries to setup a map and fails, or ends up removing the map. Signed-off-by: Benjamin Marzinski --- diff --git a/libmultipath/configure.c b/libmultipath/configure.c index 81faf57..001c1f0 100644 --- a/libmultipath/configure.c +++ b/libmultipath/configure.c @@ -577,6 +577,9 @@ coalesce_paths (struct vectors * vecs, vector newmp, char * refwwid, int force_r "for create/reload map", mpp->alias, r); if (r == DOMAP_FAIL) { + condlog(2, "%s: %s map", + mpp->alias, (mpp->action == ACT_CREATE)? + "ignoring" : "removing"); remove_map(mpp, vecs, 0); continue; } else /* if (r == DOMAP_RETRY) */ diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c index 736978c..16f786d 100644 --- a/libmultipath/discovery.c +++ b/libmultipath/discovery.c @@ -318,7 +318,7 @@ sysfs_set_scsi_tmo (struct multipath *mpp) vector_foreach_slot(mpp->paths, pp, i) { rport_id = find_rport_id(pp); if (rport_id < 0) { - condlog(0, "failed to find rport_id for target%d:%d:%d", pp->sg_id.host_no, pp->sg_id.channel, pp->sg_id.scsi_id); + condlog(3, "failed to find rport_id for target%d:%d:%d", pp->sg_id.host_no, pp->sg_id.channel, pp->sg_id.scsi_id); return 1; }