summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2007-01-07 23:53:16 +0000
committerPav Lucistnik <pav@FreeBSD.org>2007-01-07 23:53:16 +0000
commit9f3eef13ca3bb485c363d8670fbb289b4fc67efc (patch)
treea90f09db5a325cd49696209894e82d756a60c483
parent155d1456f5529a9aa734f9336f78f54b287acd98 (diff)
Notes
-rw-r--r--sys/fs/udf/udf_vfsops.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/fs/udf/udf_vfsops.c b/sys/fs/udf/udf_vfsops.c
index d21301ea91f0..78247f352241 100644
--- a/sys/fs/udf/udf_vfsops.c
+++ b/sys/fs/udf/udf_vfsops.c
@@ -699,6 +699,8 @@ udf_fhtovp(struct mount *mp, struct fid *fhp, struct vnode **vpp)
{
struct ifid *ifhp;
struct vnode *nvp;
+ struct udf_node *np;
+ off_t fsize;
int error;
ifhp = (struct ifid *)fhp;
@@ -708,8 +710,11 @@ udf_fhtovp(struct mount *mp, struct fid *fhp, struct vnode **vpp)
return (error);
}
+ np = VTON(nvp);
+ fsize = le64toh(np->fentry->inf_len);
+
*vpp = nvp;
- vnode_create_vobject(*vpp, 0, curthread);
+ vnode_create_vobject(*vpp, fsize, curthread);
return (0);
}