dont display disk geometry (cyls/heads/sectors) since it mostly lies these
authordlg <dlg@openbsd.org>
Sun, 24 Aug 2008 09:08:49 +0000 (09:08 +0000)
committerdlg <dlg@openbsd.org>
Sun, 24 Aug 2008 09:08:49 +0000 (09:08 +0000)
days. if you really want it still you can fetch it via disklabel(8).

ok krw@ deraadt@

sys/scsi/sd.c

index ceb613c..6b44d1c 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: sd.c,v 1.152 2008/08/01 01:44:20 dlg Exp $    */
+/*     $OpenBSD: sd.c,v 1.153 2008/08/24 09:08:49 dlg Exp $    */
 /*     $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */
 
 /*-
@@ -225,9 +225,9 @@ sdattach(struct device *parent, struct device *self, void *aux)
        printf("%s: ", sd->sc_dev.dv_xname);
        switch (result) {
        case SDGP_RESULT_OK:
-               printf("%lldMB, %lu cyl, %lu head, %lu sec, %lu bytes/sec, %lld sec total",
-                   dp->disksize / (1048576 / dp->blksize), dp->cyls,
-                   dp->heads, dp->sectors, dp->blksize, dp->disksize);
+               printf("%lldMB, %lu bytes/sec, %lld sec total",
+                   dp->disksize / (1048576 / dp->blksize), dp->blksize,
+                   dp->disksize);
                break;
 
        case SDGP_RESULT_OFFLINE: