Date: Sat, 28 Dec 2002 14:48:31 -0800 From: Jos Backus <jos@catnook.com> To: freebsd-current@FreeBSD.ORG Subject: Re: spec_getpages I/O read failure on md0 Message-ID: <20021228224853.GB13948@lizzy.catnook.com> In-Reply-To: <87915.1041104372@critter.freebsd.dk> References: <20021228193431.GA13948@lizzy.catnook.com> <87915.1041104372@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Dec 28, 2002 at 08:39:32PM +0100, phk@FreeBSD.ORG wrote:
> 22 is EINVAL, so likely cause is a bogus offset. Either unaligned or
> out of range. Unfortunately the above messages does not contain the
> offset of the I/O operation.
>
> Suggest you ammend one or more of the relevant printfs to also printout
> the offset at which the I/O operation was attempted.
You mean like this?
--- spec_vnops.c.orig Sat Dec 28 11:46:07 2002
+++ spec_vnops.c Sat Dec 28 14:46:46 2002
@@ -958,6 +958,9 @@
printf(
" nread: %d, reqpage: %d, pindex: %lu, pcount: %d\n",
nread, ap->a_reqpage, (u_long)m->pindex, pcount);
+ printf(
+ " offset: %llu\n",
+ offset);
/*
* Free the buffer header back to the swap buffer pool.
*/
--
Jos Backus _/ _/_/_/ Sunnyvale, CA
_/ _/ _/
_/ _/_/_/
_/ _/ _/ _/
jos at catnook.com _/_/ _/_/_/ require 'std/disclaimer'
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021228224853.GB13948>
