[ovirt-devel] Why we don't call "blockPull" to merge snapshot(base to top) in vdsm?

pengyixiang yxpengi386 at 163.com
Thu Jan 18 09:06:20 UTC 2018


hello, everyone!
      We create a snapshot chain as follows map [1], if we delete "Snapshot1", it will call [2] in vdsm, in last, "virsh blockcommit' will be called,
but if we delete "Snapshot2", it will call [3] in vdsm, what the "sdm.api.merge.Job" means?  And I can find"blockCommit" used in vdsm by [4],
rather than "blockPull" is not used as [5], why we don't use it to merge snapshot to topVolume?








[1]


[2] https://github.com/oVirt/vdsm/blob/2b98daffb2c2dec1bbbd3427d3d32861d77f01a7/lib/vdsm/virt/vm.py#L5744


[3] https://github.com/oVirt/vdsm/blob/98e6a5d1ad1b097b9c993dca33372f970a3adce4/lib/vdsm/API.py#L1655
[4]
$ grep -nR "blockCommit"
lib/vdsm/api/vdsm-api.yml:287:            commit: A blockCommit operation (backward
lib/vdsm/api/vdsm-api.html:2413:<tr><td class="attrlist">commit</td><td class="attrlist"></td><td class="attrlist">A blockCommit operation (backward merge)</td></tr>
vdsm/virt/vm.py:4909:                ret = self._dom.blockCommit(drive.path, base, top, bandwidth,
vdsm/virt/vm.py:4912:                    raise RuntimeError("blockCommit failed rc:%i", ret)
vdsm/virt/vm.py:4918:        # blockCommit will cause data to be written into the base volume.
vdsm/virt/vm.py:5238:        # volume automatically as part of the blockCommit operation.  Update


[5]
$ grep -nR "blockPull"
lib/vdsm/api/vdsm-api.yml:290:            pull: A blockPull operation (forward merge)
lib/vdsm/api/vdsm-api.html:2412:<tr><td class="attrlist">pull</td><td class="attrlist"></td><td class="attrlist">A blockPull operation (forward merge)</td></tr>








-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/devel/attachments/20180118/4d4da1ca/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 4980 bytes
Desc: not available
URL: <http://lists.ovirt.org/pipermail/devel/attachments/20180118/4d4da1ca/attachment-0001.png>


More information about the Devel mailing list