Re: [PATCH] qemu: allow snapshotting of sheepdog and rbd disks

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

 



On 05/25/2012 08:36 PM, Eric Blake wrote:
> On 03/30/2012 07:53 PM, Josh Durgin wrote:
>> Signed-off-by: Josh Durgin <josh.durgin@xxxxxxxxxxxxx>
>> ---
> 
> A bit sparse on the commit message. How long have sheepdog and rbd disks
> supported snapshots?  I'm assuming that this is system checkpoint
> snapshots (aka 'savevm'), where qemu saves both disk state and VM state
> into an internal portion of the same disk file?
> 

>>      for (i = 0; i < vm->def->ndisks; i++) {
>> -        if ((vm->def->disks[i]->device == VIR_DOMAIN_DISK_DEVICE_LUN) ||
>> -            (vm->def->disks[i]->device == VIR_DOMAIN_DISK_DEVICE_DISK &&
>> -             STRNEQ_NULLABLE(vm->def->disks[i]->driverType, "qcow2"))) {
>> +        virDomainDiskDefPtr disk = vm->def->disks[i];
>> +        if (disk->type == VIR_DOMAIN_DISK_TYPE_NETWORK &&
>> +            (disk->protocol == VIR_DOMAIN_DISK_PROTOCOL_SHEEPDOG ||
>> +             disk->protocol == VIR_DOMAIN_DISK_PROTOCOL_RBD))
>> +            continue;
>> +
>> +        if ((disk->device == VIR_DOMAIN_DISK_DEVICE_LUN) ||
>> +            (disk->device == VIR_DOMAIN_DISK_DEVICE_DISK &&
>> +             STRNEQ_NULLABLE(disk->driverType, "qcow2"))) {
>>              qemuReportError(VIR_ERR_OPERATION_INVALID,
>>                              _("Disk '%s' does not support snapshotting"),
>> -                            vm->def->disks[i]->src);
>> +                            disk->src);
> 
> Looks reasonable; does this still apply to the latest libvirt.git?

Serves me right for not checking first; you posted a later version of
this patch, later committed as:

commit b57e01532a1691897e27f20eccfd667a46ee374e
Author: Josh Durgin <josh.durgin@xxxxxxxxxxxxx>
Date:   Mon Apr 30 22:55:22 2012 -0700

    qemu: allow snapshotting of sheepdog and rbd disks

    Signed-off-by: Josh Durgin <josh.durgin@xxxxxxxxxxxxx>

Sorry for the noise.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]