revoke revoke

This commit is contained in:
pooka 2007-01-16 22:37:17 +00:00
parent 2f00fab993
commit c068d370f2
2 changed files with 4 additions and 20 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: puffs.c,v 1.24 2007/01/15 00:39:02 pooka Exp $ */
/* $NetBSD: puffs.c,v 1.25 2007/01/16 22:37:17 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.24 2007/01/15 00:39:02 pooka Exp $");
__RCSID("$NetBSD: puffs.c,v 1.25 2007/01/16 22:37:17 pooka Exp $");
#endif /* !lint */
#include <sys/param.h>
@ -82,7 +82,6 @@ fillvnopmask(struct puffs_ops *pops, uint8_t *opmask)
FILLOP(getattr, GETATTR);
FILLOP(setattr, SETATTR);
FILLOP(poll, POLL); /* XXX: not ready in kernel */
FILLOP(revoke, REVOKE);
FILLOP(mmap, MMAP);
FILLOP(fsync, FSYNC);
FILLOP(seek, SEEK);
@ -683,19 +682,6 @@ puffs_calldispatcher(struct puffs_cc *pcc)
break;
}
case PUFFS_VN_REVOKE:
{
struct puffs_vnreq_revoke *auxt = auxbuf;
if (pops->puffs_node_revoke == NULL) {
error = 0;
break;
}
error = pops->puffs_node_revoke(pcc,
preq->preq_cookie, auxt->pvnr_flags);
break;
}
case PUFFS_VN_FSYNC:
{
struct puffs_vnreq_fsync *auxt = auxbuf;

View File

@ -1,4 +1,4 @@
/* $NetBSD: puffs.h,v 1.25 2007/01/15 00:39:02 pooka Exp $ */
/* $NetBSD: puffs.h,v 1.26 2007/01/16 22:37:17 pooka Exp $ */
/*
* Copyright (c) 2005, 2006 Antti Kantee. All Rights Reserved.
@ -152,7 +152,6 @@ struct puffs_ops {
void *, const struct vattr *, const struct puffs_cred *, pid_t);
int (*puffs_node_poll)(struct puffs_cc *,
void *, struct puffs_vnreq_poll *);
int (*puffs_node_revoke)(struct puffs_cc *, void *, int);
int (*puffs_node_mmap)(struct puffs_cc *,
void *, int, const struct puffs_cred *, pid_t);
int (*puffs_node_fsync)(struct puffs_cc *,
@ -323,7 +322,6 @@ int puffs_cred_isjuggernaut(const struct puffs_cred *pcr);
pid_t); \
int fsname##_node_poll(struct puffs_cc *, \
void *, struct puffs_vnreq_poll *); \
int fsname##_node_revoke(struct puffs_cc *, void *, int); \
int fsname##_node_mmap(struct puffs_cc *, \
void *, int, const struct puffs_cred *, pid_t); \
int fsname##_node_fsync(struct puffs_cc *, \
@ -380,7 +378,7 @@ int puffs_cred_isjuggernaut(const struct puffs_cred *pcr);
#define PUFFSOP_SETFSNOP(ops, opname) \
(ops)->puffs_fs_##opname = puffs_fsnop_##opname
#define PUFFS_DEVEL_LIBVERSION 3
#define PUFFS_DEVEL_LIBVERSION 4
#define puffs_mount(a,b,c,d,e,f,g) \
_puffs_mount(PUFFS_DEVEL_LIBVERSION,a,b,c,d,e,f,g)