patch-2.2.3 linux/drivers/scsi/sr_ioctl.c

Next file: linux/drivers/scsi/st.c
Previous file: linux/drivers/scsi/sd_ioctl.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.2/linux/drivers/scsi/sr_ioctl.c linux/drivers/scsi/sr_ioctl.c
@@ -872,6 +872,11 @@
 	read_ahead[MAJOR(cdi->dev)] = arg;
 	return 0;
 
+    case BLKSSZGET:
+	/* Block size of media */
+	return put_user(blksize_size[MAJOR(cdi->dev)][MINOR(cdi->dev)],
+		(int *)arg);
+
     RO_IOCTLS(cdi->dev,arg);
 
     case BLKFLSBUF:

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)