qemu/tests/qemu-iotests
Stefan Hajnoczi 550830f935 block: delete cow block driver
This patch removes support for the cow file format.

Normally we do not break backwards compatibility but in this case there
is no impact and it is the most logical option.  Extraordinary claims
require extraordinary evidence so I will show why removing the cow block
driver is the right thing to do.

The cow file format is the disk image format for Usermode Linux, a way
of running a Linux system in userspace.  The performance of UML was
never great and it was hacky, but it enjoyed some popularity before
hardware virtualization support became mainstream.

QEMU's block/cow.c is supposed to read this image file format.
Unfortunately the file format was underspecified:

1. Earlier Linux versions used the MAXPATHLEN constant for the backing
   filename field.  The value of MAXPATHLEN can change, so Linux
   switched to a 4096 literal but QEMU has a 1024 literal.

2. Padding was not used on the header struct (both in the Linux kernel
   and in QEMU) so the struct layout varied across architectures.  In
   particular, i386 and x86_64 were different due to int64_t alignment
   differences.  Linux now uses __attribute__((packed)), QEMU does not.

Therefore:

1. QEMU cow images do not conform to the Linux cow image file format.

2. cow images cannot be shared between different host architectures.

This means QEMU cow images are useless and QEMU has not had bug reports
from users actually hitting these issues.

Let's get rid of this thing, it serves no purpose and no one will be
affected.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-id: 1410877464-20481-1-git-send-email-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2014-09-22 11:39:45 +01:00
..
001
002
003
004
006
007
008
009
010
011
012
015
021
022
027
031
2014-06-27 20:00:00 +02:00
032
033
035
039
2014-06-27 20:00:00 +02:00
042
044
045
047
049
050
053
054
2014-06-27 20:00:00 +02:00
057
061
2014-06-27 20:00:00 +02:00
062
066
068
069
2014-09-22 11:39:45 +01:00
072
2014-09-22 11:39:45 +01:00
2014-01-22 12:07:18 +01:00
075
2014-04-01 13:59:47 +02:00
077
2014-02-09 09:12:38 +01:00
2014-01-24 17:40:25 +01:00
078
2014-04-11 13:59:49 +02:00
2014-04-11 13:59:49 +02:00
083
2014-06-27 20:00:01 +02:00
088
2014-04-01 13:59:47 +02:00
089
2014-05-28 14:28:46 +02:00
2014-05-28 14:28:46 +02:00
092
2014-05-19 11:36:49 +02:00
099
2014-09-22 11:39:45 +01:00
100
2014-08-29 14:10:15 +01:00
2014-06-27 20:00:00 +02:00
2014-09-22 11:39:45 +01:00
2014-06-27 20:00:00 +02:00
2014-06-24 20:01:24 +04:00
2014-06-27 20:00:00 +02:00

=== This is the QEMU I/O test suite ===

* Intro

This package contains a simple test suite for the I/O layer of qemu.
It does not require a guest, but only the qemu, qemu-img and qemu-io
binaries.  This does limit it to exercise the low-level I/O path only
but no actual block drivers like ide, scsi or virtio.

* Usage

Just run ./check to run all tests for the raw image format, or ./check
-qcow2 to test the qcow2 image format.  The output of ./check -h explains
additional options to test further image formats or I/O methods.

* Feedback and patches

Please send improvements to the test suite, general feedback or just
reports of failing tests cases to qemu-devel@savannah.nongnu.org.