[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Fix ioemu invalidation for xenpaging



xs_write takes the length of the string being written, not the path. 

Signed-off-by: Steven Hand <steven.hand@xxxxxxxxxxxx>

diff -r 25a3b799ff0e tools/xenpaging/xc.c
--- a/tools/xenpaging/xc.c      Thu Mar 25 11:38:46 2010 +0000
+++ b/tools/xenpaging/xc.c      Thu Mar 25 16:16:46 2010 +0000
@@ -56,7 +56,7 @@
     if ( xsh == NULL )
         return -EIO;
 
-    rc = xs_write(xsh, XBT_NULL, path, "flush-cache", strlen(path));
+    rc = xs_write(xsh, XBT_NULL, path, "flush-cache", 11); 
 
     xs_daemon_close(xsh);


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.