summaryrefslogtreecommitdiffstats
path: root/sys/isofs/cd9660/cd9660_vfsops.c
diff options
context:
space:
mode:
authorpeadar <peadar@FreeBSD.org>2005-01-29 16:23:39 +0000
committerpeadar <peadar@FreeBSD.org>2005-01-29 16:23:39 +0000
commitef213df2874121624a2425c460b4847e1a6a8461 (patch)
treee0bcb61510046769d944a62c5d3c867680011cc9 /sys/isofs/cd9660/cd9660_vfsops.c
parentba0e01d2d8cf49714c460620bee1439460aa9995 (diff)
downloadFreeBSD-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.c2
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);
}
OpenPOWER on IntegriCloud