From owner-freebsd-current Thu Aug 26 14: 7:59 1999 Delivered-To: freebsd-current@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id 4154F15C96; Thu, 26 Aug 1999 14:07:54 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.2) with ESMTP id XAA01163; Thu, 26 Aug 1999 23:04:45 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Christopher Masto Cc: grog@freebsd.org Cc: Matthew Dillon , "John W. DeBoskey" , julian@whistle.com, freebsd-current@freebsd.org Subject: Re: -current kernel problems (spec_getpages & vm_fault) In-reply-to: Your message of "Thu, 26 Aug 1999 17:01:52 EDT." <19990826170152.A8492@netmonger.net> Date: Thu, 26 Aug 1999 23:04:44 +0200 Message-ID: <1161.935701484@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <19990826170152.A8492@netmonger.net>, Christopher Masto writes: >On Thu, Aug 26, 1999 at 10:35:27PM +0200, Poul-Henning Kamp wrote: >> In message <199908262013.NAA24637@apollo.backplane.com>, Matthew Dillon writes: >> > That fixes a problem with ccd, but not the one causing John's failures. >> > >> > You will note that with John's failure's the I/O is properly page-aligned. >> > The fix to ccd deals with a misalignment problem. >> >> No it doesn't. johns failure is clearly the si_bsize* problem, the >> tell-tale sign is all the zeros in there. What John didn't tell >> us is if he uses vn, ccd or vinum (or something else!) > >Well, I just had much the same blowup with source from last night >and I'm using vinum, (and not vn or ccd). > >Recompiling now to see if it's still there. Ok, I havn't touched vinum (grog generally want to do this himself), the fix is probably something like this: Index: vinum.c =================================================================== RCS file: /home/ncvs/src/sys/dev/vinum/vinum.c,v retrieving revision 1.29 diff -u -r1.29 vinum.c --- vinum.c 1999/08/24 02:18:55 1.29 +++ vinum.c 1999/08/26 21:04:03 @@ -271,6 +271,9 @@ int devminor; /* minor number */ devminor = minor(dev); + dev->si_bsize_phys = DEV_BSIZE; + dev->si_bsize_best = BLKDEV_IOSIZE; + dev->si_bsize_max = MAXBSIZE; error = 0; /* First, decide what we're looking at */ switch (DEVTYPE(dev)) { -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." FreeBSD -- It will take a long time before progress goes too far! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message