summaryrefslogtreecommitdiff
path: root/sys/scsi/sd.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-07-26 21:07:37 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-07-26 21:07:37 +0000
commite9709f8c02ed976ab8423be15562d95d75fa86db (patch)
tree97b6c74d8b616fabe963a97950285896dc94a7bd /sys/scsi/sd.c
parent7d5f399b683c9ed01619ad69554ad89ec341c017 (diff)
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>
Diffstat (limited to 'sys/scsi/sd.c')
-rw-r--r--sys/scsi/sd.c6
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);
}
/*