Date: Fri, 27 Jun 1997 01:33:19 +0200 (MET DST) From: abial@nask.pl To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: i386/3962: print disk internal cache size during probing Message-ID: <199706262333.BAA11652@korin.warman.org.pl> Resent-Message-ID: <199706262350.QAA20325@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 3962 >Category: i386 >Synopsis: print disk internal cache size during probing >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jun 26 16:50:01 PDT 1997 >Last-Modified: >Originator: Andrzej Bialecki >Organization: Research and Academic Network in Poland >Release: FreeBSD 3.0-CURRENT i386 >Environment: >Description: Sometimes you will want to know the size of the internal, built-in cache of the hard disk. At present, you would have to turn on the WDDEBUG in /sys/i386/isa/wd.c. It's at least inconvenient, as it requires the kernel to be rebuilt, and gives you too much information. Sometimes you can encounter a repaired disk with internal cache turned off (or bad). It's good to have a quick indication of this fact, especially if you buy the secondhand unit. This information is gathered during probing - we only have to display it. >How-To-Repeat: /sbin/reboot ;-) >Fix: This fix is against -current as of today. --- wd.c.orig Fri Jun 27 01:14:00 1997 +++ wd.c Fri Jun 27 01:18:10 1997 @@ -460,10 +460,11 @@ lunit, du->dk_dd.d_secperunit > 17 ? "BIOS" : "fake"); printf( -"wd%d: %luMB (%lu sectors), %lu cyls, %lu heads, %lu S/T, %lu B/S\n", +"wd%d: %luMB, %d kB cache (%lu sectors), %lu cyls, %lu heads, %lu S/T, %lu B/S\n", lunit, du->dk_dd.d_secperunit / ((1024L * 1024L) / du->dk_dd.d_secsize), + du->dk_params.wdp_buffersize>>1, du->dk_dd.d_secperunit, du->dk_dd.d_ncylinders, du->dk_dd.d_ntracks, >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706262333.BAA11652>