patch-2.3.19 linux/drivers/scsi/scsicam.c
Next file: linux/drivers/scsi/sd.c
Previous file: linux/drivers/scsi/scsi_syms.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Sat Oct 2 07:46:33 1999
- Orig file:
v2.3.18/linux/drivers/scsi/scsicam.c
- Orig date:
Tue Sep 7 12:14:06 1999
diff -u --recursive --new-file v2.3.18/linux/drivers/scsi/scsicam.c linux/drivers/scsi/scsicam.c
@@ -26,6 +26,7 @@
static int setsize(unsigned long capacity, unsigned int *cyls, unsigned int *hds,
unsigned int *secs);
+
/*
* Function : int scsicam_bios_param (Disk *disk, int dev, int *ip)
*
@@ -47,7 +48,12 @@
int size = disk->capacity;
unsigned long temp_cyl;
- if (!(bh = bread(MKDEV(MAJOR(dev), MINOR(dev) & ~0xf), 0, 1024)))
+ int block = 1024;
+
+ if(blksize_size[MAJOR(dev)])
+ block = blksize_size[MAJOR(dev)][MINOR(dev)];
+
+ if (!(bh = bread(MKDEV(MAJOR(dev), MINOR(dev) & ~0xf), 0, block)))
return -1;
/* try to infer mapping from partition table */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)