Date: Wed, 19 Feb 1997 10:02:25 +1030 (CST) From: Michael Smith <msmith@atrad.adelaide.edu.au> To: hackers@freebsd.org Subject: Small wd.c patch for big disks Message-ID: <199702182332.KAA07533@genesis.atrad.adelaide.edu.au>
next in thread | raw e-mail | index | archive | help
I've been running here with a couple of big (5G) IDE disks on a pair of systems for a few days now, and all seems most happy ('make release' etc runs fine), so the last loose end is fixing the capacity printed at probe time. I've committed the following patch to -current; any objections for this going into 2.2? *** wd.c.old Wed Feb 19 16:17:47 1997 --- wd.c Wed Feb 19 16:34:59 1997 *************** *** 415,421 **** "wd%d: %luMB (%lu sectors), %lu cyls, %lu heads, %lu S/T, %lu B/S\n", lunit, du->dk_dd.d_secperunit ! * du->dk_dd.d_secsize / (1024 * 1024), du->dk_dd.d_secperunit, du->dk_dd.d_ncylinders, du->dk_dd.d_ntracks, --- 415,421 ---- "wd%d: %luMB (%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_dd.d_secperunit, du->dk_dd.d_ncylinders, du->dk_dd.d_ntracks, -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702182332.KAA07533>