[dm-devel] [Patch] trivial: error message when prereqs are unmet

Guido Guenther agx at sigxcpu.org
Thu Dec 16 16:29:30 UTC 2004


Hi,
this patch makes sure the user at least gets an error message when no
device mapper module was loaded (or the version doesn't match):

--- tmp/multipath-tools-0.4.0/multipath/main.c	2004-12-10 15:15:03.000000000 +0100
+++ multipath-tools-0.4.0/multipath/main.c	2004-12-16 17:31:04.000000000 +0100
@@ -1048,7 +1048,7 @@
 	extern int optind;
 
 	if (dm_prereq(DM_TARGET, 1, 0, 3)) {
-		dbg("device mapper prerequisites not met");
+		fprintf(stderr, "device mapper prerequisites not met.\n");
 		exit(1);
 	}
 

I'm still hunting a case where multipath exits with zero exit status,
without doing anything, but this is a different issue which I'm not able
to reproduce at the moment. Patch is against 0.4.0.
Cheers,
 -- Guido




More information about the dm-devel mailing list