diff --git a/sys/adosfs/advfsops.c b/sys/adosfs/advfsops.c index 372ba4623042..e37f6d0e44f8 100644 --- a/sys/adosfs/advfsops.c +++ b/sys/adosfs/advfsops.c @@ -1,4 +1,4 @@ -/* $NetBSD: advfsops.c,v 1.48 2001/09/15 20:36:32 chs Exp $ */ +/* $NetBSD: advfsops.c,v 1.49 2001/09/30 18:47:48 chs Exp $ */ /* * Copyright (c) 1994 Christian E. Hopps @@ -78,6 +78,10 @@ struct simplelock adosfs_hashlock; struct pool adosfs_node_pool; +struct genfs_ops adosfs_genfsops = { + genfs_size, +}; + int adosfs_mount(mp, path, data, ndp, p) struct mount *mp; @@ -587,6 +591,7 @@ adosfs_vget(mp, an, vpp) ap->mtime.mins = adoswordn(bp, ap->nwords - 22); ap->mtime.ticks = adoswordn(bp, ap->nwords - 21); + genfs_node_init(vp, &adosfs_genfsops); *vpp = vp; brelse(bp); vp->v_size = ap->fsize; diff --git a/sys/filecorefs/filecore_vfsops.c b/sys/filecorefs/filecore_vfsops.c index dd50284de80d..669933c005cd 100644 --- a/sys/filecorefs/filecore_vfsops.c +++ b/sys/filecorefs/filecore_vfsops.c @@ -1,4 +1,4 @@ -/* $NetBSD: filecore_vfsops.c,v 1.16 2001/09/15 20:36:36 chs Exp $ */ +/* $NetBSD: filecore_vfsops.c,v 1.17 2001/09/30 18:50:25 chs Exp $ */ /*- * Copyright (c) 1998 Andrew McMurry @@ -87,6 +87,10 @@ struct vfsops filecore_vfsops = { filecore_vnodeopv_descs, }; +struct genfs_ops filecore_genfsops = { + genfs_size, +}; + /* * Called by vfs_mountroot when iso is going to be mounted as root. * @@ -667,6 +671,7 @@ filecore_vget(mp, ino, vpp) * XXX need generation number? */ + genfs_node_init(vp, &filecore_genfsops); vp->v_size = ip->i_size; *vpp = vp; return (0);