debuggers.hg

view tools/ioemu/patches/qemu-fix-write-to-disk-synchronous @ 10970: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
children ec8dd0528fc6
line source
1 Index: ioemu/block-vmdk.c
2 ===================================================================
3 --- ioemu.orig/block-vmdk.c 2006-07-14 13:43:45.000000000 +0100
4 +++ ioemu/block-vmdk.c 2006-08-04 10:27:15.368803650 +0100
5 @@ -96,7 +96,7 @@
6 uint32_t magic;
7 int l1_size;
9 - fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE);
10 + fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE | O_SYNC);
11 if (fd < 0) {
12 fd = open(filename, O_RDONLY | O_BINARY | O_LARGEFILE);
13 if (fd < 0)
14 Index: ioemu/block-qcow.c
15 ===================================================================
16 --- ioemu.orig/block-qcow.c 2006-07-14 13:43:45.000000000 +0100
17 +++ ioemu/block-qcow.c 2006-08-04 10:27:15.367803766 +0100
18 @@ -95,7 +95,7 @@
19 int fd, len, i, shift;
20 QCowHeader header;
22 - fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE);
23 + fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE | O_SYNC);
24 if (fd < 0) {
25 fd = open(filename, O_RDONLY | O_BINARY | O_LARGEFILE);
26 if (fd < 0)
27 Index: ioemu/block-bochs.c
28 ===================================================================
29 --- ioemu.orig/block-bochs.c 2006-07-14 13:43:45.000000000 +0100
30 +++ ioemu/block-bochs.c 2006-08-04 10:27:15.345806311 +0100
31 @@ -91,7 +91,7 @@
32 int fd, i;
33 struct bochs_header bochs;
35 - fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE);
36 + fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE | O_SYNC);
37 if (fd < 0) {
38 fd = open(filename, O_RDONLY | O_BINARY | O_LARGEFILE);
39 if (fd < 0)
40 Index: ioemu/block.c
41 ===================================================================
42 --- ioemu.orig/block.c 2006-08-03 19:19:39.000000000 +0100
43 +++ ioemu/block.c 2006-08-04 10:27:15.357804923 +0100
44 @@ -677,7 +677,7 @@
45 int rv;
46 #endif
48 - fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE);
49 + fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE | O_SYNC);
50 if (fd < 0) {
51 fd = open(filename, O_RDONLY | O_BINARY | O_LARGEFILE);
52 if (fd < 0)
53 Index: ioemu/block-cow.c
54 ===================================================================
55 --- ioemu.orig/block-cow.c 2006-07-14 13:43:45.000000000 +0100
56 +++ ioemu/block-cow.c 2006-08-04 10:27:15.366803882 +0100
57 @@ -69,7 +69,7 @@
58 struct cow_header_v2 cow_header;
59 int64_t size;
61 - fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE);
62 + fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE | O_SYNC);
63 if (fd < 0) {
64 fd = open(filename, O_RDONLY | O_BINARY | O_LARGEFILE);
65 if (fd < 0)
66 Index: ioemu/block-cloop.c
67 ===================================================================
68 --- ioemu.orig/block-cloop.c 2006-07-14 13:43:45.000000000 +0100
69 +++ ioemu/block-cloop.c 2006-08-04 10:27:15.365803997 +0100
70 @@ -55,7 +55,7 @@
71 BDRVCloopState *s = bs->opaque;
72 uint32_t offsets_size,max_compressed_block_size=1,i;
74 - s->fd = open(filename, O_RDONLY | O_BINARY | O_LARGEFILE);
75 + s->fd = open(filename, O_RDONLY | O_BINARY | O_LARGEFILE | O_SYNC);
76 if (s->fd < 0)
77 return -1;
78 bs->read_only = 1;