summaryrefslogtreecommitdiff
path: root/sys/scsi/sd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-06-07 05:29:45 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-06-07 05:29:45 +0000
commite0d66f1005b177e1fbe63f0b4833c5557e3fb6ea (patch)
tree88e76c3cd2014d9c5c56003e79bee033fced261e /sys/scsi/sd.c
parentb6e5dab82a52cac1a2a08f9c1840d091cc9381ab (diff)
in OpenBSD as all old BSD unix, RAW_PART always starts at 0, so no
need for special case code; ok krw
Diffstat (limited to 'sys/scsi/sd.c')
-rw-r--r--sys/scsi/sd.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c
index f8e99c19be9..1d6eedf937f 100644
--- a/sys/scsi/sd.c
+++ b/sys/scsi/sd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sd.c,v 1.131 2007/06/06 17:15:14 deraadt Exp $ */
+/* $OpenBSD: sd.c,v 1.132 2007/06/07 05:29:44 deraadt Exp $ */
/* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */
/*-
@@ -597,7 +597,7 @@ sdstart(void *v)
struct scsi_rw_16 cmd_16;
struct scsi_rw cmd_small;
struct scsi_generic *cmdp;
- int64_t blkno;
+ daddr64_t blkno;
int nblks, cmdlen, error;
struct partition *p;
@@ -649,10 +649,8 @@ sdstart(void *v)
*/
blkno =
bp->b_blkno / (sd->sc_dk.dk_label->d_secsize / DEV_BSIZE);
- if (DISKPART(bp->b_dev) != RAW_PART) {
- p = &sd->sc_dk.dk_label->d_partitions[DISKPART(bp->b_dev)];
- blkno += DL_GETPOFFSET(p);
- }
+ p = &sd->sc_dk.dk_label->d_partitions[DISKPART(bp->b_dev)];
+ blkno += DL_GETPOFFSET(p);
nblks = howmany(bp->b_bcount, sd->sc_dk.dk_label->d_secsize);
/*