diff options
author | 1997-07-26 21:07:36 +0000 | |
---|---|---|
committer | 1997-07-26 21:07:36 +0000 | |
commit | c03692c77c1ae01a15df62c7df853dfb43b64ba0 (patch) | |
tree | 7c9e11688d501a0da37852fb7d2e38614d854b3e | |
parent | reserve SPIs for correct protos: ah and/or esp. (diff) | |
download | wireguard-openbsd-c03692c77c1ae01a15df62c7df853dfb43b64ba0.tar.xz wireguard-openbsd-c03692c77c1ae01a15df62c7df853dfb43b64ba0.zip |
Report total number of blocks for a scsi disk since on modern drives
total sectors > cyl * head * sec/head. Inspired by der Mouse
<mouse@rodents.montreal.qc.ca>
-rw-r--r-- | sys/scsi/sd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index fa818ef3baf..b76267252d1 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sd.c,v 1.23 1997/04/14 04:09:16 downsj Exp $ */ +/* $OpenBSD: sd.c,v 1.24 1997/07/26 21:07:36 millert Exp $ */ /* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */ /* @@ -223,9 +223,9 @@ sdattach(parent, self, aux) if (error || sd_get_parms(sd, SCSI_AUTOCONF) != 0) printf("drive offline\n"); else - printf("%ldMB, %d cyl, %d head, %d sec, %d bytes/sec\n", + printf("%ldMB, %d cyl, %d head, %d sec, %d bytes/sec, %ld sec total\n", dp->disksize / (1048576 / dp->blksize), dp->cyls, - dp->heads, dp->sectors, dp->blksize); + dp->heads, dp->sectors, dp->blksize, dp->disksize); } /* |