summaryrefslogtreecommitdiff
path: root/lib/libperfuse/debug.c
diff options
context:
space:
mode:
authormanu <manu@NetBSD.org>2010-09-15 01:51:43 +0000
committermanu <manu@NetBSD.org>2010-09-15 01:51:43 +0000
commite9a8a6acc0a0a4b16fa436f090ac496a42fc6561 (patch)
treec67652052a60be77db20dcb28a92403cf959509b /lib/libperfuse/debug.c
parent812c2930866ec3d4deba7f508cf7530d264c9b9c (diff)
- Use SOCK_DGRAM instead of SOCK_STREAM, as the filesystem seems to
assume datagram semantics: when using SOCK_STREAM, if perfused sends frames faster than the filesystem consumes them, it will grab multiple frames at once and discard anything beyond the first one. For now the code can work both with SOCK_DGRAM and SOCK_STREAM, but SOCK_STREAM support will probably have to be removed for the sake of readability. - Remeber to sync parent directories when moving a node - In debug output, display the requeue type (readdir, write, etc...)
Diffstat (limited to 'lib/libperfuse/debug.c')
-rw-r--r--lib/libperfuse/debug.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libperfuse/debug.c b/lib/libperfuse/debug.c
index 786e858dc79..54572591675 100644
--- a/lib/libperfuse/debug.c
+++ b/lib/libperfuse/debug.c
@@ -1,4 +1,4 @@
-/* $NetBSD: debug.c,v 1.1 2010/08/25 07:16:00 manu Exp $ */
+/* $NetBSD: debug.c,v 1.2 2010/09/15 01:51:43 manu Exp $ */
/*-
* Copyright (c) 2010 Emmanuel Dreyfus. All rights reserved.
@@ -79,6 +79,8 @@ const struct perfuse_opcode perfuse_opcode[] = {
{ 0, "UNKNOWN" },
};
+const char *perfuse_qtypestr[] = { "READDIR", "READ", "WRITE", "AFTERWRITE" };
+
const char *
perfuse_opname(opcode)
int opcode;