mirror of
https://github.com/opnsense/src.git
synced 2026-04-27 09:06:49 -04:00
Tell backing v_object the filesize right on it's creation.
MFC after: 1 week
This commit is contained in:
parent
155d1456f5
commit
9f3eef13ca
1 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue