From c03692c77c1ae01a15df62c7df853dfb43b64ba0 Mon Sep 17 00:00:00 2001 From: millert Date: Sat, 26 Jul 1997 21:07:36 +0000 Subject: Report total number of blocks for a scsi disk since on modern drives total sectors > cyl * head * sec/head. Inspired by der Mouse --- sys/scsi/sd.c | 6 +++--- 1 file 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); } /* -- cgit v1.2.3-59-g8ed1b