summaryrefslogtreecommitdiffstats
path: root/sys/fs/ntfs
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/ntfs
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/ntfs')
-rw-r--r--sys/fs/ntfs/ntfs_vfsops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/ntfs/ntfs_vfsops.c b/sys/fs/ntfs/ntfs_vfsops.c
index c602220..d7ff5e2 100644
--- a/sys/fs/ntfs/ntfs_vfsops.c
+++ b/sys/fs/ntfs/ntfs_vfsops.c
@@ -608,7 +608,7 @@ ntfs_fhtovp(
/* XXX as unlink/rmdir/mkdir/creat are not currently possible
* with NTFS, we don't need to check anything else for now */
*vpp = nvp;
-
+ vnode_create_vobject(nvp, VTOF(nvp)->f_size, curthread);
return (0);
}
OpenPOWER on IntegriCloud