[dm-devel] [PATCH] 2.4: dm-ioctl.c: Always print info message when init'ing ioctl interface

Kevin Corry corryk at us.ibm.com
Tue Feb 4 15:40:02 UTC 2003


When initializing the ioctl interface, always print the info message, instead
of only when devfs is not present.

diff -Naur linux-2.4.20-dm-7/drivers/md/dm-ioctl.c linux-2.4.20-evms-1.9.0-pre3/drivers/md/dm-ioctl.c
--- linux-2.4.20-dm-7/drivers/md/dm-ioctl.c	Tue Feb  4 14:28:39 2003
+++ linux-2.4.20-evms-1.9.0-pre3/drivers/md/dm-ioctl.c	Tue Feb  4 14:26:44 2003
@@ -1123,7 +1123,7 @@
 	r = devfs_generate_path(_dm_misc.devfs_handle, rname + 3,
 				sizeof rname - 3);
 	if (r == -ENOSYS)
-		return 0;	/* devfs not present */
+		goto done;	/* devfs not present */
 
 	if (r < 0) {
 		DMERR("devfs_generate_path failed for control device");
@@ -1139,6 +1139,7 @@
 	}
 	devfs_auto_unregister(_dm_misc.devfs_handle, _ctl_handle);
 
+      done:
 	DMINFO("%d.%d.%d%s initialised: %s", DM_VERSION_MAJOR,
 	       DM_VERSION_MINOR, DM_VERSION_PATCHLEVEL, DM_VERSION_EXTRA,
 	       DM_DRIVER_EMAIL);




More information about the dm-devel mailing list