Yeela Kaplan has uploaded a new change for review.
Change subject: lib: add rebase to qemuImg module ......................................................................
lib: add rebase to qemuImg module
Change-Id: I78e5584e59deaa5c302b1da67f5e3b840f6aa222 Signed-off-by: Yeela Kaplan ykaplan@redhat.com --- M lib/vdsm/qemuImg.py 1 file changed, 21 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/29/19229/1
diff --git a/lib/vdsm/qemuImg.py b/lib/vdsm/qemuImg.py index e9a328c..24d6940 100644 --- a/lib/vdsm/qemuImg.py +++ b/lib/vdsm/qemuImg.py @@ -167,3 +167,24 @@
if rc != 0: raise QImgError(rc, out, err) + + +def rebase(image, backing, format=None, backingFormat=None, unsafe=False): + cmd = [_qemuimg.cmd, "rebase"] + + if format: + cmd.extend(("-f", format)) + + if unsafe: + cmd.append("-u") + + cmd.extend(("-b", backing)) + + if backingFormat: + cmd.extend(("-F", backingFormat)) + + cmd.append(image) + rc, out, err = utils.execCmd(cmd) + + if rc != 0: + raise QImgError(rc, out, err)
oVirt Jenkins CI Server has posted comments on this change.
Change subject: lib: add rebase to qemuImg module ......................................................................
Patch Set 1:
Build Successful
http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/4414/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit_el/3517/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/4333/ : SUCCESS
Dan Kenigsberg has posted comments on this change.
Change subject: lib: add rebase to qemuImg module ......................................................................
Patch Set 1: Code-Review+2
Ayal Baron has posted comments on this change.
Change subject: lib: add rebase to qemuImg module ......................................................................
Patch Set 1: Code-Review+1
Itamar Heim has posted comments on this change.
Change subject: lib: add rebase to qemuImg module ......................................................................
Patch Set 1:
ping
Itamar Heim has abandoned this change.
Change subject: lib: add rebase to qemuImg module ......................................................................
Abandoned
abandoning per no reply. please restore if still relevant.
vdsm-patches@lists.fedorahosted.org