From owner-freebsd-hackers Tue Feb 16 18:24:58 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp03.primenet.com (smtp03.primenet.com [206.165.6.133]) by hub.freebsd.org (Postfix) with ESMTP id 346B6113E5 for ; Tue, 16 Feb 1999 18:24:06 -0800 (PST) (envelope-from tlambert@usr08.primenet.com) Received: (from daemon@localhost) by smtp03.primenet.com (8.8.8/8.8.8) id TAA28801; Tue, 16 Feb 1999 19:23:56 -0700 (MST) Received: from usr08.primenet.com(206.165.6.208) via SMTP by smtp03.primenet.com, id smtpd028776; Tue Feb 16 19:23:52 1999 Received: (from tlambert@localhost) by usr08.primenet.com (8.8.5/8.8.5) id TAA16780; Tue, 16 Feb 1999 19:23:51 -0700 (MST) From: Terry Lambert Message-Id: <199902170223.TAA16780@usr08.primenet.com> Subject: Re: Memory-Based VFS Question To: luoqi@watermarkgroup.com (Luoqi Chen) Date: Wed, 17 Feb 1999 02:23:51 +0000 (GMT) Cc: amarks@sarnoff.com, freebsd-hackers@FreeBSD.ORG In-Reply-To: <199902162144.QAA23030@lor.watermarkgroup.com> from "Luoqi Chen" at Feb 16, 99 04:44:28 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I don't think VOP_MMAP is used any where, you need to implement > VOP_GETPAGES and VOP_PUTPAGES instead. The simplest way is to make them > wrapper functions calling vnode_pager_generic_{get,put}pages, take a look > at vm/vnode_pager.c You can't do that for something backed by pages not from a vnode. If the MFS was on a memory device (like the standard MFS), you could do this, but not with an MFS that can auto-resize-with-high-watermark. He will have to implement a non-default VOP_{GET|PUT}PAGES(). This is what is so insidious about having a default vfsops; if the generic ones would work, it'd be working already, via inheritance, but the fact that inheritance is taking place at all is not clear based on the new semantics failing-to-default instead of them failing-to-notimp. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message