[Pkg-libvirt-commits] [libguestfs] 113/146: tests/lvm: Remove use of deprecated sfdiskM API.

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 29 17:01:14 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch master
in repository libguestfs.

commit efbdde164fdc3062765aeba4ba21341adaecca97
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Mon Jan 19 15:00:57 2015 +0000

    tests/lvm: Remove use of deprecated sfdiskM API.
    
    See: https://bugzilla.redhat.com/show_bug.cgi?id=1183236
    for the sorry tale.
    
    (cherry picked from commit 19c09bcdee62f86f78c6338de0ccddc3bce4d955)
---
 tests/lvm/test-lvm-mapping.pl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/lvm/test-lvm-mapping.pl b/tests/lvm/test-lvm-mapping.pl
index 2509231..8353333 100755
--- a/tests/lvm/test-lvm-mapping.pl
+++ b/tests/lvm/test-lvm-mapping.pl
@@ -30,7 +30,9 @@ $g->add_drive_scratch (256 * 1024 * 1024);
 $g->launch ();
 
 # Create an arrangement of PVs, VGs and LVs.
-$g->sfdiskM ("/dev/sda", [",127", "128,"]);
+$g->part_init ("/dev/sda", "mbr");
+$g->part_add ("/dev/sda", "p", 2048, 128*1024/2-1);
+$g->part_add ("/dev/sda", "p", 128*1024/2, -64);
 
 $g->pvcreate ("/dev/sda1");
 $g->pvcreate ("/dev/sda2");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list