summaryrefslogtreecommitdiffstats
path: root/sys/fs/udf
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/fs/udf
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/fs/udf')
-rw-r--r--sys/fs/udf/udf_vfsops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/fs/udf/udf_vfsops.c b/sys/fs/udf/udf_vfsops.c
index 6a815af..d39f0cc 100644
--- a/sys/fs/udf/udf_vfsops.c
+++ b/sys/fs/udf/udf_vfsops.c
@@ -705,6 +705,7 @@ udf_fhtovp(struct mount *mp, struct fid *fhp, struct vnode **vpp)
}
*vpp = nvp;
+ vnode_create_vobject(*vpp, 0, curthread);
return (0);
}
OpenPOWER on IntegriCloud