From owner-freebsd-fs Fri Oct 2 16:37:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA23582 for freebsd-fs-outgoing; Fri, 2 Oct 1998 16:37:09 -0700 (PDT) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA23574 for ; Fri, 2 Oct 1998 16:37:04 -0700 (PDT) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.1a/8.9.1) with ESMTP id BAA08785; Sat, 3 Oct 1998 01:36:44 +0200 (CEST) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id BAA22519; Sat, 3 Oct 1998 01:36:43 +0200 (MET DST) Message-ID: <19981003013642.65347@follo.net> Date: Sat, 3 Oct 1998 01:36:42 +0200 From: Eivind Eklund To: Don Lewis , Terry Lambert Cc: freebsd-fs@FreeBSD.ORG Subject: Re: vm system interaction with nullfs References: <199810020933.CAA15261@salsa.gv.tsc.tdk.com> <19981002131152.26322@follo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1i In-Reply-To: <19981002131152.26322@follo.net>; from Eivind Eklund on Fri, Oct 02, 1998 at 01:11:52PM +0200 Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, Oct 02, 1998 at 01:11:52PM +0200, Eivind Eklund wrote: > On Fri, Oct 02, 1998 at 02:33:42AM -0700, Don Lewis wrote: > > } The general fix is to create a "getfinalvp". This would allow you > > } to page through an object, while allowing layers stacked on top to > > } dictate layout/content. > > > > I started down this path and created VOP_GETBACKINGVP. This part was > > pretty easy. The problem is that there are a zillion references to > > vp->v_object all over the place that would need to be fixed. > > "A zillion" == 63. Interesting. I've always wondered what exact > number it represents :-) > > Fixing these are trivial. I can do that in (much) less than an hour, > if there is general agreement that this is the way to go (I think it > sound reasonable). OK, it took a couple of hours. There is a set of patches to introduce VOP_GETBACKINGOBJECT() at http://www.freebsd.org/~eivind/ - these are absolutely non-tested (ie, they compile, but I have not even tried booting the kernel they produce). They are there only in case somebody want to see the scope changes required to do this. I'm not sure how much better off we're with this, however - there seems to be some cases that still might be impossible to get right, e.g. if we want to split a vm object over two vnodes (to have a file-by-file RAID-1). I'll have to think a bit more before I know which direction to pull. Eivind. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message