initialize the vnode's copy of the size in lfs_ialloc().

This commit is contained in:
chs 2001-10-14 19:06:16 +00:00
parent ce6aaa187a
commit a2e3e57398
1 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: lfs_alloc.c,v 1.50 2001/09/28 11:59:55 chs Exp $ */
/* $NetBSD: lfs_alloc.c,v 1.51 2001/10/14 19:06:16 chs Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@ -397,6 +397,7 @@ lfs_ialloc(struct lfs *fs, struct vnode *pvp, ino_t new_ino, int new_gen,
ip = VTOI(vp);
/* printf("lfs_ialloc[2]: ino %d vp %p\n", new_ino, vp);*/
uvm_vnp_setsize(vp, 0);
*vpp = vp;
#if 1
if(!(vp->v_flag & VDIROP)) {