add flushops
This commit is contained in:
parent
4454243c5b
commit
cf878f1627
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: opdump.c,v 1.19 2007/11/29 17:22:04 pooka Exp $ */
|
/* $NetBSD: opdump.c,v 1.20 2007/12/04 20:03:40 pooka Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2006 Antti Kantee. All Rights Reserved.
|
* Copyright (c) 2005, 2006 Antti Kantee. All Rights Reserved.
|
||||||
@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#if !defined(lint)
|
#if !defined(lint)
|
||||||
__RCSID("$NetBSD: opdump.c,v 1.19 2007/11/29 17:22:04 pooka Exp $");
|
__RCSID("$NetBSD: opdump.c,v 1.20 2007/12/04 20:03:40 pooka Exp $");
|
||||||
#endif /* !lint */
|
#endif /* !lint */
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -128,6 +128,14 @@ const char *errnot_revmap[] = {
|
|||||||
"PUFFS_ERR_WRITE",
|
"PUFFS_ERR_WRITE",
|
||||||
"PUFFS_ERR_VPTOFH"
|
"PUFFS_ERR_VPTOFH"
|
||||||
};
|
};
|
||||||
|
/* XXX! */
|
||||||
|
const char *flush_revmap[] = {
|
||||||
|
"PUFFS_INVAL_NAMECACHE_NODE",
|
||||||
|
"PUFFS_INVAL_NAMECACHE_DIR",
|
||||||
|
"PUFFS_INVAL_NAMECACHE_ALL",
|
||||||
|
"PUFFS_INVAL_PAGECACHE_NODE_RANGE",
|
||||||
|
"PUFFS_FLUSH_PAGECACHE_NODE_RANGE",
|
||||||
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
puffsdump_req(struct puffs_req *preq)
|
puffsdump_req(struct puffs_req *preq)
|
||||||
@ -152,6 +160,9 @@ puffsdump_req(struct puffs_req *preq)
|
|||||||
case PUFFSOP_ERROR:
|
case PUFFSOP_ERROR:
|
||||||
map = errnot_revmap;
|
map = errnot_revmap;
|
||||||
break;
|
break;
|
||||||
|
case PUFFSOP_FLUSH:
|
||||||
|
map = flush_revmap;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("\treqid: %" PRIu64 ", opclass %d%s, optype: %s, "
|
printf("\treqid: %" PRIu64 ", opclass %d%s, optype: %s, "
|
||||||
|
Loading…
Reference in New Issue
Block a user