add glue required by new genfs_getpages().
This commit is contained in:
parent
9332449994
commit
781fe69288
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue