thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone

Blame SOURCES/kvm-qemu-iotests-Don-t-run-005-on-vmdk-split-formats.patch

9ae3a8
From 25a620f2e952cdbc10b148f403013e07e0b7285f Mon Sep 17 00:00:00 2001
9ae3a8
Message-Id: <25a620f2e952cdbc10b148f403013e07e0b7285f.1418766606.git.jen@redhat.com>
9ae3a8
In-Reply-To: <6f81b4847eb68ebdf54a8f1a771e19d112d74152.1418766606.git.jen@redhat.com>
9ae3a8
References: <6f81b4847eb68ebdf54a8f1a771e19d112d74152.1418766606.git.jen@redhat.com>
9ae3a8
From: Fam Zheng <famz@redhat.com>
9ae3a8
Date: Thu, 4 Dec 2014 00:05:04 -0600
9ae3a8
Subject: [CHANGE 10/31] qemu-iotests: Don't run 005 on vmdk split formats
9ae3a8
To: rhvirt-patches@redhat.com,
9ae3a8
    jen@redhat.com
9ae3a8
9ae3a8
RH-Author: Fam Zheng <famz@redhat.com>
9ae3a8
Message-id: <1417651524-18041-11-git-send-email-famz@redhat.com>
9ae3a8
Patchwork-id: 62683
9ae3a8
O-Subject: [RHEL-7.1 qemu-kvm PATCH v5 10/30] qemu-iotests: Don't run 005 on vmdk split formats
9ae3a8
Bugzilla: 1002493
9ae3a8
RH-Acked-by: Jeffrey Cody <jcody@redhat.com>
9ae3a8
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
9ae3a8
RH-Acked-by: Max Reitz <mreitz@redhat.com>
9ae3a8
9ae3a8
There would be too many extents that VMDK driver can't open all of them:
9ae3a8
9ae3a8
 >  005 0s ... - output mismatch (see 005.out.bad)
9ae3a8
 >  --- 005.out     2013-12-24 09:27:27.608181030 +0800
9ae3a8
 >  +++ 005.out.bad 2014-02-13 10:00:15.282184557 +0800
9ae3a8
 >  @@ -4,10 +4,10 @@
9ae3a8
 >   Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=5368709120000
9ae3a8
 >
9ae3a8
 >   small read
9ae3a8
 >  -read 4096/4096 bytes at offset 1024
9ae3a8
 >  -4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
9ae3a8
 >  +qemu-io: can't open device /tmp/qemu-iotests/t.vmdk: Could not open '/tmp/qemu-iotests/t-s1016.vmdk': Too many open files
9ae3a8
 >  +no file open, try 'help open'
9ae3a8
 >
9ae3a8
 >   small write
9ae3a8
 >  -wrote 4096/4096 bytes at offset 8192
9ae3a8
 >  -4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
9ae3a8
 >  +qemu-io: can't open device /tmp/qemu-iotests/t.vmdk: Could not open '/tmp/qemu-iotests/t-s1016.vmdk': Too many open files
9ae3a8
 >  +no file open, try 'help open'
9ae3a8
 >   *** done
9ae3a8
9ae3a8
So disable the two subformats.
9ae3a8
9ae3a8
Signed-off-by: Fam Zheng <famz@redhat.com>
9ae3a8
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
9ae3a8
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
9ae3a8
(cherry picked from commit 2aa4a86f59c7093e03d2ec18c5d5f08c957d1a78)
9ae3a8
Signed-off-by: Fam Zheng <famz@redhat.com>
9ae3a8
Signed-off-by: Jeff E. Nelson <jen@redhat.com>
9ae3a8
---
9ae3a8
 tests/qemu-iotests/005 | 2 ++
9ae3a8
 1 file changed, 2 insertions(+)
9ae3a8
9ae3a8
diff --git a/tests/qemu-iotests/005 b/tests/qemu-iotests/005
9ae3a8
index 9abcb84..ba1236d 100755
9ae3a8
--- a/tests/qemu-iotests/005
9ae3a8
+++ b/tests/qemu-iotests/005
9ae3a8
@@ -44,6 +44,8 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
9ae3a8
 _supported_fmt generic
9ae3a8
 _supported_proto generic
9ae3a8
 _supported_os Linux
9ae3a8
+_unsupported_imgopts "subformat=twoGbMaxExtentFlat" \
9ae3a8
+                     "subformat=twoGbMaxExtentSparse"
9ae3a8
 
9ae3a8
 # vpc is limited to 127GB, so we can't test it here
9ae3a8
 if [ "$IMGFMT" = "vpc" ]; then
9ae3a8
-- 
9ae3a8
2.1.0
9ae3a8