|
| From: | Gerd Hoffmann |
| Subject: | [Qemu-devel] Re: [PATCH] Fix do_commit() behavior |
| Date: | Mon, 03 Aug 2009 10:47:58 +0200 |
| User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Lightning/1.0pre Thunderbird/3.0b2 |
On 07/31/09 20:15, Luiz Capitulino wrote:
The fix is to call bdrv_commit() to the specified device only and ignore the others (when 'all' is not specified).
all_devices = !strcmp(device, "all");
TAILQ_FOREACH(dinfo,&drives, next) {
if (!all_devices)
- if (!strcmp(bdrv_get_device_name(dinfo->bdrv), device))
+ if (strcmp(bdrv_get_device_name(dinfo->bdrv), device))
continue;
bdrv_commit(dinfo->bdrv);
}
Fix is correct. Acked-by: Gerd Hoffmann <address@hidden> cheers, Gerd
| [Prev in Thread] | Current Thread | [Next in Thread] |