* [9fans] tiny fix for Eric's patch: 9pcfs on 4G IDE disks
@ 2001-02-06 14:27 nemo
0 siblings, 0 replies; only message in thread
From: nemo @ 2001-02-06 14:27 UTC (permalink / raw)
To: 9fans
If any of you plan to use >4G disks with the nice patch
made by Eric Dorman to run 9pcfs on IDE disks:
Replace in plan9pc/devata.c
long atasize( Device *d )
{
Drive *dp;
dp = d->private;
return (cp->cap * 512) / RBUFSIZE;
}
with
long atasize( Device *d )
{
Drive *dp;
dp = d->private;
return (dp->cap / RBUFSIZE * 512);
}
Otherwise, an overflow leaves the device w/
just 1k blocks or so.
After changing this, I'm running it smoothly
with the device "ch0fh2" (two 4G ide disks).
PS: Thanks Eric for your nice patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-02-06 14:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-06 14:27 [9fans] tiny fix for Eric's patch: 9pcfs on 4G IDE disks nemo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).