summaryrefslogtreecommitdiffstats
path: root/sys/isofs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-01-24 21:51:19 +0000
committerphk <phk@FreeBSD.org>2005-01-24 21:51:19 +0000
commit09b996f480a43ad18cbd78c07730020d2f37d6f1 (patch)
treede9993e72275e8d7b239a022135f011d89328de4 /sys/isofs
parentba85bee696d6a33157d344e44d2daa40fb97d1ce (diff)
downloadFreeBSD-src-09b996f480a43ad18cbd78c07730020d2f37d6f1.zip
FreeBSD-src-09b996f480a43ad18cbd78c07730020d2f37d6f1.tar.gz
Create a vp->v_object in VFS_FHTOVP() if we want to be exportable
with NFS. We are moving responsibility for creating the vnode_pager object into the filesystems which own the vnode, and this is one of the places we have to cover. We call vnode_create_vobject() directly because we own the vnode. If we can get the size easily, pass it as an argument to save the call to VOP_GETATTR() in vnode_create_vobject()
Diffstat (limited to 'sys/isofs')
-rw-r--r--sys/isofs/cd9660/cd9660_vfsops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c
index 852a1a3..0c77a55 100644
--- a/sys/isofs/cd9660/cd9660_vfsops.c
+++ b/sys/isofs/cd9660/cd9660_vfsops.c
@@ -616,6 +616,7 @@ cd9660_fhtovp(mp, fhp, vpp)
return (ESTALE);
}
*vpp = nvp;
+ vnode_create_vobject(*vpp, 0, curthread);
return (0);
}
OpenPOWER on IntegriCloud