Home | History | Annotate | Line # | Download | only in puffs
puffs_vfsops.c revision 1.24
      1 /*	$NetBSD: puffs_vfsops.c,v 1.24 2007/01/23 18:27:50 pooka Exp $	*/
      2 
      3 /*
      4  * Copyright (c) 2005, 2006  Antti Kantee.  All Rights Reserved.
      5  *
      6  * Development of this software was supported by the
      7  * Google Summer of Code program and the Ulla Tuominen Foundation.
      8  * The Google SoC project was mentored by Bill Studenmund.
      9  *
     10  * Redistribution and use in source and binary forms, with or without
     11  * modification, are permitted provided that the following conditions
     12  * are met:
     13  * 1. Redistributions of source code must retain the above copyright
     14  *    notice, this list of conditions and the following disclaimer.
     15  * 2. Redistributions in binary form must reproduce the above copyright
     16  *    notice, this list of conditions and the following disclaimer in the
     17  *    documentation and/or other materials provided with the distribution.
     18  * 3. The name of the company nor the name of the author may be used to
     19  *    endorse or promote products derived from this software without specific
     20  *    prior written permission.
     21  *
     22  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
     23  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
     24  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
     25  * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
     26  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     27  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
     28  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     29  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     30  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     31  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     32  * SUCH DAMAGE.
     33  */
     34 
     35 #include <sys/cdefs.h>
     36 __KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.24 2007/01/23 18:27:50 pooka Exp $");
     37 
     38 #include <sys/param.h>
     39 #include <sys/mount.h>
     40 #include <sys/malloc.h>
     41 #include <sys/extattr.h>
     42 #include <sys/queue.h>
     43 #include <sys/vnode.h>
     44 #include <sys/dirent.h>
     45 #include <sys/kauth.h>
     46 
     47 #include <lib/libkern/libkern.h>
     48 
     49 #include <fs/puffs/puffs_msgif.h>
     50 #include <fs/puffs/puffs_sys.h>
     51 
     52 VFS_PROTOS(puffs);
     53 
     54 MALLOC_DEFINE(M_PUFFS, "puffs", "pass-to-userspace file system structures");
     55 
     56 #ifndef PUFFS_PNODEBUCKETS
     57 #define PUFFS_PNODEBUCKETS 256
     58 #endif
     59 #ifndef PUFFS_MAXPNODEBUCKETS
     60 #define PUFFS_MAXPNODEBUCKETS 65536
     61 #endif
     62 int puffs_pnodebuckets = PUFFS_PNODEBUCKETS;
     63 
     64 int
     65 puffs_mount(struct mount *mp, const char *path, void *data,
     66 	    struct nameidata *ndp, struct lwp *l)
     67 {
     68 	struct puffs_mount *pmp = NULL;
     69 	struct puffs_args *args;
     70 	char namebuf[PUFFSNAMESIZE+sizeof(PUFFS_NAMEPREFIX)+1]; /* spooky */
     71 	int error = 0, i;
     72 
     73 	if (mp->mnt_flag & MNT_GETARGS) {
     74 		pmp = MPTOPUFFSMP(mp);
     75 		return copyout(&pmp->pmp_args, data, sizeof(struct puffs_args));
     76 	}
     77 
     78 	/* update is not supported currently */
     79 	if (mp->mnt_flag & MNT_UPDATE)
     80 		return EOPNOTSUPP;
     81 
     82 	/*
     83 	 * We need the file system name
     84 	 */
     85 	if (!data)
     86 		return EINVAL;
     87 
     88 	MALLOC(args, struct puffs_args *, sizeof(struct puffs_args),
     89 	    M_PUFFS, M_WAITOK);
     90 
     91 	error = copyin(data, args, sizeof(struct puffs_args));
     92 	if (error)
     93 		goto out;
     94 
     95 	/* devel phase */
     96 	if (args->pa_vers != (PUFFSVERSION | PUFFSDEVELVERS)) {
     97 		printf("puffs_mount: development version mismatch\n");
     98 		error = EINVAL;
     99 		goto out;
    100 	}
    101 
    102 	/* nuke spy bits */
    103 	args->pa_flags &= PUFFS_KFLAG_MASK;
    104 
    105 	/* build real name */
    106 	(void)strlcpy(namebuf, PUFFS_NAMEPREFIX, sizeof(namebuf));
    107 	(void)strlcat(namebuf, args->pa_name, sizeof(namebuf));
    108 
    109 	/* inform user server if it got the max request size it wanted */
    110 	if (args->pa_maxreqlen == 0 || args->pa_maxreqlen > PUFFS_REQ_MAXSIZE)
    111 		args->pa_maxreqlen = PUFFS_REQ_MAXSIZE;
    112 	else if (args->pa_maxreqlen < PUFFS_REQSTRUCT_MAX)
    113 		args->pa_maxreqlen = PUFFS_REQSTRUCT_MAX;
    114 	(void)strlcpy(args->pa_name, namebuf, sizeof(args->pa_name));
    115 
    116 	error = copyout(args, data, sizeof(struct puffs_args));
    117 	if (error)
    118 		goto out;
    119 
    120 	error = set_statvfs_info(path, UIO_USERSPACE, namebuf,
    121 	    UIO_SYSSPACE, mp, l);
    122 	if (error)
    123 		goto out;
    124 	mp->mnt_stat.f_iosize = DEV_BSIZE;
    125 
    126 	MALLOC(pmp, struct puffs_mount *, sizeof(struct puffs_mount),
    127 	    M_PUFFS, M_WAITOK | M_ZERO);
    128 
    129 	mp->mnt_fs_bshift = DEV_BSHIFT;
    130 	mp->mnt_dev_bshift = DEV_BSHIFT;
    131 	mp->mnt_flag &= ~MNT_LOCAL; /* we don't really know, so ... */
    132 	mp->mnt_data = pmp;
    133 
    134 	pmp->pmp_status = PUFFSTAT_MOUNTING;
    135 	pmp->pmp_nextreq = 0;
    136 	pmp->pmp_mp = mp;
    137 	pmp->pmp_req_maxsize = args->pa_maxreqlen;
    138 	pmp->pmp_args = *args;
    139 
    140 	/* puffs_node hash buckets */
    141 	pmp->pmp_npnodehash = puffs_pnodebuckets;
    142 	if (pmp->pmp_npnodehash < 1)
    143 		pmp->pmp_npnodehash = 1;
    144 	if (pmp->pmp_npnodehash > PUFFS_MAXPNODEBUCKETS)
    145 		pmp->pmp_npnodehash = PUFFS_MAXPNODEBUCKETS;
    146 	pmp->pmp_pnodehash = malloc
    147 	    (sizeof(struct puffs_pnode_hashlist *) * pmp->pmp_npnodehash,
    148 	    M_PUFFS, M_WAITOK);
    149 	for (i = 0; i < pmp->pmp_npnodehash; i++)
    150 		LIST_INIT(&pmp->pmp_pnodehash[i]);
    151 
    152 	/*
    153 	 * Inform the fileops processing code that we have a mountpoint.
    154 	 * If it doesn't know about anyone with our pid/fd having the
    155 	 * device open, punt
    156 	 */
    157 	if (puffs_setpmp(l->l_proc->p_pid, args->pa_fd, pmp)) {
    158 		error = ENOENT;
    159 		goto out;
    160 	}
    161 
    162 	simple_lock_init(&pmp->pmp_lock);
    163 	TAILQ_INIT(&pmp->pmp_req_touser);
    164 	TAILQ_INIT(&pmp->pmp_req_replywait);
    165 	TAILQ_INIT(&pmp->pmp_req_sizepark);
    166 
    167 	DPRINTF(("puffs_mount: mount point at %p, puffs specific at %p\n",
    168 	    mp, MPTOPUFFSMP(mp)));
    169 
    170 	vfs_getnewfsid(mp);
    171 
    172  out:
    173 	if (error && pmp && pmp->pmp_pnodehash)
    174 		free(pmp->pmp_pnodehash, M_PUFFS);
    175 	if (error && pmp)
    176 		FREE(pmp, M_PUFFS);
    177 	FREE(args, M_PUFFS);
    178 	return error;
    179 }
    180 
    181 /*
    182  * This is called from the first "Hello, I'm alive" ioctl
    183  * from userspace.
    184  */
    185 int
    186 puffs_start2(struct puffs_mount *pmp, struct puffs_startreq *sreq)
    187 {
    188 	struct puffs_node *pn;
    189 	struct mount *mp;
    190 
    191 	mp = PMPTOMP(pmp);
    192 
    193 	simple_lock(&pmp->pmp_lock);
    194 
    195 	/*
    196 	 * if someone has issued a VFS_ROOT() already, fill in the
    197 	 * vnode cookie.
    198 	 */
    199 	pn = NULL;
    200 	if (pmp->pmp_root) {
    201 		pn = VPTOPP(pmp->pmp_root);
    202 		pn->pn_cookie = sreq->psr_cookie;
    203 	}
    204 
    205 	/* We're good to fly */
    206 	pmp->pmp_rootcookie = sreq->psr_cookie;
    207 	pmp->pmp_status = PUFFSTAT_RUNNING;
    208 	simple_unlock(&pmp->pmp_lock);
    209 
    210 	/* do the VFS_STATVFS() we missed out on in sys_mount() */
    211 	copy_statvfs_info(&sreq->psr_sb, mp);
    212 	(void)memcpy(&mp->mnt_stat, &sreq->psr_sb, sizeof(mp->mnt_stat));
    213 	mp->mnt_stat.f_iosize = DEV_BSIZE;
    214 
    215 	DPRINTF(("puffs_start2: root vp %p, cur root pnode %p, cookie %p\n",
    216 	    pmp->pmp_root, pn, sreq->psr_cookie));
    217 
    218 	return 0;
    219 }
    220 
    221 int
    222 puffs_start(struct mount *mp, int flags, struct lwp *l)
    223 {
    224 
    225 	/*
    226 	 * This cannot travel to userspace, as this is called from
    227 	 * the kernel context of the process doing mount(2).  But
    228 	 * it's probably a safe bet that the process doing mount(2)
    229 	 * realizes it needs to start the filesystem also...
    230 	 */
    231 	return 0;
    232 }
    233 
    234 int
    235 puffs_unmount(struct mount *mp, int mntflags, struct lwp *l)
    236 {
    237 	struct puffs_mount *pmp;
    238 	int error, force;
    239 
    240 	PUFFS_VFSREQ(unmount);
    241 
    242 	error = 0;
    243 	force = mntflags & MNT_FORCE;
    244 	pmp = MPTOPUFFSMP(mp);
    245 
    246 	DPRINTF(("puffs_unmount: detach filesystem from vfs, current "
    247 	    "status 0x%x\n", pmp->pmp_status));
    248 
    249 	/*
    250 	 * flush all the vnodes.  VOP_RECLAIM() takes care that the
    251 	 * root vnode does not get flushed until unmount.  The
    252 	 * userspace root node cookie is stored in the mount
    253 	 * structure, so we can always re-instantiate a root vnode,
    254 	 * should userspace unmount decide it doesn't want to
    255 	 * cooperate.
    256 	 */
    257 	error = vflush(mp, NULLVP, force ? FORCECLOSE : 0);
    258 	if (error)
    259 		goto out;
    260 
    261 	/*
    262 	 * If we are not DYING, we should ask userspace's opinion
    263 	 * about the situation
    264 	 */
    265 	simple_lock(&pmp->pmp_lock);
    266 	if (pmp->pmp_status != PUFFSTAT_DYING) {
    267 		pmp->pmp_unmounting = 1;
    268 		simple_unlock(&pmp->pmp_lock);
    269 
    270 		unmount_arg.pvfsr_flags = mntflags;
    271 		unmount_arg.pvfsr_pid = puffs_lwp2pid(l);
    272 
    273 		error = puffs_vfstouser(pmp, PUFFS_VFS_UNMOUNT,
    274 		     &unmount_arg, sizeof(unmount_arg));
    275 		DPRINTF(("puffs_unmount: error %d force %d\n", error, force));
    276 
    277 		simple_lock(&pmp->pmp_lock);
    278 		pmp->pmp_unmounting = 0;
    279 		wakeup(&pmp->pmp_unmounting);
    280 	}
    281 
    282 	/*
    283 	 * if userspace cooperated or we really need to die,
    284 	 * screw what userland thinks and just die.
    285 	 */
    286 	if (error == 0 || force) {
    287 		pmp->pmp_status = PUFFSTAT_DYING;
    288 		puffs_nukebypmp(pmp);
    289 		simple_unlock(&pmp->pmp_lock);
    290 		free(pmp->pmp_pnodehash, M_PUFFS);
    291 		FREE(pmp, M_PUFFS);
    292 		error = 0;
    293 	} else {
    294 		simple_unlock(&pmp->pmp_lock);
    295 	}
    296 
    297  out:
    298 	DPRINTF(("puffs_unmount: return %d\n", error));
    299 	return error;
    300 }
    301 
    302 /*
    303  * This doesn't need to travel to userspace
    304  */
    305 int
    306 puffs_root(struct mount *mp, struct vnode **vpp)
    307 {
    308 	struct puffs_mount *pmp;
    309 	struct puffs_node *pn;
    310 	struct vnode *vp;
    311 
    312 	pmp = MPTOPUFFSMP(mp);
    313 
    314 	/*
    315 	 * pmp_lock must be held if vref()'ing or vrele()'ing the
    316 	 * root vnode.  the latter is controlled by puffs_inactive().
    317 	 */
    318 	simple_lock(&pmp->pmp_lock);
    319 	vp = pmp->pmp_root;
    320 	if (vp) {
    321 		pn = VPTOPP(vp);
    322 		if (vget(vp, LK_EXCLUSIVE | LK_RETRY)) {
    323 			pmp->pmp_root = NULL;
    324 			goto grabnew;
    325 		}
    326 		simple_unlock(&pmp->pmp_lock);
    327 		*vpp = vp;
    328 		return 0;
    329 	}
    330  grabnew:
    331 	simple_unlock(&pmp->pmp_lock);
    332 
    333 	/*
    334 	 * So, didn't have the magic root vnode available.
    335 	 * No matter, grab another an stuff it with the cookie.
    336 	 */
    337 	if (puffs_getvnode(mp, pmp->pmp_rootcookie, VDIR, 0, 0, &vp))
    338 		panic("sloppy programming");
    339 
    340 	simple_lock(&pmp->pmp_lock);
    341 	/*
    342 	 * check if by mysterious force someone else created a root
    343 	 * vnode while we were executing.
    344 	 */
    345 	if (pmp->pmp_root) {
    346 		vref(pmp->pmp_root);
    347 		simple_unlock(&pmp->pmp_lock);
    348 		puffs_putvnode(vp);
    349 		vn_lock(pmp->pmp_root, LK_EXCLUSIVE | LK_RETRY);
    350 		*vpp = pmp->pmp_root;
    351 		return 0;
    352 	}
    353 
    354 	/* store cache */
    355 	vp->v_flag = VROOT;
    356 	pmp->pmp_root = vp;
    357 	simple_unlock(&pmp->pmp_lock);
    358 
    359 	vn_lock(pmp->pmp_root, LK_EXCLUSIVE | LK_RETRY);
    360 
    361 	*vpp = vp;
    362 	return 0;
    363 }
    364 
    365 int
    366 puffs_quotactl(struct mount *mp, int cmd, uid_t uid, void *arg, struct lwp *l)
    367 {
    368 
    369 	return EOPNOTSUPP;
    370 }
    371 
    372 int
    373 puffs_statvfs(struct mount *mp, struct statvfs *sbp, struct lwp *l)
    374 {
    375 	struct puffs_vfsreq_statvfs *statvfs_arg; /* too big for stack */
    376 	struct puffs_mount *pmp;
    377 	int error = 0;
    378 
    379 	pmp = MPTOPUFFSMP(mp);
    380 
    381 	/*
    382 	 * If we are mounting, it means that the userspace counterpart
    383 	 * is calling mount(2), but mount(2) also calls statvfs.  So
    384 	 * requesting statvfs from userspace would mean a deadlock.
    385 	 * Compensate.
    386 	 */
    387 	if (pmp->pmp_status == PUFFSTAT_MOUNTING)
    388 		return EINPROGRESS;
    389 
    390 	/* too big for stack */
    391 	MALLOC(statvfs_arg, struct puffs_vfsreq_statvfs *,
    392 	    sizeof(struct puffs_vfsreq_statvfs), M_PUFFS, M_WAITOK | M_ZERO);
    393 	statvfs_arg->pvfsr_pid = puffs_lwp2pid(l);
    394 
    395 	error = puffs_vfstouser(pmp, PUFFS_VFS_STATVFS,
    396 	    statvfs_arg, sizeof(*statvfs_arg));
    397 	statvfs_arg->pvfsr_sb.f_iosize = DEV_BSIZE;
    398 
    399 	/*
    400 	 * Try to produce a sensible result even in the event
    401 	 * of userspace error.
    402 	 *
    403 	 * XXX: cache the copy in non-error case
    404 	 */
    405 	if (!error) {
    406 		copy_statvfs_info(&statvfs_arg->pvfsr_sb, mp);
    407 		(void)memcpy(sbp, &statvfs_arg->pvfsr_sb,
    408 		    sizeof(struct statvfs));
    409 	} else {
    410 		copy_statvfs_info(sbp, mp);
    411 	}
    412 
    413 	FREE(statvfs_arg, M_PUFFS);
    414 	return error;
    415 }
    416 
    417 int
    418 puffs_sync(struct mount *mp, int waitfor, struct kauth_cred *cred,
    419 	struct lwp *l)
    420 {
    421 	struct vnode *vp, *nvp;
    422 	int error, rv;
    423 	int ppflags;
    424 
    425 	PUFFS_VFSREQ(sync);
    426 
    427 	error = 0;
    428 	ppflags = PGO_CLEANIT | PGO_ALLPAGES;
    429 	if (waitfor == MNT_WAIT)
    430 		ppflags |= PGO_SYNCIO;
    431 
    432 	/*
    433 	 * Sync all cached data from regular vnodes (which are not
    434 	 * currently locked, see below).  After this we call VFS_SYNC
    435 	 * for the fs server, which should handle data and metadata for
    436 	 * all the nodes it knows to exist.
    437 	 */
    438 	simple_lock(&mntvnode_slock);
    439  loop:
    440 	for (vp = TAILQ_FIRST(&mp->mnt_vnodelist); vp; vp = nvp) {
    441 		/* check if we're on the right list */
    442 		if (vp->v_mount != mp)
    443 			goto loop;
    444 
    445 		simple_lock(&vp->v_interlock);
    446 		nvp = TAILQ_NEXT(vp, v_mntvnodes);
    447 
    448 		if (vp->v_type != VREG || UVM_OBJ_IS_CLEAN(&vp->v_uobj)) {
    449 			simple_unlock(&vp->v_interlock);
    450 			continue;
    451 		}
    452 
    453 		simple_unlock(&mntvnode_slock);
    454 
    455 		/*
    456 		 * Here we try to get a reference to the vnode and to
    457 		 * lock it.  This is mostly cargo-culted, but I will
    458 		 * offer an explanation to why I believe this might
    459 		 * actually do the right thing.
    460 		 *
    461 		 * If the vnode is a goner, we quite obviously don't need
    462 		 * to sync it.
    463 		 *
    464 		 * If the vnode was busy, we don't need to sync it because
    465 		 * this is never called with MNT_WAIT except from
    466 		 * dounmount(), when we are wait-flushing all the dirty
    467 		 * vnodes through other routes in any case.  So there,
    468 		 * sync() doesn't actually sync.  Happy now?
    469 		 */
    470 		rv = vget(vp, LK_EXCLUSIVE | LK_NOWAIT | LK_INTERLOCK);
    471 		if (rv) {
    472 			simple_lock(&mntvnode_slock);
    473 			if (rv == ENOENT)
    474 				goto loop;
    475 			continue;
    476 		}
    477 
    478 		simple_lock(&vp->v_interlock);
    479 		rv = VOP_PUTPAGES(vp, 0, 0, ppflags);
    480 		if (rv)
    481 			error = rv;
    482 		vput(vp);
    483 		simple_lock(&mntvnode_slock);
    484 	}
    485 	simple_unlock(&mntvnode_slock);
    486 
    487 	/* sync fs */
    488 	sync_arg.pvfsr_waitfor = waitfor;
    489 	puffs_credcvt(&sync_arg.pvfsr_cred, cred);
    490 	sync_arg.pvfsr_pid = puffs_lwp2pid(l);
    491 
    492 	rv = puffs_vfstouser(MPTOPUFFSMP(mp), PUFFS_VFS_SYNC,
    493 	    &sync_arg, sizeof(sync_arg));
    494 	if (rv)
    495 		error = rv;
    496 
    497 	return error;
    498 }
    499 
    500 int
    501 puffs_vget(struct mount *mp, ino_t ino, struct vnode **vpp)
    502 {
    503 
    504 	return EOPNOTSUPP;
    505 }
    506 
    507 #if 0
    508 /*ARGSUSED*/
    509 int
    510 puffs_fhtovp(struct mount *mp, struct fid *fhp, struct vnode **vpp)
    511 {
    512 
    513 	return EOPNOTSUPP;
    514 }
    515 
    516 /*ARGSUSED*/
    517 int
    518 puffs_vptofh(struct vnode *vp, struct fid *fhp)
    519 {
    520 
    521 	return EOPNOTSUPP;
    522 }
    523 #endif
    524 
    525 void
    526 puffs_init()
    527 {
    528 
    529 #ifdef _LKM
    530 	malloc_type_attach(M_PUFFS);
    531 	pool_init(&puffs_pnpool, sizeof(struct puffs_node), 0, 0, 0,
    532 	    "puffspnpl", &pool_allocator_nointr);
    533 #endif
    534 
    535 	return;
    536 }
    537 
    538 void
    539 puffs_done()
    540 {
    541 
    542 #ifdef _LKM
    543 	pool_destroy(&puffs_pnpool);
    544 	malloc_type_detach(M_PUFFS);
    545 #endif
    546 
    547 	return;
    548 }
    549 
    550 int
    551 puffs_snapshot(struct mount *mp, struct vnode *vp, struct timespec *ts)
    552 {
    553 
    554 	return EOPNOTSUPP;
    555 }
    556 
    557 const struct vnodeopv_desc * const puffs_vnodeopv_descs[] = {
    558 	&puffs_vnodeop_opv_desc,
    559 	&puffs_specop_opv_desc,
    560 	&puffs_fifoop_opv_desc,
    561 	&puffs_msgop_opv_desc,
    562 	NULL,
    563 };
    564 
    565 struct vfsops puffs_vfsops = {
    566 	MOUNT_PUFFS,
    567 	puffs_mount,		/* mount	*/
    568 	puffs_start,		/* start	*/
    569 	puffs_unmount,		/* unmount	*/
    570 	puffs_root,		/* root		*/
    571 	puffs_quotactl,		/* quotactl	*/
    572 	puffs_statvfs,		/* statvfs	*/
    573 	puffs_sync,		/* sync		*/
    574 	puffs_vget,		/* vget		*/
    575 	(void *)eopnotsupp,	/* fhtovp	*/
    576 	(void *)eopnotsupp,	/* vptofh	*/
    577 	puffs_init,		/* init		*/
    578 	NULL,			/* reinit	*/
    579 	puffs_done,		/* done		*/
    580 	NULL,			/* mountroot	*/
    581 	puffs_snapshot,		/* snapshot	*/
    582 	vfs_stdextattrctl,	/* extattrctl	*/
    583 	vfs_stdsuspendctl,	/* suspendctl	*/
    584 	puffs_vnodeopv_descs,	/* vnodeops	*/
    585 	0,			/* refcount	*/
    586 	{ NULL, NULL }
    587 };
    588 VFS_ATTACH(puffs_vfsops);
    589