forked from pool/multipath-tools
44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
commit 96f43ccaf6bf5288bfb94344e5c9a60ff5354083
|
|
Author: Hannes Reinecke <hare@suse.de>
|
|
Date: Fri Dec 19 09:39:52 2008 +0100
|
|
|
|
Print out maps in dmparser.c
|
|
|
|
For debugging it's quite helpful to have the actual maps as
|
|
being sent to device-mapper printed out.
|
|
|
|
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
|
|
|
diff --git a/libmultipath/dmparser.c b/libmultipath/dmparser.c
|
|
index 0cef666..33b5cde 100644
|
|
--- a/libmultipath/dmparser.c
|
|
+++ b/libmultipath/dmparser.c
|
|
@@ -107,6 +107,9 @@ assemble_map (struct multipath * mp, char * params, int len)
|
|
return 1;
|
|
}
|
|
snprintf(p, 1, "\n");
|
|
+
|
|
+ condlog(3, "%s: assembled map [%s]\n", mp->alias, params);
|
|
+
|
|
return 0;
|
|
}
|
|
|
|
@@ -128,6 +131,8 @@ disassemble_map (vector pathvec, char * params, struct multipath * mpp)
|
|
|
|
p = params;
|
|
|
|
+ condlog(3, "%s: disassemble map [%s]\n", mpp->alias, params);
|
|
+
|
|
/*
|
|
* features
|
|
*/
|
|
@@ -354,6 +359,8 @@ disassemble_status (char * params, struct multipath * mpp)
|
|
|
|
p = params;
|
|
|
|
+ condlog(3, "%s: disassemble status [%s]\n", mpp->alias, params);
|
|
+
|
|
/*
|
|
* features
|
|
*/
|