Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Feb 1999 21:34:40 +0000 (GMT)
From:      Doug Rabson <dfr@nlsystems.com>
To:        AARON MARKS <amarks@sarnoff.com>
Cc:        freebsd-hackers@FreeBSD.ORG, Matthew Dillon <dillon@apollo.backplane.com>
Subject:   Re: Memory-Based VFS Question
Message-ID:  <Pine.BSF.4.05.9902182132480.61913-100000@herring.nlsystems.com>
In-Reply-To: <36CC56CA.BCBF6A4B@sarnoff.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9902182132480.61913-100000>