patch-2.1.127 linux/drivers/cdrom/gscd.c

Next file: linux/drivers/cdrom/mcd.c
Previous file: linux/drivers/cdrom/cdu31a.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.126/linux/drivers/cdrom/gscd.c linux/drivers/cdrom/gscd.c
@@ -66,6 +66,7 @@
 #define gscd_port gscd /* for compatible parameter passing with "insmod" */
 #include "gscd.h"
 
+static int gscd_blocksizes[1] = {512};
 
 static int gscdPresent            = 0;
 
@@ -1060,6 +1061,7 @@
 	}
 
 	blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST;
+	blksize_size[MAJOR_NR] = gscd_blocksizes;
 	read_ahead[MAJOR_NR] = 4;
         
         disk_state = 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov