List Info

Thread: device-mapper ./WHATS_NEW lib/libdm-common.c




device-mapper ./WHATS_NEW lib/libdm-common.c
user name
2007-12-12 20:25:46
CVSROOT:	/cvs/dm
Module name:	device-mapper
Changes by:	agksourceware.org	2007-12-13 02:25:45

Modified files:
	.              : WHATS_NEW 
	lib            : libdm-common.c 

Log message:
	Report error when empty device name passed to readahead
functions.

Patches:
http:/
/sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/WHATS_NEW.d
iff?cvsroot=dm&r1=1.216&r2=1.217
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/lib/
libdm-common.c.diff?cvsroot=dm&r1=1.55&r2=1.56

--- device-mapper/WHATS_NEW	2007/12/05 22:45:56	1.216
+++ device-mapper/WHATS_NEW	2007/12/13 02:25:45	1.217
 -1,5
+1,6 
 Version 1.02.24 -
 ===================================
+  Report error when empty device name passed to readahead
functions.
   Fix minimum readahead debug message.
 
 Version 1.02.23 - 5th December 2007
--- device-mapper/lib/libdm-common.c	2007/12/05
18:57:34	1.55
+++ device-mapper/lib/libdm-common.c	2007/12/13
02:25:45	1.56
 -382,6
+382,11 
 	int fd;
 	long read_ahead_long;
 
+	if (!*dev_name) {
+		log_error("Empty device name passed to
BLKRAGET");
+		return 0;
+	}
+
 	if ((fd = _open_dev_node(dev_name)) < 0)
 		return_0;
 
 -406,6
+411,11 
 	int fd;
 	long read_ahead_long = (long) read_ahead;
 
+	if (!*dev_name) {
+		log_error("Empty device name passed to
BLKRAGET");
+		return 0;
+	}
+
 	if ((fd = _open_dev_node(dev_name)) < 0)
 		return_0;
 

--
dm-devel mailing list
dm-develredhat.com
http
s://www.redhat.com/mailman/listinfo/dm-devel

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )