ia64/xen-unstable

changeset 10960:c6b2761633c6

[qemu patches] Update patches for changeset 10931:3ea0a6847198.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
author chris@kneesaa.uk.xensource.com
date Fri Aug 04 10:29:18 2006 +0100 (2006-08-04)
parents 3ea0a6847198
children 386990d004b8
files tools/ioemu/patches/qemu-fix-write-to-disk-synchronous tools/ioemu/patches/series
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tools/ioemu/patches/qemu-fix-write-to-disk-synchronous	Fri Aug 04 10:29:18 2006 +0100
     1.3 @@ -0,0 +1,78 @@
     1.4 +Index: ioemu/block-vmdk.c
     1.5 +===================================================================
     1.6 +--- ioemu.orig/block-vmdk.c	2006-07-14 13:43:45.000000000 +0100
     1.7 ++++ ioemu/block-vmdk.c	2006-08-04 10:27:15.368803650 +0100
     1.8 +@@ -96,7 +96,7 @@
     1.9 +     uint32_t magic;
    1.10 +     int l1_size;
    1.11 + 
    1.12 +-    fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE);
    1.13 ++    fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE | O_SYNC);
    1.14 +     if (fd < 0) {
    1.15 +         fd = open(filename, O_RDONLY | O_BINARY | O_LARGEFILE);
    1.16 +         if (fd < 0)
    1.17 +Index: ioemu/block-qcow.c
    1.18 +===================================================================
    1.19 +--- ioemu.orig/block-qcow.c	2006-07-14 13:43:45.000000000 +0100
    1.20 ++++ ioemu/block-qcow.c	2006-08-04 10:27:15.367803766 +0100
    1.21 +@@ -95,7 +95,7 @@
    1.22 +     int fd, len, i, shift;
    1.23 +     QCowHeader header;
    1.24 +     
    1.25 +-    fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE);
    1.26 ++    fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE | O_SYNC);
    1.27 +     if (fd < 0) {
    1.28 +         fd = open(filename, O_RDONLY | O_BINARY | O_LARGEFILE);
    1.29 +         if (fd < 0)
    1.30 +Index: ioemu/block-bochs.c
    1.31 +===================================================================
    1.32 +--- ioemu.orig/block-bochs.c	2006-07-14 13:43:45.000000000 +0100
    1.33 ++++ ioemu/block-bochs.c	2006-08-04 10:27:15.345806311 +0100
    1.34 +@@ -91,7 +91,7 @@
    1.35 +     int fd, i;
    1.36 +     struct bochs_header bochs;
    1.37 + 
    1.38 +-    fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE);
    1.39 ++    fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE | O_SYNC);
    1.40 +     if (fd < 0) {
    1.41 +         fd = open(filename, O_RDONLY | O_BINARY | O_LARGEFILE);
    1.42 +         if (fd < 0)
    1.43 +Index: ioemu/block.c
    1.44 +===================================================================
    1.45 +--- ioemu.orig/block.c	2006-08-03 19:19:39.000000000 +0100
    1.46 ++++ ioemu/block.c	2006-08-04 10:27:15.357804923 +0100
    1.47 +@@ -677,7 +677,7 @@
    1.48 +     int rv;
    1.49 + #endif
    1.50 + 
    1.51 +-    fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE);
    1.52 ++    fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE | O_SYNC);
    1.53 +     if (fd < 0) {
    1.54 +         fd = open(filename, O_RDONLY | O_BINARY | O_LARGEFILE);
    1.55 +         if (fd < 0)
    1.56 +Index: ioemu/block-cow.c
    1.57 +===================================================================
    1.58 +--- ioemu.orig/block-cow.c	2006-07-14 13:43:45.000000000 +0100
    1.59 ++++ ioemu/block-cow.c	2006-08-04 10:27:15.366803882 +0100
    1.60 +@@ -69,7 +69,7 @@
    1.61 +     struct cow_header_v2 cow_header;
    1.62 +     int64_t size;
    1.63 + 
    1.64 +-    fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE);
    1.65 ++    fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE | O_SYNC);
    1.66 +     if (fd < 0) {
    1.67 +         fd = open(filename, O_RDONLY | O_BINARY | O_LARGEFILE);
    1.68 +         if (fd < 0)
    1.69 +Index: ioemu/block-cloop.c
    1.70 +===================================================================
    1.71 +--- ioemu.orig/block-cloop.c	2006-07-14 13:43:45.000000000 +0100
    1.72 ++++ ioemu/block-cloop.c	2006-08-04 10:27:15.365803997 +0100
    1.73 +@@ -55,7 +55,7 @@
    1.74 +     BDRVCloopState *s = bs->opaque;
    1.75 +     uint32_t offsets_size,max_compressed_block_size=1,i;
    1.76 + 
    1.77 +-    s->fd = open(filename, O_RDONLY | O_BINARY | O_LARGEFILE);
    1.78 ++    s->fd = open(filename, O_RDONLY | O_BINARY | O_LARGEFILE | O_SYNC);
    1.79 +     if (s->fd < 0)
    1.80 +         return -1;
    1.81 +     bs->read_only = 1;
     2.1 --- a/tools/ioemu/patches/series	Fri Aug 04 10:28:51 2006 +0100
     2.2 +++ b/tools/ioemu/patches/series	Fri Aug 04 10:29:18 2006 +0100
     2.3 @@ -39,3 +39,4 @@ xenstore-block-device-config
     2.4  xenstore-write-vnc-port
     2.5  qemu-allow-disable-sdl
     2.6  qemu-fix-memset-args
     2.7 +qemu-fix-write-to-disk-synchronous