diff options
author | peadar <peadar@FreeBSD.org> | 2005-01-29 16:23:39 +0000 |
---|---|---|
committer | peadar <peadar@FreeBSD.org> | 2005-01-29 16:23:39 +0000 |
commit | ef213df2874121624a2425c460b4847e1a6a8461 (patch) | |
tree | e0bcb61510046769d944a62c5d3c867680011cc9 /sys/isofs/cd9660/cd9660_vfsops.c | |
parent | ba0e01d2d8cf49714c460620bee1439460aa9995 (diff) | |
download | FreeBSD-src-ef213df2874121624a2425c460b4847e1a6a8461.zip FreeBSD-src-ef213df2874121624a2425c460b4847e1a6a8461.tar.gz |
Unbreak a few filesystems for which vnode_create_vobject() wasn't being
called in "open", causing mmap() to fail.
Where possible, pass size of file to vnode_create_vobject() rather
than having it find it out the hard way via VOP_LOOKUP
Reviewed by: phk
Diffstat (limited to 'sys/isofs/cd9660/cd9660_vfsops.c')
-rw-r--r-- | sys/isofs/cd9660/cd9660_vfsops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c index 3d484c9..5830f03 100644 --- a/sys/isofs/cd9660/cd9660_vfsops.c +++ b/sys/isofs/cd9660/cd9660_vfsops.c @@ -616,7 +616,7 @@ cd9660_fhtovp(mp, fhp, vpp) return (ESTALE); } *vpp = nvp; - vnode_create_vobject(*vpp, 0, curthread); + vnode_create_vobject(*vpp, ip->i_size, curthread); return (0); } |