9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Axel Belinfante <Axel.Belinfante@cs.utwente.nl>
To: 9fans@cse.psu.edu, "Russ Cox" <rsc@plan9.bell-labs.com>
Subject: Re: [9fans] dossrv: I/O error: dev 3 sector ..., read: 0, should be  4608
Date: Tue, 18 Jul 2000 17:18:47 +0200	[thread overview]
Message-ID: <200007181518.RAA00977@copernicus.cs.utwente.nl> (raw)
In-Reply-To: Your message of "Mon, 17 Jul 2000 17:03:35 -0400." <200007172103.RAA17759@smtp4.fas.harvard.edu>

> The first thing to do is see if the sector
> numbers make any sense.  First,
> multiply them by 512 and see if they're
> still 31-bit numbers.  If not, you need
> to change devio.c thusly:
> 
> g% diff /n/dump/2000/0601/sys/src/cmd/dossrv/devio.c devio.c
> 38c38
> < 	seek(xf->dev, xf->offset+addr*Sectorsize, 0);
> ---
> > 	seek(xf->dev, xf->offset+(vlong)addr*Sectorsize, 0);
> 57c57
> < 	seek(xf->dev, xf->offset+addr*Sectorsize, 0);
> ---
> > 	seek(xf->dev, xf->offset+(vlong)addr*Sectorsize, 0);
> g%

Without first checking the sector numbers (sorry! :-) I immediately
applied this change, with good success: it now seems to work ok.
Thanks!

Axel.



  reply	other threads:[~2000-07-18 15:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-17 21:03 Russ Cox
2000-07-18 15:18 ` Axel Belinfante [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-07-17 17:26 Axel Belinfante

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=200007181518.RAA00977@copernicus.cs.utwente.nl \
    --to=axel.belinfante@cs.utwente.nl \
    --cc=9fans@cse.psu.edu \
    --cc=rsc@plan9.bell-labs.com \
    /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).