From owner-freebsd-hackers Thu Feb 18 13:38: 3 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id CD2F5119FF for ; Thu, 18 Feb 1999 13:35:52 -0800 (PST) (envelope-from dfr@nlsystems.com) Received: from localhost (dfr@localhost) by herring.nlsystems.com (8.9.2/8.8.8) with ESMTP id VAA65515; Thu, 18 Feb 1999 21:35:56 GMT (envelope-from dfr@nlsystems.com) Date: Thu, 18 Feb 1999 21:34:40 +0000 (GMT) From: Doug Rabson To: AARON MARKS Cc: freebsd-hackers@FreeBSD.ORG, Matthew Dillon Subject: Re: Memory-Based VFS Question In-Reply-To: <36CC56CA.BCBF6A4B@sarnoff.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 18 Feb 1999, AARON MARKS wrote: > Doug Rabson wrote: > > > > > I have another question, though: I mapped my _{get,put}pages functions > > > (they're empty, just print to console and return 0) to the vop functions > > > but when I do a system file copy (via cp), the OS never calls my > > > {get,put}pages functions. > > > > Strange. Are they in the table of vnode ops for your filesystem? Try > > setting a breakpoint in the vm code where it is about to call VOP_GETPAGES > > and single step to see where it goes. > > Yes, they are in the vnodeopv_entry_desc structure as vop_getpages_desc > and vop_putpages_desc. I stepped through the code and it goes to > ufs_readwrite.c:ffs_getpages(). I also set breakpoints in my > _getpages(), _putpages() functions and they never get called. It can only get to ffs_getpages if the vnode is a UFS vnode (otherwise something really strange is going on). Are you sure that the vnode which was being paged was one of yours? -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message