[Pkg-libvirt-commits] [libguestfs] 29/40: resize: Don't test MBR extended partitions while virt-resize handling is broken.
Hilko Bengen
bengen at moszumanska.debian.org
Fri Oct 3 14:49:14 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag debian/1%1.27.57-1
in repository libguestfs.
commit 7357dcd8789be73952ba3a294f1c34eb18ec2e31
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Tue Sep 30 11:27:35 2014 +0100
resize: Don't test MBR extended partitions while virt-resize handling is broken.
The intention is to fix virt-resize and then revert this commit.
---
resize/test-virt-resize.pl | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/resize/test-virt-resize.pl b/resize/test-virt-resize.pl
index 7c8faf9..a40f86c 100755
--- a/resize/test-virt-resize.pl
+++ b/resize/test-virt-resize.pl
@@ -74,6 +74,14 @@ if (rand () <= 0.5) {
# If $nr_parts >= 4 && $part_type = "mbr" then this implies creating
# an extended partition (#4) and zero or more logical partitions.
my $nr_parts = 1 + int (rand (7));
+
+# XXX Temporarily restriction XXX
+# Currently virt-resize is broken when dealing with any extended
+# partition, so don't test this for the moment.
+if ($part_type eq "mbr" && $nr_parts >= 4) {
+ $nr_parts = 3;
+}
+
# expand (1) or shrink (0)
my $expand = 0;
if (rand () >= 0.2) {
--
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