From owner-freebsd-current Sat Dec 28 14:48:39 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B201737B401 for ; Sat, 28 Dec 2002 14:48:38 -0800 (PST) Received: from w250.z064001178.sjc-ca.dsl.cnc.net (adsl-66.218.45.239.dslextreme.com [66.218.45.239]) by mx1.FreeBSD.org (Postfix) with SMTP id 0A22F43ED4 for ; Sat, 28 Dec 2002 14:48:38 -0800 (PST) (envelope-from jos@catnook.com) Received: (qmail 49138 invoked by uid 1000); 28 Dec 2002 22:48:53 -0000 Date: Sat, 28 Dec 2002 14:48:31 -0800 From: Jos Backus To: freebsd-current@FreeBSD.ORG Subject: Re: spec_getpages I/O read failure on md0 Message-ID: <20021228224853.GB13948@lizzy.catnook.com> Reply-To: jos@catnook.com Mail-Followup-To: freebsd-current@FreeBSD.ORG References: <20021228193431.GA13948@lizzy.catnook.com> <87915.1041104372@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87915.1041104372@critter.freebsd.dk> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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