[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]