diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-05-02 16:48:22 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-05-02 16:48:22 +0000 |
commit | a907ac920f7b479ad380242aa5f1a07055bec482 (patch) | |
tree | a6a1d1a40930b06bd809dca244497b108c4275f8 /sys/scsi | |
parent | 6fe5792a2b51fdb9c587788dc50d42f075b27f36 (diff) |
Set blksize to DEV_BSIZE, not 512.
Diffstat (limited to 'sys/scsi')
-rw-r--r-- | sys/scsi/sd.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index ebbe07bddb7..acc97f5ae86 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sd.c,v 1.28 1998/04/25 00:38:13 millert Exp $ */ +/* $OpenBSD: sd.c,v 1.29 1998/05/02 16:48:21 millert Exp $ */ /* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */ /* @@ -918,7 +918,7 @@ sd_get_optparms(sd, flags, dp) u_long sectors; int error; - dp->blksize = 512; + dp->blksize = DEV_BSIZE; if ((sectors = scsi_size(sd->sc_link, flags)) == 0) return 1; @@ -942,7 +942,7 @@ sd_get_optparms(sd, flags, dp) dp->blksize = _3btol(scsi_sense.blk_desc.blklen); if (dp->blksize == 0) - dp->blksize = 512; + dp->blksize = DEV_BSIZE; /* * Create a pseudo-geometry. @@ -999,7 +999,7 @@ sd_get_parms(sd, flags) goto fake_it; if (dp->blksize == 0) - dp->blksize = 512; + dp->blksize = DEV_BSIZE; sectors = scsi_size(sd->sc_link, flags); dp->disksize = sectors; @@ -1019,7 +1019,7 @@ sd_get_parms(sd, flags) goto fake_it; if (dp->blksize == 0) - dp->blksize = 512; + dp->blksize = DEV_BSIZE; return 0; } @@ -1043,7 +1043,7 @@ fake_it: dp->heads = 64; dp->sectors = 32; dp->cyls = sectors / (64 * 32); - dp->blksize = 512; + dp->blksize = DEV_BSIZE; dp->disksize = sectors; return 0; } |