summaryrefslogtreecommitdiff
path: root/sys/scsi/sd_scsi.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2005-05-24 20:48:44 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2005-05-24 20:48:44 +0000
commite7c92f433d72c0f2c1e121ab26db2f070ca0ac83 (patch)
tree13c97d16238b4226e74a187c2d1bca1c52c48c9c /sys/scsi/sd_scsi.c
parent69ac191f273525b5dcc3e5b77e5d753c88fe21d1 (diff)
When processing the flex_geometry page, don't use a reduced_geometry
field to get the blocksize. ok marco@
Diffstat (limited to 'sys/scsi/sd_scsi.c')
-rw-r--r--sys/scsi/sd_scsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/sd_scsi.c b/sys/scsi/sd_scsi.c
index a29b4688eeb..74b46567254 100644
--- a/sys/scsi/sd_scsi.c
+++ b/sys/scsi/sd_scsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sd_scsi.c,v 1.10 2005/05/23 07:06:16 krw Exp $ */
+/* $OpenBSD: sd_scsi.c,v 1.11 2005/05/24 20:48:43 krw Exp $ */
/* $NetBSD: sd_scsi.c,v 1.8 1998/10/08 20:21:13 thorpej Exp $ */
/*-
@@ -215,7 +215,7 @@ sd_scsibus_get_parms(sd, dp, flags)
dp->blksize = _3btol(scsi_sense.blk_desc.blklen);
else
dp->blksize =
- _2btol(sense_pages->reduced_geometry.bytes_s);
+ _2btol(sense_pages->flex_geometry.bytes_s);
dp->sectors = sense_pages->flex_geometry.ph_sec_tr;
dp->disksize = dp->heads * dp->cyls * dp->sectors;
if (dp->disksize == 0)