From owner-freebsd-hackers Tue Feb 16 15:16:54 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp01.primenet.com (smtp01.primenet.com [206.165.6.131]) by hub.freebsd.org (Postfix) with ESMTP id C01B710F23 for ; Tue, 16 Feb 1999 15:16:46 -0800 (PST) (envelope-from tlambert@usr08.primenet.com) Received: (from daemon@localhost) by smtp01.primenet.com (8.8.8/8.8.8) id QAA08825; Tue, 16 Feb 1999 16:16:39 -0700 (MST) Received: from usr08.primenet.com(206.165.6.208) via SMTP by smtp01.primenet.com, id smtpd008746; Tue Feb 16 16:16:37 1999 Received: (from tlambert@localhost) by usr08.primenet.com (8.8.5/8.8.5) id QAA09873; Tue, 16 Feb 1999 16:16:19 -0700 (MST) From: Terry Lambert Message-Id: <199902162316.QAA09873@usr08.primenet.com> Subject: Re: Memory-Based VFS Question To: amarks@sarnoff.com Date: Tue, 16 Feb 1999 23:16:04 +0000 (GMT) Cc: freebsd-hackers@FreeBSD.ORG In-Reply-To: <36C9E1A8.40F6780B@sarnoff.com> from "AARON MARKS" at Feb 16, 99 04:22:48 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'm implementing a memory-based VFS on 3.0-19981123. I have almost all > of the VOP_* functions implemented but I ran into a slight problem with > file copies. If I copy a file from and to a dir mounted on my fs, the > kernel calls mmap to map the data in (I guess it would call vop_read if > the data was too large). My problem is that the kernel never calls my > vop_mmap (not even sure if it's supposed to) so I never get the > opportunity to copy the data from my fs to kernel space so the data in > the io vector pased to me at vop_write is invalid. Any ideas? It will use VOP_GETPAGES/VOP_PUTPAGES. 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