From: nemo@gsyc.escet.urjc.es
To: 9fans@cse.psu.edu
Subject: [9fans] tiny fix for Eric's patch: 9pcfs on 4G IDE disks
Date: Tue, 6 Feb 2001 09:27:12 -0500 [thread overview]
Message-ID: <20010206081448.34C55199EA@mail.cse.psu.edu> (raw)
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
reply other threads:[~2001-02-06 14:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010206081448.34C55199EA@mail.cse.psu.edu \
--to=nemo@gsyc.escet.urjc.es \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).