patch-2.4.15 linux/drivers/block/acsi.c
Next file: linux/drivers/block/blkpg.c
Previous file: linux/drivers/atm/suni.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Fri Nov 9 13:58:03 2001
- Orig file:
v2.4.14/linux/drivers/block/acsi.c
- Orig date:
Mon Nov 5 15:55:29 2001
diff -u --recursive --new-file v2.4.14/linux/drivers/block/acsi.c linux/drivers/block/acsi.c
@@ -1134,14 +1134,8 @@
put_user( 0, &((Scsi_Idlun *) arg)->host_unique_id );
return 0;
- case BLKGETSIZE: /* Return device size */
- return put_user(acsi_part[MINOR(inode->i_rdev)].nr_sects,
- (unsigned long *) arg);
-
- case BLKGETSIZE64: /* Return device size */
- return put_user((u64)acsi_part[MINOR(inode->i_rdev)].nr_sects << 9,
- (u64 *) arg);
-
+ case BLKGETSIZE:
+ case BLKGETSIZE64:
case BLKROSET:
case BLKROGET:
case BLKFLSBUF:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)