SHA256
1
0
forked from pool/xen

Updated patches from Kong Wei

OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=18
This commit is contained in:
Charles Arnold 2009-09-25 21:00:16 +00:00 committed by Git OBS Bridge
parent 89e0f7ea01
commit 4cd9a5333f
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ Index: xen-3.4.1-testing/tools/ioemu-remote/block.c
- RDONLY as fallback */
if (!(flags & BDRV_O_FILE))
- open_flags = BDRV_O_RDWR | (flags & BDRV_O_CACHE_MASK);
+ open_flags = flags & BDRV_O_CACHE_MASK;
+ open_flags = flags;
else
open_flags = flags & ~(BDRV_O_FILE | BDRV_O_SNAPSHOT);
+ if (!(open_flags & BDRV_O_RDWR))

View File

@ -26,7 +26,7 @@ Index: xen-3.4.1-testing/tools/ioemu-remote/block-qcow2.c
for (i = 0; i < j; i++)
- free_any_clusters(bs, old_cluster[i], 1);
+ free_any_clusters(bs, be64_to_cpu(old_cluster[i]), 1);
+ free_any_clusters(bs, be64_to_cpu(old_cluster[i]) & ~QCOW_OFLAG_COPIED, 1);
ret = 0;
err: