shuffle flags a bit

This commit is contained in:
pooka 2006-11-17 17:48:32 +00:00
parent e5e4a4f6bc
commit a0e314dc77
2 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: puffs.c,v 1.6 2006/11/09 13:11:01 pooka Exp $ */
/* $NetBSD: puffs.c,v 1.7 2006/11/17 17:48:32 pooka Exp $ */
/*
* Copyright (c) 2005, 2006 Antti Kantee. All Rights Reserved.
@ -34,7 +34,7 @@
#include <sys/cdefs.h>
#if !defined(lint)
__RCSID("$NetBSD: puffs.c,v 1.6 2006/11/09 13:11:01 pooka Exp $");
__RCSID("$NetBSD: puffs.c,v 1.7 2006/11/17 17:48:32 pooka Exp $");
#endif /* !lint */
#include <sys/param.h>
@ -72,7 +72,7 @@ puffs_mount(struct puffs_vfsops *pvfs, struct puffs_vnops *pvn,
return NULL;
pargs.pa_vers = 0; /* XXX: for now */
pargs.pa_flags = pflags;
pargs.pa_flags = PUFFSFLAG_KERN(pflags);
pargs.pa_fd = fd;
pargs.pa_maxreqlen = maxreqlen;
(void)strlcpy(pargs.pa_name, puffsname, sizeof(pargs.pa_name));

View File

@ -1,4 +1,4 @@
/* $NetBSD: puffs.h,v 1.7 2006/11/14 11:45:03 pooka Exp $ */
/* $NetBSD: puffs.h,v 1.8 2006/11/17 17:48:32 pooka Exp $ */
/*
* Copyright (c) 2005, 2006 Antti Kantee. All Rights Reserved.
@ -176,7 +176,8 @@ struct puffs_usermount {
void *pu_privdata;
};
#define PUFFSFLAG_OPDUMP 0x01 /* dump all operations */
#define PUFFSFLAG_KERN(a) ((a) & 0xffff)
#define PUFFSFLAG_OPDUMP 0x10000 /* dump all operations */
struct puffs_usermount *puffs_mount(struct puffs_vfsops *, struct puffs_vnops *,
const char *, int, const char *,