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

[Xen-devel] [PATCH 6 of 8] blktap3/vhd: Introduce atomicio.[ch]



This patch imports file atomicio.[ch] from blktap2, which seems to contain
wrappers around the read/write system calls.

Signed-off-by: Thanos Makatos <thanos.makatos@xxxxxxxxxx>

diff --git a/tools/blktap2/vhd/lib/atomicio.c b/tools/blktap3/vhd/lib/atomicio.c
copy from tools/blktap2/vhd/lib/atomicio.c
copy to tools/blktap3/vhd/lib/atomicio.c
--- a/tools/blktap2/vhd/lib/atomicio.c
+++ b/tools/blktap3/vhd/lib/atomicio.c
@@ -40,7 +40,7 @@ atomicio(f, fd, _s, n)
 {
        char *s = _s;
        size_t pos = 0;
-       ssize_t res;
+       size_t res;
 
        while (n > pos) {
                res = (f) (fd, s + pos, n - pos);
@@ -58,4 +58,3 @@ atomicio(f, fd, _s, n)
        }
        return (pos);
 }
-
diff --git a/tools/blktap2/include/atomicio.h b/tools/blktap3/vhd/lib/atomicio.h
copy from tools/blktap2/include/atomicio.h
copy to tools/blktap3/vhd/lib/atomicio.h

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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