aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstore/xs_tdb_dump.c
diff options
context:
space:
mode:
authoremellor@ewan <emellor@ewan>2005-09-23 14:28:16 +0100
committeremellor@ewan <emellor@ewan>2005-09-23 14:28:16 +0100
commitbdd477ad345e8e0ba6640ea480fa47a7c3d5fdf0 (patch)
treee8fc323b3f0330ac42ee57f9cc8bb740baabcc9f /tools/xenstore/xs_tdb_dump.c
parentf11f68cd1157d84615621edcd7321a6d0a09b158 (diff)
downloadxen-bdd477ad345e8e0ba6640ea480fa47a7c3d5fdf0.tar.gz
xen-bdd477ad345e8e0ba6640ea480fa47a7c3d5fdf0.tar.bz2
xen-bdd477ad345e8e0ba6640ea480fa47a7c3d5fdf0.zip
Add check for speed (takes 33 minutes on my laptop, OUCH!)
Make xenstored use tdb, transactions can soft-fail (EAGAIN) Transactions no longer take root dir, no longer lock & block: commit can fail spuriously with EAGAIN, not ETIMEDOUT. Speeds up transactions by over 1000 times, should be NFS safe. New program: xs_tdb_dump to dump raw TDB contents. Don't do failure testing: we are no longer robust against all ENOMEM 8( Introduce "struct node" which contains perms, children and data. Make struct xs_permissions unpadded, so we can write to tdb w/o valgrind complaints. Gently modify TDB to use talloc, not do alloc on tdb_delete. Fix up transaction users for new semantics. Don't need a transaction around a single read in xen/i386/kernel/smpboot.c. Python: transaction_start() returns True/False rather than raising exception on EAGAIN. Fix usage comment on xs_transaction_end(). Include stdarg to xs_tdb_dump so it compiles. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'tools/xenstore/xs_tdb_dump.c')
-rw-r--r--tools/xenstore/xs_tdb_dump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/xenstore/xs_tdb_dump.c b/tools/xenstore/xs_tdb_dump.c
index 1cab37ed6d..a68f19fc2b 100644
--- a/tools/xenstore/xs_tdb_dump.c
+++ b/tools/xenstore/xs_tdb_dump.c
@@ -3,6 +3,7 @@
#include <stdlib.h>
#include <fcntl.h>
#include <stdio.h>
+#include <stdarg.h>
#include "xs_lib.h"
#include "tdb.h"