kern/92243: sendfile(2) returns early on files > 4GB

Yar Tikhiy yar at comp.chem.msu.su
Tue Jan 31 06:37:02 PST 2006


On Tue, Jan 31, 2006 at 02:16:00PM +0000, Poul-Henning Kamp wrote:
> In message <200601311410.k0VEAASn057130 at freefall.freebsd.org>, Yar Tikhiy write
> s:
> 
> > Quite curiously, changing the type of the size argument to
> > vnode_create_vobject() from size_t to off_t seems to remedy the
> > problem in my case.  Let's ask Poul-Henning, who introduced the
> > kernel function a year ago, what he thinks about this -- adding him
> > to CC.
> 
> Oversight on my part.

My last concern is whether off_t is correct there, or it should be
vm_ooffset_t.  I.e., should the size argument represent a file size
or VM object size?  As a matter of fact, the size argument is
transformed into vm_ooffset_t inside vnode_create_vobject(), so we
can safely decide that vnode_create_vobject() is on the vnode side
of the vnode-VM interface.  Thanks!

-- 
Yar


More information about the freebsd-bugs mailing list