diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2008-05-24 18:53:47 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2008-05-24 18:53:47 +0000 |
commit | 49a507fbe9895f9d7339d9e4f70a773072da0d09 (patch) | |
tree | 8359473244269288c7fd2edf99db53390f24f235 | |
parent | 2cac6d52616055daf2b1d4fa3bbe6b9642777676 (diff) |
SDEV_UMASS devices skip the mode page dance to set blksize. So initialize
blksize to 0 to avoid confusing garbage values with useful info.
Noticed by jolan@.
-rw-r--r-- | sys/scsi/sd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index 471acce7187..5ac4bb06e72 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sd.c,v 1.143 2008/05/09 06:19:33 krw Exp $ */ +/* $OpenBSD: sd.c,v 1.144 2008/05/24 18:53:46 krw Exp $ */ /* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */ /*- @@ -1346,7 +1346,7 @@ sd_get_parms(struct sd_softc *sd, struct disk_parms *dp, int flags) struct page_rigid_geometry *rigid; struct page_flex_geometry *flex; struct page_reduced_geometry *reduced; - u_int32_t heads = 0, sectors = 0, cyls = 0, blksize, ssblksize; + u_int32_t heads = 0, sectors = 0, cyls = 0, blksize = 0, ssblksize; u_int16_t rpm = 0; dp->disksize = scsi_size(sd->sc_link, flags, &ssblksize); |