# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1306228450 -3600
# Node ID 0d97d90876b0e59648bd403794812941bcb8d13e
# Parent 0a7ee235f5139cce2a3c1220086d16b847279dc6
libxc: save: rename ratewrite to uncached.
It doesn't do any ratelimiting...
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
diff -r 0a7ee235f513 -r 0d97d90876b0 tools/libxc/xc_domain_save.c
--- a/tools/libxc/xc_domain_save.c Tue May 24 10:14:10 2011 +0100
+++ b/tools/libxc/xc_domain_save.c Tue May 24 10:14:10 2011 +0100
@@ -252,8 +252,8 @@ static inline int write_buffer(xc_interf
return write_exact(fd, buf, len);
}
-/* like write_buffer for ratewrite, which returns number of bytes written */
-static inline int ratewrite_buffer(xc_interface *xch,
+/* like write_buffer for noncached, which returns number of bytes written */
+static inline int write_uncached(xc_interface *xch,
int dobuf, struct outbuf* ob, int fd,
int live, void* buf, size_t len)
{
@@ -1066,7 +1066,7 @@ int xc_domain_save(xc_interface *xch, in
copypages:
#define wrexact(fd, buf, len) write_buffer(xch, last_iter, &ob, (fd), (buf),
(len))
-#define ratewrite(fd, live, buf, len) ratewrite_buffer(xch, last_iter, &ob,
(fd), (live), (buf), (len))
+#define ratewrite(fd, live, buf, len) write_uncached(xch, last_iter, &ob,
(fd), (live), (buf), (len))
/* Now write out each data page, canonicalising page tables as we go... */
for ( ; ; )
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|