ia64/xen-unstable

changeset 9542:601d0229a40e

Further attempts to recover from a corrupt store, this one triggered when a
tdb_store fails.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Fri Mar 31 00:10:54 2006 +0100 (2006-03-31)
parents d3b23e0165cc
children 53ded2201b7f
files tools/xenstore/xenstored_core.c
line diff
     1.1 --- a/tools/xenstore/xenstored_core.c	Fri Mar 31 00:09:42 2006 +0100
     1.2 +++ b/tools/xenstore/xenstored_core.c	Fri Mar 31 00:10:54 2006 +0100
     1.3 @@ -469,6 +469,7 @@ static bool write_node(struct connection
     1.4  
     1.5  	/* TDB should set errno, but doesn't even set ecode AFAICT. */
     1.6  	if (tdb_store(tdb_context(conn), key, data, TDB_REPLACE) != 0) {
     1.7 +		corrupt(conn, "Write of %s = %s failed", key, data);
     1.8  		errno = ENOSPC;
     1.9  		return false;
    1.10  	}