1
The following changes since commit 55b1f14cefcb19ce6d5e28c4c83404230888aa7e:
1
The following changes since commit ba29883206d92a29ad5a466e679ccfc2ee6132ef:
2
2
3
Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-3.0-pull-request' into staging (2018-07-23 14:03:14 +0100)
3
Merge remote-tracking branch 'remotes/borntraeger/tags/s390x-20200310' into staging (2020-03-10 16:50:28 +0000)
4
4
5
are available in the git repository at:
5
are available in the Git repository at:
6
6
7
git://repo.or.cz/qemu/kevin.git tags/for-upstream
7
git://repo.or.cz/qemu/kevin.git tags/for-upstream
8
8
9
for you to fetch changes up to 3e31b4e17064d22e533071aaa57d3f01499ef910:
9
for you to fetch changes up to 8bb3b023f2055054ee119cb45b42d2b14be7fc8a:
10
10
11
block/vvfat: Disable debug message by default (2018-07-23 16:50:43 +0200)
11
qemu-iotests: adding LUKS cleanup for non-UTF8 secret error (2020-03-11 15:54:38 +0100)
12
12
13
----------------------------------------------------------------
13
----------------------------------------------------------------
14
Block layer patches:
14
Block layer patches:
15
15
16
- vvfat: Disable debug message by default
16
- Relax restrictions for blockdev-snapshot (allows libvirt to do live
17
- qemu-iotests fixes
17
storage migration with blockdev-mirror)
18
- Fix typos in comments
18
- luks: Delete created files when block_crypto_co_create_opts_luks fails
19
- Fix memleaks in qmp_object_add
19
20
20
----------------------------------------------------------------
21
----------------------------------------------------------------
21
John Snow (1):
22
Daniel Henrique Barboza (4):
22
iotests: remove LUKS support from test 226
23
block: introducing 'bdrv_co_delete_file' interface
24
block.c: adding bdrv_co_delete_file
25
crypto.c: cleanup created file when block_crypto_co_create_opts_luks fails
26
qemu-iotests: adding LUKS cleanup for non-UTF8 secret error
23
27
24
Kevin Wolf (1):
28
Kevin Wolf (6):
25
qemu-iotests: Use host_device instead of file in 149
29
block: Make bdrv_get_cumulative_perm() public
30
block: Relax restrictions for blockdev-snapshot
31
iotests: Fix run_job() with use_log=False
32
iotests: Test mirror with temporarily disabled target backing file
33
block: Fix cross-AioContext blockdev-snapshot
34
iotests: Add iothread cases to 155
26
35
27
Max Reitz (2):
36
Pan Nengyuan (1):
28
iotest: Fix filtering order in 226
37
qom-qmp-cmds: fix two memleaks in qmp_object_add
29
iotests: Disallow compat=0.10 in 223
30
38
31
Peter Lieven (1):
39
Peter Krempa (1):
32
qemu-img: avoid overflow of min_sparse parameter
40
qapi: Add '@allow-write-only-overlay' feature for 'blockdev-snapshot'
33
41
34
Stefan Weil (1):
42
Philippe Mathieu-Daudé (1):
35
block: Fix typos in comments (found by codespell)
43
tests/qemu-iotests: Fix socket_scm_helper build path
36
44
37
Thomas Huth (1):
45
qapi/block-core.json | 9 ++++-
38
block/vvfat: Disable debug message by default
46
include/block/block.h | 1 +
47
include/block/block_int.h | 7 ++++
48
block.c | 33 ++++++++++++++--
49
block/crypto.c | 18 +++++++++
50
block/file-posix.c | 23 +++++++++++
51
blockdev.c | 30 ++++-----------
52
qom/qom-qmp-cmds.c | 16 +++-----
53
tests/qemu-iotests/iotests.py | 5 ++-
54
tests/Makefile.include | 1 +
55
tests/qemu-iotests/085.out | 4 +-
56
tests/qemu-iotests/155 | 88 ++++++++++++++++++++++++++++++++++++-------
57
tests/qemu-iotests/155.out | 4 +-
58
tests/qemu-iotests/282 | 67 ++++++++++++++++++++++++++++++++
59
tests/qemu-iotests/282.out | 11 ++++++
60
tests/qemu-iotests/group | 1 +
61
tests/qtest/Makefile.include | 1 -
62
17 files changed, 262 insertions(+), 57 deletions(-)
63
create mode 100755 tests/qemu-iotests/282
64
create mode 100644 tests/qemu-iotests/282.out
39
65
40
block.c | 2 +-
41
block/backup.c | 4 +-
42
block/curl.c | 2 +-
43
block/gluster.c | 2 +-
44
block/vhdx.c | 2 +-
45
block/vvfat.c | 4 +-
46
qemu-img.c | 16 ++-
47
tests/qemu-iotests/149 | 2 +-
48
tests/qemu-iotests/149.out | 344 ++++++++++++++++++++++-----------------------
49
tests/qemu-iotests/223 | 2 +
50
tests/qemu-iotests/226 | 7 +-
51
11 files changed, 199 insertions(+), 188 deletions(-)
52
66
diff view generated by jsdifflib
New patch
1
From: Pan Nengyuan <pannengyuan@huawei.com>
1
2
3
'type/id' forgot to free in qmp_object_add, this patch fix that.
4
5
The leak stack:
6
Direct leak of 84 byte(s) in 6 object(s) allocated from:
7
#0 0x7fe2a5ebf768 in __interceptor_malloc (/lib64/libasan.so.5+0xef768)
8
#1 0x7fe2a5044445 in g_malloc (/lib64/libglib-2.0.so.0+0x52445)
9
#2 0x7fe2a505dd92 in g_strdup (/lib64/libglib-2.0.so.0+0x6bd92)
10
#3 0x56344954e692 in qmp_object_add /mnt/sdb/qemu-new/qemu_test/qemu/qom/qom-qmp-cmds.c:258
11
#4 0x563449960f5a in do_qmp_dispatch /mnt/sdb/qemu-new/qemu_test/qemu/qapi/qmp-dispatch.c:132
12
#5 0x563449960f5a in qmp_dispatch /mnt/sdb/qemu-new/qemu_test/qemu/qapi/qmp-dispatch.c:175
13
#6 0x563449498a30 in monitor_qmp_dispatch /mnt/sdb/qemu-new/qemu_test/qemu/monitor/qmp.c:145
14
#7 0x56344949a64f in monitor_qmp_bh_dispatcher /mnt/sdb/qemu-new/qemu_test/qemu/monitor/qmp.c:234
15
#8 0x563449a92a3a in aio_bh_call /mnt/sdb/qemu-new/qemu_test/qemu/util/async.c:136
16
17
Direct leak of 54 byte(s) in 6 object(s) allocated from:
18
#0 0x7fe2a5ebf768 in __interceptor_malloc (/lib64/libasan.so.5+0xef768)
19
#1 0x7fe2a5044445 in g_malloc (/lib64/libglib-2.0.so.0+0x52445)
20
#2 0x7fe2a505dd92 in g_strdup (/lib64/libglib-2.0.so.0+0x6bd92)
21
#3 0x56344954e6c4 in qmp_object_add /mnt/sdb/qemu-new/qemu_test/qemu/qom/qom-qmp-cmds.c:267
22
#4 0x563449960f5a in do_qmp_dispatch /mnt/sdb/qemu-new/qemu_test/qemu/qapi/qmp-dispatch.c:132
23
#5 0x563449960f5a in qmp_dispatch /mnt/sdb/qemu-new/qemu_test/qemu/qapi/qmp-dispatch.c:175
24
#6 0x563449498a30 in monitor_qmp_dispatch /mnt/sdb/qemu-new/qemu_test/qemu/monitor/qmp.c:145
25
#7 0x56344949a64f in monitor_qmp_bh_dispatcher /mnt/sdb/qemu-new/qemu_test/qemu/monitor/qmp.c:234
26
#8 0x563449a92a3a in aio_bh_call /mnt/sdb/qemu-new/qemu_test/qemu/util/async.c:136
27
28
Fixes: 5f07c4d60d091320186e7b0edaf9ed2cc16b2d1e
29
Reported-by: Euler Robot <euler.robot@huawei.com>
30
Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com>
31
Message-Id: <20200310064640.5059-1-pannengyuan@huawei.com>
32
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
33
Acked-by: Igor Mammedov <imammedo@redhat.com>
34
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
35
---
36
qom/qom-qmp-cmds.c | 16 ++++++----------
37
1 file changed, 6 insertions(+), 10 deletions(-)
38
39
diff --git a/qom/qom-qmp-cmds.c b/qom/qom-qmp-cmds.c
40
index XXXXXXX..XXXXXXX 100644
41
--- a/qom/qom-qmp-cmds.c
42
+++ b/qom/qom-qmp-cmds.c
43
@@ -XXX,XX +XXX,XX @@ void qmp_object_add(QDict *qdict, QObject **ret_data, Error **errp)
44
QDict *pdict;
45
Visitor *v;
46
Object *obj;
47
- const char *type;
48
- const char *id;
49
+ g_autofree char *type = NULL;
50
+ g_autofree char *id = NULL;
51
52
- type = qdict_get_try_str(qdict, "qom-type");
53
+ type = g_strdup(qdict_get_try_str(qdict, "qom-type"));
54
if (!type) {
55
error_setg(errp, QERR_MISSING_PARAMETER, "qom-type");
56
return;
57
- } else {
58
- type = g_strdup(type);
59
- qdict_del(qdict, "qom-type");
60
}
61
+ qdict_del(qdict, "qom-type");
62
63
- id = qdict_get_try_str(qdict, "id");
64
+ id = g_strdup(qdict_get_try_str(qdict, "id"));
65
if (!id) {
66
error_setg(errp, QERR_MISSING_PARAMETER, "id");
67
return;
68
- } else {
69
- id = g_strdup(id);
70
- qdict_del(qdict, "id");
71
}
72
+ qdict_del(qdict, "id");
73
74
props = qdict_get(qdict, "props");
75
if (props) {
76
--
77
2.20.1
78
79
diff view generated by jsdifflib
New patch
1
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2
Message-Id: <20200310113831.27293-2-kwolf@redhat.com>
3
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
4
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
5
---
6
include/block/block_int.h | 3 +++
7
block.c | 6 ++----
8
2 files changed, 5 insertions(+), 4 deletions(-)
1
9
10
diff --git a/include/block/block_int.h b/include/block/block_int.h
11
index XXXXXXX..XXXXXXX 100644
12
--- a/include/block/block_int.h
13
+++ b/include/block/block_int.h
14
@@ -XXX,XX +XXX,XX @@ BdrvChild *bdrv_root_attach_child(BlockDriverState *child_bs,
15
void *opaque, Error **errp);
16
void bdrv_root_unref_child(BdrvChild *child);
17
18
+void bdrv_get_cumulative_perm(BlockDriverState *bs, uint64_t *perm,
19
+ uint64_t *shared_perm);
20
+
21
/**
22
* Sets a BdrvChild's permissions. Avoid if the parent is a BDS; use
23
* bdrv_child_refresh_perms() instead and make the parent's
24
diff --git a/block.c b/block.c
25
index XXXXXXX..XXXXXXX 100644
26
--- a/block.c
27
+++ b/block.c
28
@@ -XXX,XX +XXX,XX @@ static int bdrv_child_check_perm(BdrvChild *c, BlockReopenQueue *q,
29
bool *tighten_restrictions, Error **errp);
30
static void bdrv_child_abort_perm_update(BdrvChild *c);
31
static void bdrv_child_set_perm(BdrvChild *c, uint64_t perm, uint64_t shared);
32
-static void bdrv_get_cumulative_perm(BlockDriverState *bs, uint64_t *perm,
33
- uint64_t *shared_perm);
34
35
typedef struct BlockReopenQueueEntry {
36
bool prepared;
37
@@ -XXX,XX +XXX,XX @@ static void bdrv_set_perm(BlockDriverState *bs, uint64_t cumulative_perms,
38
}
39
}
40
41
-static void bdrv_get_cumulative_perm(BlockDriverState *bs, uint64_t *perm,
42
- uint64_t *shared_perm)
43
+void bdrv_get_cumulative_perm(BlockDriverState *bs, uint64_t *perm,
44
+ uint64_t *shared_perm)
45
{
46
BdrvChild *c;
47
uint64_t cumulative_perms = 0;
48
--
49
2.20.1
50
51
diff view generated by jsdifflib
1
From: Thomas Huth <thuth@redhat.com>
1
blockdev-snapshot returned an error if the overlay was already in use,
2
which it defined as having any BlockBackend parent. This is in fact both
3
too strict (some parents can tolerate the change of visible data caused
4
by attaching a backing file) and too loose (some non-BlockBackend
5
parents may not be happy with it).
2
6
3
It's annoying to see this debug message every time you use vvfat.
7
One important use case that is prevented by the too strict check is live
4
Disable it with the DLOG() macro by default, as it is done with the
8
storage migration with blockdev-mirror. Here, the target node is
5
other debug messages in this file.
9
usually opened without a backing file so that the active layer is
10
mirrored while its backing chain can be copied in the background.
6
11
7
Signed-off-by: Thomas Huth <thuth@redhat.com>
12
The backing chain should be attached to the mirror target node when
8
Reviewed-by: John Snow <jsnow@redhat.com>
13
finalising the job, just before switching the users of the source node
14
to the new copy (at which point the mirror job still has a reference to
15
the node). drive-mirror did this automatically, but with blockdev-mirror
16
this is the job of the QMP client, so it needs a way to do this.
17
18
blockdev-snapshot is the obvious way, so this patch makes it work in
19
this scenario. The new condition is that no parent uses CONSISTENT_READ
20
permissions. This will ensure that the operation will still be blocked
21
when the node is attached to the guest device, so blockdev-snapshot
22
remains safe.
23
24
(For the sake of completeness, x-blockdev-reopen can be used to achieve
25
the same, however it is a big hammer, performs the graph change
26
completely unchecked and is still experimental. So even with the option
27
of using x-blockdev-reopen, there are reasons why blockdev-snapshot
28
should be able to perform this operation.)
29
30
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
31
Message-Id: <20200310113831.27293-3-kwolf@redhat.com>
32
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
33
Tested-by: Peter Krempa <pkrempa@redhat.com>
9
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
34
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
10
---
35
---
11
block/vvfat.c | 4 ++--
36
blockdev.c | 14 ++++++++------
12
1 file changed, 2 insertions(+), 2 deletions(-)
37
tests/qemu-iotests/085.out | 4 ++--
38
2 files changed, 10 insertions(+), 8 deletions(-)
13
39
14
diff --git a/block/vvfat.c b/block/vvfat.c
40
diff --git a/blockdev.c b/blockdev.c
15
index XXXXXXX..XXXXXXX 100644
41
index XXXXXXX..XXXXXXX 100644
16
--- a/block/vvfat.c
42
--- a/blockdev.c
17
+++ b/block/vvfat.c
43
+++ b/blockdev.c
18
@@ -XXX,XX +XXX,XX @@ static int vvfat_open(BlockDriverState *bs, QDict *options, int flags,
44
@@ -XXX,XX +XXX,XX @@ static void external_snapshot_prepare(BlkActionState *common,
19
s->fat2 = NULL;
45
TransactionAction *action = common->action;
20
s->downcase_short_names = 1;
46
AioContext *aio_context;
21
47
AioContext *old_context;
22
- fprintf(stderr, "vvfat %s chs %d,%d,%d\n",
48
+ uint64_t perm, shared;
23
- dirname, cyls, heads, secs);
49
int ret;
24
+ DLOG(fprintf(stderr, "vvfat %s chs %d,%d,%d\n",
50
25
+ dirname, cyls, heads, secs));
51
/* 'blockdev-snapshot' and 'blockdev-snapshot-sync' have similar
26
52
@@ -XXX,XX +XXX,XX @@ static void external_snapshot_prepare(BlkActionState *common,
27
s->sector_count = cyls * heads * secs - s->offset_to_bootsector;
53
goto out;
54
}
55
56
- if (bdrv_has_blk(state->new_bs)) {
57
+ /*
58
+ * Allow attaching a backing file to an overlay that's already in use only
59
+ * if the parents don't assume that they are already seeing a valid image.
60
+ * (Specifically, allow it as a mirror target, which is write-only access.)
61
+ */
62
+ bdrv_get_cumulative_perm(state->new_bs, &perm, &shared);
63
+ if (perm & BLK_PERM_CONSISTENT_READ) {
64
error_setg(errp, "The overlay is already in use");
65
goto out;
66
}
67
68
- if (bdrv_op_is_blocked(state->new_bs, BLOCK_OP_TYPE_EXTERNAL_SNAPSHOT,
69
- errp)) {
70
- goto out;
71
- }
72
-
73
if (state->new_bs->backing != NULL) {
74
error_setg(errp, "The overlay already has a backing image");
75
goto out;
76
diff --git a/tests/qemu-iotests/085.out b/tests/qemu-iotests/085.out
77
index XXXXXXX..XXXXXXX 100644
78
--- a/tests/qemu-iotests/085.out
79
+++ b/tests/qemu-iotests/085.out
80
@@ -XXX,XX +XXX,XX @@ Formatting 'TEST_DIR/12-snapshot-v0.IMGFMT', fmt=IMGFMT size=134217728 backing_f
81
=== Invalid command - cannot create a snapshot using a file BDS ===
82
83
{ 'execute': 'blockdev-snapshot', 'arguments': { 'node':'virtio0', 'overlay':'file_12' } }
84
-{"error": {"class": "GenericError", "desc": "The overlay does not support backing images"}}
85
+{"error": {"class": "GenericError", "desc": "The overlay is already in use"}}
86
87
=== Invalid command - snapshot node used as active layer ===
88
89
@@ -XXX,XX +XXX,XX @@ Formatting 'TEST_DIR/12-snapshot-v0.IMGFMT', fmt=IMGFMT size=134217728 backing_f
90
=== Invalid command - snapshot node used as backing hd ===
91
92
{ 'execute': 'blockdev-snapshot', 'arguments': { 'node': 'virtio0', 'overlay':'snap_11' } }
93
-{"error": {"class": "GenericError", "desc": "Node 'snap_11' is busy: node is used as backing hd of 'snap_12'"}}
94
+{"error": {"class": "GenericError", "desc": "The overlay is already in use"}}
95
96
=== Invalid command - snapshot node has a backing image ===
28
97
29
--
98
--
30
2.13.6
99
2.20.1
31
100
32
101
diff view generated by jsdifflib
New patch
1
The 'job-complete' QMP command should be run with qmp() rather than
2
qmp_log() if use_log=False is passed.
1
3
4
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
5
Message-Id: <20200310113831.27293-4-kwolf@redhat.com>
6
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
7
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
8
---
9
tests/qemu-iotests/iotests.py | 5 ++++-
10
1 file changed, 4 insertions(+), 1 deletion(-)
11
12
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py
13
index XXXXXXX..XXXXXXX 100644
14
--- a/tests/qemu-iotests/iotests.py
15
+++ b/tests/qemu-iotests/iotests.py
16
@@ -XXX,XX +XXX,XX @@ class VM(qtest.QEMUQtestMachine):
17
if use_log:
18
log('Job failed: %s' % (j['error']))
19
elif status == 'ready':
20
- self.qmp_log('job-complete', id=job)
21
+ if use_log:
22
+ self.qmp_log('job-complete', id=job)
23
+ else:
24
+ self.qmp('job-complete', id=job)
25
elif status == 'pending' and not auto_finalize:
26
if pre_finalize:
27
pre_finalize()
28
--
29
2.20.1
30
31
diff view generated by jsdifflib
New patch
1
The newly tested scenario is a common live storage migration scenario:
2
The target node is opened without a backing file so that the active
3
layer is mirrored while its backing chain can be copied in the
4
background.
1
5
6
The backing chain should be attached to the mirror target node when
7
finalising the job, just before switching the users of the source node
8
to the new copy (at which point the mirror job still has a reference to
9
the node). drive-mirror did this automatically, but with blockdev-mirror
10
this is the job of the QMP client.
11
12
This patch adds test cases for two ways to achieve the desired result,
13
using either x-blockdev-reopen or blockdev-snapshot.
14
15
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
16
Message-Id: <20200310113831.27293-5-kwolf@redhat.com>
17
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
18
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
19
---
20
tests/qemu-iotests/155 | 56 ++++++++++++++++++++++++++++++++++----
21
tests/qemu-iotests/155.out | 4 +--
22
2 files changed, 53 insertions(+), 7 deletions(-)
23
24
diff --git a/tests/qemu-iotests/155 b/tests/qemu-iotests/155
25
index XXXXXXX..XXXXXXX 100755
26
--- a/tests/qemu-iotests/155
27
+++ b/tests/qemu-iotests/155
28
@@ -XXX,XX +XXX,XX @@ target_img = os.path.join(iotests.test_dir, 'target.' + iotests.imgfmt)
29
# image during runtime, only makes sense if
30
# target_blockdev_backing is not None
31
# (None: same as target_backing)
32
+# target_open_with_backing: If True, the target image is added with its backing
33
+# chain opened right away. If False, blockdev-add
34
+# opens it without a backing file and job completion
35
+# is supposed to open the backing chain.
36
37
class BaseClass(iotests.QMPTestCase):
38
target_blockdev_backing = None
39
target_real_backing = None
40
+ target_open_with_backing = True
41
42
def setUp(self):
43
qemu_img('create', '-f', iotests.imgfmt, back0_img, '1440K')
44
@@ -XXX,XX +XXX,XX @@ class BaseClass(iotests.QMPTestCase):
45
options = { 'node-name': 'target',
46
'driver': iotests.imgfmt,
47
'file': { 'driver': 'file',
48
+ 'node-name': 'target-file',
49
'filename': target_img } }
50
- if self.target_blockdev_backing:
51
- options['backing'] = self.target_blockdev_backing
52
+
53
+ if not self.target_open_with_backing:
54
+ options['backing'] = None
55
+ elif self.target_blockdev_backing:
56
+ options['backing'] = self.target_blockdev_backing
57
58
result = self.vm.qmp('blockdev-add', **options)
59
self.assert_qmp(result, 'return', {})
60
@@ -XXX,XX +XXX,XX @@ class BaseClass(iotests.QMPTestCase):
61
# cmd: Mirroring command to execute, either drive-mirror or blockdev-mirror
62
63
class MirrorBaseClass(BaseClass):
64
+ def openBacking(self):
65
+ pass
66
+
67
def runMirror(self, sync):
68
if self.cmd == 'blockdev-mirror':
69
result = self.vm.qmp(self.cmd, job_id='mirror-job', device='source',
70
- sync=sync, target='target')
71
+ sync=sync, target='target',
72
+ auto_finalize=False)
73
else:
74
if self.existing:
75
mode = 'existing'
76
@@ -XXX,XX +XXX,XX @@ class MirrorBaseClass(BaseClass):
77
result = self.vm.qmp(self.cmd, job_id='mirror-job', device='source',
78
sync=sync, target=target_img,
79
format=iotests.imgfmt, mode=mode,
80
- node_name='target')
81
+ node_name='target', auto_finalize=False)
82
83
self.assert_qmp(result, 'return', {})
84
85
- self.complete_and_wait('mirror-job')
86
+ self.vm.run_job('mirror-job', use_log=False, auto_finalize=False,
87
+ pre_finalize=self.openBacking, auto_dismiss=True)
88
89
def testFull(self):
90
self.runMirror('full')
91
@@ -XXX,XX +XXX,XX @@ class TestBlockdevMirrorForcedBacking(MirrorBaseClass):
92
target_blockdev_backing = { 'driver': 'null-co' }
93
target_real_backing = 'null-co://'
94
95
+# Attach the backing chain only during completion, with blockdev-reopen
96
+class TestBlockdevMirrorReopen(MirrorBaseClass):
97
+ cmd = 'blockdev-mirror'
98
+ existing = True
99
+ target_backing = 'null-co://'
100
+ target_open_with_backing = False
101
+
102
+ def openBacking(self):
103
+ if not self.target_open_with_backing:
104
+ result = self.vm.qmp('blockdev-add', node_name="backing",
105
+ driver="null-co")
106
+ self.assert_qmp(result, 'return', {})
107
+ result = self.vm.qmp('x-blockdev-reopen', node_name="target",
108
+ driver=iotests.imgfmt, file="target-file",
109
+ backing="backing")
110
+ self.assert_qmp(result, 'return', {})
111
+
112
+# Attach the backing chain only during completion, with blockdev-snapshot
113
+class TestBlockdevMirrorSnapshot(MirrorBaseClass):
114
+ cmd = 'blockdev-mirror'
115
+ existing = True
116
+ target_backing = 'null-co://'
117
+ target_open_with_backing = False
118
+
119
+ def openBacking(self):
120
+ if not self.target_open_with_backing:
121
+ result = self.vm.qmp('blockdev-add', node_name="backing",
122
+ driver="null-co")
123
+ self.assert_qmp(result, 'return', {})
124
+ result = self.vm.qmp('blockdev-snapshot', node="backing",
125
+ overlay="target")
126
+ self.assert_qmp(result, 'return', {})
127
128
class TestCommit(BaseClass):
129
existing = False
130
diff --git a/tests/qemu-iotests/155.out b/tests/qemu-iotests/155.out
131
index XXXXXXX..XXXXXXX 100644
132
--- a/tests/qemu-iotests/155.out
133
+++ b/tests/qemu-iotests/155.out
134
@@ -XXX,XX +XXX,XX @@
135
-...................
136
+.........................
137
----------------------------------------------------------------------
138
-Ran 19 tests
139
+Ran 25 tests
140
141
OK
142
--
143
2.20.1
144
145
diff view generated by jsdifflib
New patch
1
external_snapshot_prepare() tries to move the overlay to the AioContext
2
of the backing file (the snapshotted node). However, it's possible that
3
this doesn't work, but the backing file can instead be moved to the
4
overlay's AioContext (e.g. opening the backing chain for a mirror
5
target).
1
6
7
bdrv_append() already indirectly uses bdrv_attach_node(), which takes
8
care to move nodes to make sure they use the same AioContext and which
9
tries both directions.
10
11
So the problem has a simple fix: Just delete the unnecessary extra
12
bdrv_try_set_aio_context() call in external_snapshot_prepare() and
13
instead assert in bdrv_append() that both nodes were indeed moved to the
14
same AioContext.
15
16
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
17
Message-Id: <20200310113831.27293-6-kwolf@redhat.com>
18
Tested-by: Peter Krempa <pkrempa@redhat.com>
19
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
20
---
21
block.c | 1 +
22
blockdev.c | 16 ----------------
23
2 files changed, 1 insertion(+), 16 deletions(-)
24
25
diff --git a/block.c b/block.c
26
index XXXXXXX..XXXXXXX 100644
27
--- a/block.c
28
+++ b/block.c
29
@@ -XXX,XX +XXX,XX @@ void bdrv_replace_node(BlockDriverState *from, BlockDriverState *to,
30
bdrv_ref(from);
31
32
assert(qemu_get_current_aio_context() == qemu_get_aio_context());
33
+ assert(bdrv_get_aio_context(from) == bdrv_get_aio_context(to));
34
bdrv_drained_begin(from);
35
36
/* Put all parents into @list and calculate their cumulative permissions */
37
diff --git a/blockdev.c b/blockdev.c
38
index XXXXXXX..XXXXXXX 100644
39
--- a/blockdev.c
40
+++ b/blockdev.c
41
@@ -XXX,XX +XXX,XX @@ static void external_snapshot_prepare(BlkActionState *common,
42
DO_UPCAST(ExternalSnapshotState, common, common);
43
TransactionAction *action = common->action;
44
AioContext *aio_context;
45
- AioContext *old_context;
46
uint64_t perm, shared;
47
- int ret;
48
49
/* 'blockdev-snapshot' and 'blockdev-snapshot-sync' have similar
50
* purpose but a different set of parameters */
51
@@ -XXX,XX +XXX,XX @@ static void external_snapshot_prepare(BlkActionState *common,
52
goto out;
53
}
54
55
- /* Honor bdrv_try_set_aio_context() context acquisition requirements. */
56
- old_context = bdrv_get_aio_context(state->new_bs);
57
- aio_context_release(aio_context);
58
- aio_context_acquire(old_context);
59
-
60
- ret = bdrv_try_set_aio_context(state->new_bs, aio_context, errp);
61
-
62
- aio_context_release(old_context);
63
- aio_context_acquire(aio_context);
64
-
65
- if (ret < 0) {
66
- goto out;
67
- }
68
-
69
/* This removes our old bs and adds the new bs. This is an operation that
70
* can fail, so we need to do it in .prepare; undoing it for abort is
71
* always possible. */
72
--
73
2.20.1
74
75
diff view generated by jsdifflib
New patch
1
This patch adds test cases for attaching the backing chain to a mirror
2
job target right before finalising the job, where the image is in a
3
non-mainloop AioContext (i.e. the backing chain needs to be moved to the
4
AioContext of the mirror target).
1
5
6
This requires switching the test case from virtio-blk to virtio-scsi
7
because virtio-blk only actually starts using the iothreads when the
8
guest driver initialises the device (which never happens in a test case
9
without a guest OS). virtio-scsi always keeps its block nodes in the
10
AioContext of the the requested iothread without guest interaction.
11
12
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
13
Message-Id: <20200310113831.27293-7-kwolf@redhat.com>
14
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
15
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
16
---
17
tests/qemu-iotests/155 | 32 +++++++++++++++++++++++---------
18
tests/qemu-iotests/155.out | 4 ++--
19
2 files changed, 25 insertions(+), 11 deletions(-)
20
21
diff --git a/tests/qemu-iotests/155 b/tests/qemu-iotests/155
22
index XXXXXXX..XXXXXXX 100755
23
--- a/tests/qemu-iotests/155
24
+++ b/tests/qemu-iotests/155
25
@@ -XXX,XX +XXX,XX @@ target_img = os.path.join(iotests.test_dir, 'target.' + iotests.imgfmt)
26
# chain opened right away. If False, blockdev-add
27
# opens it without a backing file and job completion
28
# is supposed to open the backing chain.
29
+# use_iothread: If True, an iothread is configured for the virtio-blk device
30
+# that uses the image being mirrored
31
32
class BaseClass(iotests.QMPTestCase):
33
target_blockdev_backing = None
34
target_real_backing = None
35
target_open_with_backing = True
36
+ use_iothread = False
37
38
def setUp(self):
39
qemu_img('create', '-f', iotests.imgfmt, back0_img, '1440K')
40
@@ -XXX,XX +XXX,XX @@ class BaseClass(iotests.QMPTestCase):
41
'file': {'driver': 'file',
42
'filename': source_img}}
43
self.vm.add_blockdev(self.vm.qmp_to_opts(blockdev))
44
- self.vm.add_device('virtio-blk,id=qdev0,drive=source')
45
+
46
+ if self.use_iothread:
47
+ self.vm.add_object('iothread,id=iothread0')
48
+ iothread = ",iothread=iothread0"
49
+ else:
50
+ iothread = ""
51
+
52
+ self.vm.add_device('virtio-scsi%s' % iothread)
53
+ self.vm.add_device('scsi-hd,id=qdev0,drive=source')
54
+
55
self.vm.launch()
56
57
self.assertIntactSourceBackingChain()
58
@@ -XXX,XX +XXX,XX @@ class MirrorBaseClass(BaseClass):
59
def testFull(self):
60
self.runMirror('full')
61
62
- node = self.findBlockNode('target',
63
- '/machine/peripheral/qdev0/virtio-backend')
64
+ node = self.findBlockNode('target', 'qdev0')
65
self.assertCorrectBackingImage(node, None)
66
self.assertIntactSourceBackingChain()
67
68
def testTop(self):
69
self.runMirror('top')
70
71
- node = self.findBlockNode('target',
72
- '/machine/peripheral/qdev0/virtio-backend')
73
+ node = self.findBlockNode('target', 'qdev0')
74
self.assertCorrectBackingImage(node, back2_img)
75
self.assertIntactSourceBackingChain()
76
77
def testNone(self):
78
self.runMirror('none')
79
80
- node = self.findBlockNode('target',
81
- '/machine/peripheral/qdev0/virtio-backend')
82
+ node = self.findBlockNode('target', 'qdev0')
83
self.assertCorrectBackingImage(node, source_img)
84
self.assertIntactSourceBackingChain()
85
86
@@ -XXX,XX +XXX,XX @@ class TestBlockdevMirrorReopen(MirrorBaseClass):
87
backing="backing")
88
self.assert_qmp(result, 'return', {})
89
90
+class TestBlockdevMirrorReopenIothread(TestBlockdevMirrorReopen):
91
+ use_iothread = True
92
+
93
# Attach the backing chain only during completion, with blockdev-snapshot
94
class TestBlockdevMirrorSnapshot(MirrorBaseClass):
95
cmd = 'blockdev-mirror'
96
@@ -XXX,XX +XXX,XX @@ class TestBlockdevMirrorSnapshot(MirrorBaseClass):
97
overlay="target")
98
self.assert_qmp(result, 'return', {})
99
100
+class TestBlockdevMirrorSnapshotIothread(TestBlockdevMirrorSnapshot):
101
+ use_iothread = True
102
+
103
class TestCommit(BaseClass):
104
existing = False
105
106
@@ -XXX,XX +XXX,XX @@ class TestCommit(BaseClass):
107
108
self.vm.event_wait('BLOCK_JOB_COMPLETED')
109
110
- node = self.findBlockNode(None,
111
- '/machine/peripheral/qdev0/virtio-backend')
112
+ node = self.findBlockNode(None, 'qdev0')
113
self.assert_qmp(node, 'image' + '/backing-image' * 0 + '/filename',
114
back1_img)
115
self.assert_qmp(node, 'image' + '/backing-image' * 1 + '/filename',
116
diff --git a/tests/qemu-iotests/155.out b/tests/qemu-iotests/155.out
117
index XXXXXXX..XXXXXXX 100644
118
--- a/tests/qemu-iotests/155.out
119
+++ b/tests/qemu-iotests/155.out
120
@@ -XXX,XX +XXX,XX @@
121
-.........................
122
+...............................
123
----------------------------------------------------------------------
124
-Ran 25 tests
125
+Ran 31 tests
126
127
OK
128
--
129
2.20.1
130
131
diff view generated by jsdifflib
1
From: Max Reitz <mreitz@redhat.com>
1
From: Peter Krempa <pkrempa@redhat.com>
2
2
3
223 tests persistent dirty bitmaps which are not supported in
3
Anounce that 'blockdev-snapshot' command's permissions allow changing
4
compat=0.10, so that option is unsupported for this test.
4
of the backing file if the 'consistent_read' permission is not required.
5
5
6
Signed-off-by: Max Reitz <mreitz@redhat.com>
6
This is useful for libvirt to allow late opening of the backing chain
7
Tested-by: John Snow <jsnow@redhat.com>
7
during a blockdev-mirror.
8
Reviewed-by: John Snow <jsnow@redhat.com>
8
9
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
10
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
11
Message-Id: <20200310113831.27293-8-kwolf@redhat.com>
9
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
12
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
10
---
13
---
11
tests/qemu-iotests/223 | 2 ++
14
qapi/block-core.json | 9 ++++++++-
12
1 file changed, 2 insertions(+)
15
1 file changed, 8 insertions(+), 1 deletion(-)
13
16
14
diff --git a/tests/qemu-iotests/223 b/tests/qemu-iotests/223
17
diff --git a/qapi/block-core.json b/qapi/block-core.json
15
index XXXXXXX..XXXXXXX 100755
18
index XXXXXXX..XXXXXXX 100644
16
--- a/tests/qemu-iotests/223
19
--- a/qapi/block-core.json
17
+++ b/tests/qemu-iotests/223
20
+++ b/qapi/block-core.json
18
@@ -XXX,XX +XXX,XX @@ trap "_cleanup; exit \$status" 0 1 2 3 15
21
@@ -XXX,XX +XXX,XX @@
19
_supported_fmt qcow2
22
#
20
_supported_proto file # uses NBD as well
23
# For the arguments, see the documentation of BlockdevSnapshot.
21
_supported_os Linux
24
#
22
+# Persistent dirty bitmaps require compat=1.1
25
+# Features:
23
+_unsupported_imgopts 'compat=0.10'
26
+# @allow-write-only-overlay: If present, the check whether this operation is safe
24
27
+# was relaxed so that it can be used to change
25
function do_run_qemu()
28
+# backing file of a destination of a blockdev-mirror.
26
{
29
+# (since 5.0)
30
+#
31
# Since: 2.5
32
#
33
# Example:
34
@@ -XXX,XX +XXX,XX @@
35
#
36
##
37
{ 'command': 'blockdev-snapshot',
38
- 'data': 'BlockdevSnapshot' }
39
+ 'data': 'BlockdevSnapshot',
40
+ 'features': [ 'allow-write-only-overlay' ] }
41
42
##
43
# @change-backing-file:
27
--
44
--
28
2.13.6
45
2.20.1
29
46
30
47
diff view generated by jsdifflib
1
From: Max Reitz <mreitz@redhat.com>
1
From: Philippe Mathieu-Daudé <philmd@redhat.com>
2
2
3
The test directory should be filtered before the image format, otherwise
3
The socket_scm_helper path got corrupted during the mechanical
4
the test will fail if the image format is part of the test directory,
4
refactor moving the qtests files into their own sub-directory.
5
like so:
6
5
7
[...]
6
Fixes: 1e8a1fae7 ("test: Move qtests to a separate directory")
8
-can't open: Could not open 'TEST_DIR/t.IMGFMT': Is a directory
7
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
9
+can't open: Could not open '/tmp/test-IMGFMT/t.IMGFMT': Is a directory
8
Message-Id: <20200306165751.18986-1-philmd@redhat.com>
10
[...]
9
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
11
12
Signed-off-by: Max Reitz <mreitz@redhat.com>
13
Reviewed-by: John Snow <jsnow@redhat.com>
14
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
10
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
15
---
11
---
16
tests/qemu-iotests/226 | 4 ++--
12
tests/Makefile.include | 1 +
17
1 file changed, 2 insertions(+), 2 deletions(-)
13
tests/qtest/Makefile.include | 1 -
14
2 files changed, 1 insertion(+), 1 deletion(-)
18
15
19
diff --git a/tests/qemu-iotests/226 b/tests/qemu-iotests/226
16
diff --git a/tests/Makefile.include b/tests/Makefile.include
20
index XXXXXXX..XXXXXXX 100755
17
index XXXXXXX..XXXXXXX 100644
21
--- a/tests/qemu-iotests/226
18
--- a/tests/Makefile.include
22
+++ b/tests/qemu-iotests/226
19
+++ b/tests/Makefile.include
23
@@ -XXX,XX +XXX,XX @@ for PROTO in "file" "host_device" "host_cdrom"; do
20
@@ -XXX,XX +XXX,XX @@ include $(SRC_PATH)/tests/qtest/Makefile.include
24
echo "=== Testing with driver:$PROTO ==="
21
tests/test-qga$(EXESUF): qemu-ga$(EXESUF)
25
echo
22
tests/test-qga$(EXESUF): tests/test-qga.o $(qtest-obj-y)
26
echo "== Testing RO =="
23
tests/vhost-user-bridge$(EXESUF): tests/vhost-user-bridge.o $(test-util-obj-y) libvhost-user.a
27
- $QEMU_IO -c "open -r -o driver=$PROTO,filename=$TEST_IMG" 2>&1 | _filter_imgfmt | _filter_testdir
24
+tests/qemu-iotests/socket_scm_helper$(EXESUF): tests/qemu-iotests/socket_scm_helper.o
28
+ $QEMU_IO -c "open -r -o driver=$PROTO,filename=$TEST_IMG" 2>&1 | _filter_testdir | _filter_imgfmt
25
29
$QEMU_IO -c "open -r -o driver=$PROTO,filename=/dev/null" 2>&1 | _filter_imgfmt
26
SPEED = quick
30
echo "== Testing RW =="
27
31
- $QEMU_IO -c "open -o driver=$PROTO,filename=$TEST_IMG" 2>&1 | _filter_imgfmt | _filter_testdir
28
diff --git a/tests/qtest/Makefile.include b/tests/qtest/Makefile.include
32
+ $QEMU_IO -c "open -o driver=$PROTO,filename=$TEST_IMG" 2>&1 | _filter_testdir | _filter_imgfmt
29
index XXXXXXX..XXXXXXX 100644
33
$QEMU_IO -c "open -o driver=$PROTO,filename=/dev/null" 2>&1 | _filter_imgfmt
30
--- a/tests/qtest/Makefile.include
34
done
31
+++ b/tests/qtest/Makefile.include
35
32
@@ -XXX,XX +XXX,XX @@ tests/qtest/usb-hcd-ehci-test$(EXESUF): tests/qtest/usb-hcd-ehci-test.o $(libqos
33
tests/qtest/usb-hcd-xhci-test$(EXESUF): tests/qtest/usb-hcd-xhci-test.o $(libqos-usb-obj-y)
34
tests/qtest/cpu-plug-test$(EXESUF): tests/qtest/cpu-plug-test.o
35
tests/qtest/migration-test$(EXESUF): tests/qtest/migration-test.o tests/qtest/migration-helpers.o
36
-tests/qtest/qemu-iotests/qtest/socket_scm_helper$(EXESUF): tests/qtest/qemu-iotests/qtest/socket_scm_helper.o
37
tests/qtest/test-netfilter$(EXESUF): tests/qtest/test-netfilter.o $(qtest-obj-y)
38
tests/qtest/test-filter-mirror$(EXESUF): tests/qtest/test-filter-mirror.o $(qtest-obj-y)
39
tests/qtest/test-filter-redirector$(EXESUF): tests/qtest/test-filter-redirector.o $(qtest-obj-y)
36
--
40
--
37
2.13.6
41
2.20.1
38
42
39
43
diff view generated by jsdifflib
1
From: Peter Lieven <pl@kamp.de>
1
From: Daniel Henrique Barboza <danielhb413@gmail.com>
2
2
3
the min_sparse convert parameter can overflow (e.g. -S 1024G)
3
Adding to Block Drivers the capability of being able to clean up
4
in the conversion from int64_t to int resulting in a negative
4
its created files can be useful in certain situations. For the
5
min_sparse parameter. Avoid this by limiting the valid parameters
5
LUKS driver, for instance, a failure in one of its authentication
6
to sane values. In fact anything exceeding the convert buffer size
6
steps can leave files in the host that weren't there before.
7
is also pointless. While at it also forbid values that are non
8
multiple of 512 to avoid undesired behaviour. For instance, values
9
between 1 and 511 were legal, but resulted in full allocation.
10
7
11
Cc: qemu-stable@nongnu.org
8
This patch adds the 'bdrv_co_delete_file' interface to block
12
Signed-off-by: Peter Lieven <pl@kamp.de>
9
drivers and add it to the 'file' driver in file-posix.c. The
10
implementation is given by 'raw_co_delete_file'.
11
12
Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
13
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
14
Message-Id: <20200130213907.2830642-2-danielhb413@gmail.com>
13
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
15
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
14
---
16
---
15
qemu-img.c | 16 +++++++++++-----
17
include/block/block_int.h | 4 ++++
16
1 file changed, 11 insertions(+), 5 deletions(-)
18
block/file-posix.c | 23 +++++++++++++++++++++++
19
2 files changed, 27 insertions(+)
17
20
18
diff --git a/qemu-img.c b/qemu-img.c
21
diff --git a/include/block/block_int.h b/include/block/block_int.h
19
index XXXXXXX..XXXXXXX 100644
22
index XXXXXXX..XXXXXXX 100644
20
--- a/qemu-img.c
23
--- a/include/block/block_int.h
21
+++ b/qemu-img.c
24
+++ b/include/block/block_int.h
22
@@ -XXX,XX +XXX,XX @@ static int convert_do_copy(ImgConvertState *s)
25
@@ -XXX,XX +XXX,XX @@ struct BlockDriver {
23
return s->ret;
26
*/
27
int coroutine_fn (*bdrv_co_flush)(BlockDriverState *bs);
28
29
+ /* Delete a created file. */
30
+ int coroutine_fn (*bdrv_co_delete_file)(BlockDriverState *bs,
31
+ Error **errp);
32
+
33
/*
34
* Flushes all data that was already written to the OS all the way down to
35
* the disk (for example file-posix.c calls fsync()).
36
diff --git a/block/file-posix.c b/block/file-posix.c
37
index XXXXXXX..XXXXXXX 100644
38
--- a/block/file-posix.c
39
+++ b/block/file-posix.c
40
@@ -XXX,XX +XXX,XX @@ static int coroutine_fn raw_co_create_opts(const char *filename, QemuOpts *opts,
41
return raw_co_create(&options, errp);
24
}
42
}
25
43
26
+#define MAX_BUF_SECTORS 32768
44
+static int coroutine_fn raw_co_delete_file(BlockDriverState *bs,
45
+ Error **errp)
46
+{
47
+ struct stat st;
48
+ int ret;
27
+
49
+
28
static int img_convert(int argc, char **argv)
50
+ if (!(stat(bs->filename, &st) == 0) || !S_ISREG(st.st_mode)) {
29
{
51
+ error_setg_errno(errp, ENOENT, "%s is not a regular file",
30
int c, bs_i, flags, src_flags = 0;
52
+ bs->filename);
31
@@ -XXX,XX +XXX,XX @@ static int img_convert(int argc, char **argv)
53
+ return -ENOENT;
32
int64_t sval;
54
+ }
33
55
+
34
sval = cvtnum(optarg);
56
+ ret = unlink(bs->filename);
35
- if (sval < 0) {
57
+ if (ret < 0) {
36
- error_report("Invalid minimum zero buffer size for sparse output specified");
58
+ ret = -errno;
37
+ if (sval < 0 || sval & (BDRV_SECTOR_SIZE - 1) ||
59
+ error_setg_errno(errp, -ret, "Error when deleting file %s",
38
+ sval / BDRV_SECTOR_SIZE > MAX_BUF_SECTORS) {
60
+ bs->filename);
39
+ error_report("Invalid buffer size for sparse output specified. "
61
+ }
40
+ "Valid sizes are multiples of %llu up to %llu. Select "
62
+
41
+ "0 to disable sparse detection (fully allocates output).",
63
+ return ret;
42
+ BDRV_SECTOR_SIZE, MAX_BUF_SECTORS * BDRV_SECTOR_SIZE);
64
+}
43
goto fail_getopt;
65
+
44
}
66
/*
45
67
* Find allocation range in @bs around offset @start.
46
@@ -XXX,XX +XXX,XX @@ static int img_convert(int argc, char **argv)
68
* May change underlying file descriptor's file offset.
47
}
69
@@ -XXX,XX +XXX,XX @@ BlockDriver bdrv_file = {
48
70
.bdrv_co_block_status = raw_co_block_status,
49
/* increase bufsectors from the default 4096 (2M) if opt_transfer
71
.bdrv_co_invalidate_cache = raw_co_invalidate_cache,
50
- * or discard_alignment of the out_bs is greater. Limit to 32768 (16MB)
72
.bdrv_co_pwrite_zeroes = raw_co_pwrite_zeroes,
51
- * as maximum. */
73
+ .bdrv_co_delete_file = raw_co_delete_file,
52
- s.buf_sectors = MIN(32768,
74
53
+ * or discard_alignment of the out_bs is greater. Limit to
75
.bdrv_co_preadv = raw_co_preadv,
54
+ * MAX_BUF_SECTORS as maximum which is currently 32768 (16MB). */
76
.bdrv_co_pwritev = raw_co_pwritev,
55
+ s.buf_sectors = MIN(MAX_BUF_SECTORS,
56
MAX(s.buf_sectors,
57
MAX(out_bs->bl.opt_transfer >> BDRV_SECTOR_BITS,
58
out_bs->bl.pdiscard_alignment >>
59
--
77
--
60
2.13.6
78
2.20.1
61
79
62
80
diff view generated by jsdifflib
1
From: Stefan Weil <sw@weilnetz.de>
1
From: Daniel Henrique Barboza <danielhb413@gmail.com>
2
2
3
Signed-off-by: Stefan Weil <sw@weilnetz.de>
3
Using the new 'bdrv_co_delete_file' interface, a pure co_routine function
4
Reviewed-by: John Snow <jsnow@redhat.com>
4
'bdrv_co_delete_file' inside block.c can can be used in a way similar of
5
Reviewed-by: Jeff Cody <jcody@redhat.com>
5
the existing bdrv_create_file to to clean up a created file.
6
7
We're creating a pure co_routine because the only caller of
8
'bdrv_co_delete_file' will be already in co_routine context, thus there
9
is no need to add all the machinery to check for qemu_in_coroutine() and
10
create a separated co_routine to do the job.
11
12
Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
13
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
14
Message-Id: <20200130213907.2830642-3-danielhb413@gmail.com>
6
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
15
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
7
---
16
---
8
block.c | 2 +-
17
include/block/block.h | 1 +
9
block/backup.c | 4 ++--
18
block.c | 26 ++++++++++++++++++++++++++
10
block/curl.c | 2 +-
19
2 files changed, 27 insertions(+)
11
block/gluster.c | 2 +-
12
block/vhdx.c | 2 +-
13
5 files changed, 6 insertions(+), 6 deletions(-)
14
20
21
diff --git a/include/block/block.h b/include/block/block.h
22
index XXXXXXX..XXXXXXX 100644
23
--- a/include/block/block.h
24
+++ b/include/block/block.h
25
@@ -XXX,XX +XXX,XX @@ bool bdrv_is_backing_chain_frozen(BlockDriverState *bs, BlockDriverState *base,
26
int bdrv_freeze_backing_chain(BlockDriverState *bs, BlockDriverState *base,
27
Error **errp);
28
void bdrv_unfreeze_backing_chain(BlockDriverState *bs, BlockDriverState *base);
29
+int coroutine_fn bdrv_co_delete_file(BlockDriverState *bs, Error **errp);
30
31
32
typedef struct BdrvCheckResult {
15
diff --git a/block.c b/block.c
33
diff --git a/block.c b/block.c
16
index XXXXXXX..XXXXXXX 100644
34
index XXXXXXX..XXXXXXX 100644
17
--- a/block.c
35
--- a/block.c
18
+++ b/block.c
36
+++ b/block.c
19
@@ -XXX,XX +XXX,XX @@ BlockReopenQueue *bdrv_reopen_queue(BlockReopenQueue *bs_queue,
37
@@ -XXX,XX +XXX,XX @@ int bdrv_create_file(const char *filename, QemuOpts *opts, Error **errp)
20
*
38
}
21
* Reopens all BDS specified in the queue, with the appropriate
22
* flags. All devices are prepared for reopen, and failure of any
23
- * device will cause all device changes to be abandonded, and intermediate
24
+ * device will cause all device changes to be abandoned, and intermediate
25
* data cleaned up.
26
*
27
* If all devices prepare successfully, then the changes are committed
28
diff --git a/block/backup.c b/block/backup.c
29
index XXXXXXX..XXXXXXX 100644
30
--- a/block/backup.c
31
+++ b/block/backup.c
32
@@ -XXX,XX +XXX,XX @@ static void cow_request_end(CowRequest *req)
33
}
39
}
34
40
35
/* Copy range to target with a bounce buffer and return the bytes copied. If
41
+int coroutine_fn bdrv_co_delete_file(BlockDriverState *bs, Error **errp)
36
- * error occured, return a negative error number */
42
+{
37
+ * error occurred, return a negative error number */
43
+ Error *local_err = NULL;
38
static int coroutine_fn backup_cow_with_bounce_buffer(BackupBlockJob *job,
44
+ int ret;
39
int64_t start,
45
+
40
int64_t end,
46
+ assert(bs != NULL);
41
@@ -XXX,XX +XXX,XX @@ fail:
47
+
42
48
+ if (!bs->drv) {
43
}
49
+ error_setg(errp, "Block node '%s' is not opened", bs->filename);
44
50
+ return -ENOMEDIUM;
45
-/* Copy range to target and return the bytes copied. If error occured, return a
51
+ }
46
+/* Copy range to target and return the bytes copied. If error occurred, return a
52
+
47
* negative error number. */
53
+ if (!bs->drv->bdrv_co_delete_file) {
48
static int coroutine_fn backup_cow_with_offload(BackupBlockJob *job,
54
+ error_setg(errp, "Driver '%s' does not support image deletion",
49
int64_t start,
55
+ bs->drv->format_name);
50
diff --git a/block/curl.c b/block/curl.c
56
+ return -ENOTSUP;
51
index XXXXXXX..XXXXXXX 100644
57
+ }
52
--- a/block/curl.c
58
+
53
+++ b/block/curl.c
59
+ ret = bs->drv->bdrv_co_delete_file(bs, &local_err);
54
@@ -XXX,XX +XXX,XX @@ static int curl_open(BlockDriverState *bs, QDict *options, int flags,
60
+ if (ret < 0) {
55
}
61
+ error_propagate(errp, local_err);
56
/* Prior CURL 7.19.4 return value of 0 could mean that the file size is not
62
+ }
57
* know or the size is zero. From 7.19.4 CURL returns -1 if size is not
63
+
58
- * known and zero if it is realy zero-length file. */
64
+ return ret;
59
+ * known and zero if it is really zero-length file. */
65
+}
60
#if LIBCURL_VERSION_NUM >= 0x071304
66
+
61
if (d < 0) {
67
/**
62
pstrcpy(state->errmsg, CURL_ERROR_SIZE,
68
* Try to get @bs's logical and physical block size.
63
diff --git a/block/gluster.c b/block/gluster.c
69
* On success, store them in @bsz struct and return 0.
64
index XXXXXXX..XXXXXXX 100644
65
--- a/block/gluster.c
66
+++ b/block/gluster.c
67
@@ -XXX,XX +XXX,XX @@ static int qemu_gluster_has_zero_init(BlockDriverState *bs)
68
* If @start is in a trailing hole or beyond EOF, return -ENXIO.
69
* If we can't find out, return a negative errno other than -ENXIO.
70
*
71
- * (Shamefully copied from file-posix.c, only miniscule adaptions.)
72
+ * (Shamefully copied from file-posix.c, only minuscule adaptions.)
73
*/
74
static int find_allocation(BlockDriverState *bs, off_t start,
75
off_t *data, off_t *hole)
76
diff --git a/block/vhdx.c b/block/vhdx.c
77
index XXXXXXX..XXXXXXX 100644
78
--- a/block/vhdx.c
79
+++ b/block/vhdx.c
80
@@ -XXX,XX +XXX,XX @@ uint32_t vhdx_checksum_calc(uint32_t crc, uint8_t *buf, size_t size,
81
/* Validates the checksum of the buffer, with an in-place CRC.
82
*
83
* Zero is substituted during crc calculation for the original crc field,
84
- * and the crc field is restored afterwards. But the buffer will be modifed
85
+ * and the crc field is restored afterwards. But the buffer will be modified
86
* during the calculation, so this may not be not suitable for multi-threaded
87
* use.
88
*
89
--
70
--
90
2.13.6
71
2.20.1
91
72
92
73
diff view generated by jsdifflib
1
From: John Snow <jsnow@redhat.com>
1
From: Daniel Henrique Barboza <danielhb413@gmail.com>
2
2
3
This test doesn't actually care about the format anyway, it just
3
When using a non-UTF8 secret to create a volume using qemu-img, the
4
supports "all formats" as a convenience. LUKS however does not use a
4
following error happens:
5
simple image filename which confuses this iotest.
6
5
7
We can simply skip the test for formats that use IMGOPTSSYNTAX for
6
$ qemu-img create -f luks --object secret,id=vol_1_encrypt0,file=vol_resize_pool.vol_1.secret.qzVQrI -o key-secret=vol_1_encrypt0 /var/tmp/pool_target/vol_1 10240K
8
their filenames without missing much coverage.
9
7
10
Signed-off-by: John Snow <jsnow@redhat.com>
8
Formatting '/var/tmp/pool_target/vol_1', fmt=luks size=10485760 key-secret=vol_1_encrypt0
9
qemu-img: /var/tmp/pool_target/vol_1: Data from secret vol_1_encrypt0 is not valid UTF-8
10
11
However, the created file '/var/tmp/pool_target/vol_1' is left behind in the
12
file system after the failure. This behavior can be observed when creating
13
the volume using Libvirt, via 'virsh vol-create', and then getting "volume
14
target path already exist" errors when trying to re-create the volume.
15
16
The volume file is created inside block_crypto_co_create_opts_luks(), in
17
block/crypto.c. If the bdrv_create_file() call is successful but any
18
succeeding step fails*, the existing 'fail' label does not take into
19
account the created file, leaving it behind.
20
21
This patch changes block_crypto_co_create_opts_luks() to delete
22
'filename' in case of failure. A failure in this point means that
23
the volume is now truncated/corrupted, so even if 'filename' was an
24
existing volume before calling qemu-img, it is now unusable. Deleting
25
the file it is not much worse than leaving it in the filesystem in
26
this scenario, and we don't have to deal with checking the file
27
pre-existence in the code.
28
29
* in our case, block_crypto_co_create_generic calls qcrypto_block_create,
30
which calls qcrypto_block_luks_create, and this function fails when
31
calling qcrypto_secret_lookup_as_utf8.
32
33
Reported-by: Srikanth Aithal <bssrikanth@in.ibm.com>
34
Suggested-by: Kevin Wolf <kwolf@redhat.com>
35
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
36
Message-Id: <20200130213907.2830642-4-danielhb413@gmail.com>
11
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
37
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
12
---
38
---
13
tests/qemu-iotests/226 | 3 +++
39
block/crypto.c | 18 ++++++++++++++++++
14
1 file changed, 3 insertions(+)
40
1 file changed, 18 insertions(+)
15
41
16
diff --git a/tests/qemu-iotests/226 b/tests/qemu-iotests/226
42
diff --git a/block/crypto.c b/block/crypto.c
17
index XXXXXXX..XXXXXXX 100755
43
index XXXXXXX..XXXXXXX 100644
18
--- a/tests/qemu-iotests/226
44
--- a/block/crypto.c
19
+++ b/tests/qemu-iotests/226
45
+++ b/block/crypto.c
20
@@ -XXX,XX +XXX,XX @@ trap "_cleanup; exit \$status" 0 1 2 3 15
46
@@ -XXX,XX +XXX,XX @@
21
47
#include "qapi/error.h"
22
# Generic format, but tests file-protocol specific error handling
48
#include "qemu/module.h"
23
_supported_fmt generic
49
#include "qemu/option.h"
24
+if [ "$IMGOPTSSYNTAX" = "true" ]; then
50
+#include "qemu/cutils.h"
25
+ _unsupported_fmt $IMGFMT
51
#include "crypto.h"
26
+fi
52
27
_supported_proto file
53
typedef struct BlockCrypto BlockCrypto;
28
_supported_os Linux
54
@@ -XXX,XX +XXX,XX @@ static int coroutine_fn block_crypto_co_create_opts_luks(const char *filename,
29
55
56
ret = 0;
57
fail:
58
+ /*
59
+ * If an error occurred, delete 'filename'. Even if the file existed
60
+ * beforehand, it has been truncated and corrupted in the process.
61
+ */
62
+ if (ret && bs) {
63
+ Error *local_delete_err = NULL;
64
+ int r_del = bdrv_co_delete_file(bs, &local_delete_err);
65
+ /*
66
+ * ENOTSUP will happen if the block driver doesn't support
67
+ * the 'bdrv_co_delete_file' interface. This is a predictable
68
+ * scenario and shouldn't be reported back to the user.
69
+ */
70
+ if ((r_del < 0) && (r_del != -ENOTSUP)) {
71
+ error_report_err(local_delete_err);
72
+ }
73
+ }
74
+
75
bdrv_unref(bs);
76
qapi_free_QCryptoBlockCreateOptions(create_opts);
77
qobject_unref(cryptoopts);
30
--
78
--
31
2.13.6
79
2.20.1
32
80
33
81
diff view generated by jsdifflib
1
The test case uses block devices with driver=file, which causes the test
1
From: Daniel Henrique Barboza <danielhb413@gmail.com>
2
to fail after commit 230ff73904 added a deprecation warning for this.
3
Fix the test case to use driver=host_device and update the reference
4
output accordingly.
5
2
3
This patch adds a new test file to exercise the case where
4
qemu-img fails to complete for the LUKS format when a non-UTF8
5
secret is used.
6
7
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
8
Message-Id: <20200130213907.2830642-5-danielhb413@gmail.com>
6
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
9
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
7
---
10
---
8
tests/qemu-iotests/149 | 2 +-
11
tests/qemu-iotests/282 | 67 ++++++++++++++++++++++++++++++++++++++
9
tests/qemu-iotests/149.out | 344 ++++++++++++++++++++++-----------------------
12
tests/qemu-iotests/282.out | 11 +++++++
10
2 files changed, 173 insertions(+), 173 deletions(-)
13
tests/qemu-iotests/group | 1 +
14
3 files changed, 79 insertions(+)
15
create mode 100755 tests/qemu-iotests/282
16
create mode 100644 tests/qemu-iotests/282.out
11
17
12
diff --git a/tests/qemu-iotests/149 b/tests/qemu-iotests/149
18
diff --git a/tests/qemu-iotests/282 b/tests/qemu-iotests/282
13
index XXXXXXX..XXXXXXX 100755
19
new file mode 100755
14
--- a/tests/qemu-iotests/149
20
index XXXXXXX..XXXXXXX
15
+++ b/tests/qemu-iotests/149
21
--- /dev/null
16
@@ -XXX,XX +XXX,XX @@ def qemu_io_image_args(config, dev=False):
22
+++ b/tests/qemu-iotests/282
17
if dev:
23
@@ -XXX,XX +XXX,XX @@
18
return [
24
+#!/usr/bin/env bash
19
"--image-opts",
25
+#
20
- "driver=file,filename=%s" % config.device_path()]
26
+# Test qemu-img file cleanup for LUKS when using a non-UTF8 secret
21
+ "driver=host_device,filename=%s" % config.device_path()]
27
+#
22
else:
28
+# Copyright (C) 2020, IBM Corporation.
23
return [
29
+#
24
"--object",
30
+# This program is free software; you can redistribute it and/or modify
25
diff --git a/tests/qemu-iotests/149.out b/tests/qemu-iotests/149.out
31
+# it under the terms of the GNU General Public License as published by
32
+# the Free Software Foundation; either version 2 of the License, or
33
+# (at your option) any later version.
34
+#
35
+# This program is distributed in the hope that it will be useful,
36
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
37
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38
+# GNU General Public License for more details.
39
+#
40
+# You should have received a copy of the GNU General Public License
41
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
42
+#
43
+
44
+seq=`basename $0`
45
+echo "QA output created by $seq"
46
+
47
+status=1    # failure is the default!
48
+TEST_IMAGE_FILE='vol.img'
49
+
50
+_cleanup()
51
+{
52
+ _cleanup_test_img
53
+ rm non_utf8_secret
54
+ rm -f $TEST_IMAGE_FILE
55
+}
56
+trap "_cleanup; exit \$status" 0 1 2 3 15
57
+
58
+# get standard environment, filters and checks
59
+. ./common.rc
60
+. ./common.filter
61
+
62
+_supported_fmt luks
63
+_supported_proto generic
64
+_unsupported_proto vxhs
65
+
66
+echo "== Create non-UTF8 secret =="
67
+echo -n -e '\x3a\x3c\x3b\xff' > non_utf8_secret
68
+SECRET="secret,id=sec0,file=non_utf8_secret"
69
+
70
+echo "== Throws an error because of invalid UTF-8 secret =="
71
+$QEMU_IMG create -f $IMGFMT --object $SECRET -o "key-secret=sec0" $TEST_IMAGE_FILE 4M
72
+
73
+echo "== Image file should not exist after the error =="
74
+if test -f "$TEST_IMAGE_FILE"; then
75
+ exit 1
76
+fi
77
+
78
+echo "== Create a stub image file and run qemu-img again =="
79
+touch $TEST_IMAGE_FILE
80
+$QEMU_IMG create -f $IMGFMT --object $SECRET -o "key-secret=sec0" $TEST_IMAGE_FILE 4M
81
+
82
+echo "== Pre-existing image file should also be deleted after the error =="
83
+if test -f "$TEST_IMAGE_FILE"; then
84
+ exit 1
85
+fi
86
+
87
+# success, all done
88
+echo "*** done"
89
+rm -f $seq.full
90
+status=0
91
diff --git a/tests/qemu-iotests/282.out b/tests/qemu-iotests/282.out
92
new file mode 100644
93
index XXXXXXX..XXXXXXX
94
--- /dev/null
95
+++ b/tests/qemu-iotests/282.out
96
@@ -XXX,XX +XXX,XX @@
97
+QA output created by 282
98
+== Create non-UTF8 secret ==
99
+== Throws an error because of invalid UTF-8 secret ==
100
+qemu-img: vol.img: Data from secret sec0 is not valid UTF-8
101
+Formatting 'vol.img', fmt=luks size=4194304 key-secret=sec0
102
+== Image file should not exist after the error ==
103
+== Create a stub image file and run qemu-img again ==
104
+qemu-img: vol.img: Data from secret sec0 is not valid UTF-8
105
+Formatting 'vol.img', fmt=luks size=4194304 key-secret=sec0
106
+== Pre-existing image file should also be deleted after the error ==
107
+ *** done
108
diff --git a/tests/qemu-iotests/group b/tests/qemu-iotests/group
26
index XXXXXXX..XXXXXXX 100644
109
index XXXXXXX..XXXXXXX 100644
27
--- a/tests/qemu-iotests/149.out
110
--- a/tests/qemu-iotests/group
28
+++ b/tests/qemu-iotests/149.out
111
+++ b/tests/qemu-iotests/group
29
@@ -XXX,XX +XXX,XX @@ sudo cryptsetup -q -v luksFormat --cipher aes-xts-plain64 --key-size 512 --hash
112
@@ -XXX,XX +XXX,XX @@
30
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha1.img qiotest-145-aes-256-xts-plain64-sha1
113
279 rw backing quick
31
# Write test pattern 0xa7
114
280 rw migration quick
32
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
115
281 rw quick
33
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
116
+282 rw img quick
34
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
117
283 auto quick
35
wrote 10485760/10485760 bytes at offset 104857600
118
284 rw
36
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
119
286 rw quick
37
38
# Write test pattern 0x13
39
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
40
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
41
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
42
wrote 10485760/10485760 bytes at offset 3298534883328
43
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
44
45
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
46
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha1.img qiotest-145-aes-256-xts-plain64-sha1
47
# Read test pattern 0x91
48
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
49
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
50
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
51
read 10485760/10485760 bytes at offset 104857600
52
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
53
54
# Read test pattern 0x5e
55
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
56
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
57
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
58
read 10485760/10485760 bytes at offset 3298534883328
59
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
60
61
@@ -XXX,XX +XXX,XX @@ Formatting 'TEST_DIR/luks-aes-256-xts-plain64-sha1.img', fmt=luks size=439804651
62
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha1.img qiotest-145-aes-256-xts-plain64-sha1
63
# Write test pattern 0xa7
64
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
65
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
66
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
67
wrote 10485760/10485760 bytes at offset 104857600
68
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
69
70
# Write test pattern 0x13
71
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
72
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
73
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
74
wrote 10485760/10485760 bytes at offset 3298534883328
75
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
76
77
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
78
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha1.img qiotest-145-aes-256-xts-plain64-sha1
79
# Read test pattern 0x91
80
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
81
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
82
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
83
read 10485760/10485760 bytes at offset 104857600
84
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
85
86
# Read test pattern 0x5e
87
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
88
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
89
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha1
90
read 10485760/10485760 bytes at offset 3298534883328
91
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
92
93
@@ -XXX,XX +XXX,XX @@ sudo cryptsetup -q -v luksFormat --cipher twofish-xts-plain64 --key-size 512 --h
94
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1
95
# Write test pattern 0xa7
96
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
97
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
98
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
99
wrote 10485760/10485760 bytes at offset 104857600
100
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
101
102
# Write test pattern 0x13
103
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
104
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
105
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
106
wrote 10485760/10485760 bytes at offset 3298534883328
107
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
108
109
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
110
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1
111
# Read test pattern 0x91
112
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
113
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
114
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
115
read 10485760/10485760 bytes at offset 104857600
116
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
117
118
# Read test pattern 0x5e
119
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
120
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
121
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
122
read 10485760/10485760 bytes at offset 3298534883328
123
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
124
125
@@ -XXX,XX +XXX,XX @@ Formatting 'TEST_DIR/luks-twofish-256-xts-plain64-sha1.img', fmt=luks size=43980
126
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1
127
# Write test pattern 0xa7
128
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
129
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
130
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
131
wrote 10485760/10485760 bytes at offset 104857600
132
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
133
134
# Write test pattern 0x13
135
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
136
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
137
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
138
wrote 10485760/10485760 bytes at offset 3298534883328
139
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
140
141
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
142
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-256-xts-plain64-sha1.img qiotest-145-twofish-256-xts-plain64-sha1
143
# Read test pattern 0x91
144
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
145
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
146
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
147
read 10485760/10485760 bytes at offset 104857600
148
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
149
150
# Read test pattern 0x5e
151
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
152
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
153
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-256-xts-plain64-sha1
154
read 10485760/10485760 bytes at offset 3298534883328
155
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
156
157
@@ -XXX,XX +XXX,XX @@ sudo cryptsetup -q -v luksFormat --cipher serpent-xts-plain64 --key-size 512 --h
158
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1
159
# Write test pattern 0xa7
160
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
161
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
162
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
163
wrote 10485760/10485760 bytes at offset 104857600
164
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
165
166
# Write test pattern 0x13
167
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
168
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
169
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
170
wrote 10485760/10485760 bytes at offset 3298534883328
171
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
172
173
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
174
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1
175
# Read test pattern 0x91
176
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
177
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
178
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
179
read 10485760/10485760 bytes at offset 104857600
180
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
181
182
# Read test pattern 0x5e
183
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
184
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
185
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
186
read 10485760/10485760 bytes at offset 3298534883328
187
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
188
189
@@ -XXX,XX +XXX,XX @@ Formatting 'TEST_DIR/luks-serpent-256-xts-plain64-sha1.img', fmt=luks size=43980
190
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1
191
# Write test pattern 0xa7
192
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
193
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
194
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
195
wrote 10485760/10485760 bytes at offset 104857600
196
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
197
198
# Write test pattern 0x13
199
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
200
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
201
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
202
wrote 10485760/10485760 bytes at offset 3298534883328
203
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
204
205
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
206
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-256-xts-plain64-sha1.img qiotest-145-serpent-256-xts-plain64-sha1
207
# Read test pattern 0x91
208
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
209
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
210
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
211
read 10485760/10485760 bytes at offset 104857600
212
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
213
214
# Read test pattern 0x5e
215
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
216
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
217
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-256-xts-plain64-sha1
218
read 10485760/10485760 bytes at offset 3298534883328
219
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
220
221
@@ -XXX,XX +XXX,XX @@ sudo cryptsetup -q -v luksFormat --cipher cast5-cbc-plain64 --key-size 128 --has
222
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1
223
# Write test pattern 0xa7
224
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
225
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
226
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
227
wrote 10485760/10485760 bytes at offset 104857600
228
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
229
230
# Write test pattern 0x13
231
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
232
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
233
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
234
wrote 10485760/10485760 bytes at offset 3298534883328
235
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
236
237
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
238
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1
239
# Read test pattern 0x91
240
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
241
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
242
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
243
read 10485760/10485760 bytes at offset 104857600
244
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
245
246
# Read test pattern 0x5e
247
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
248
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
249
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
250
read 10485760/10485760 bytes at offset 3298534883328
251
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
252
253
@@ -XXX,XX +XXX,XX @@ Formatting 'TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img', fmt=luks size=4398046
254
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1
255
# Write test pattern 0xa7
256
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
257
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
258
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
259
wrote 10485760/10485760 bytes at offset 104857600
260
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
261
262
# Write test pattern 0x13
263
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
264
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
265
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
266
wrote 10485760/10485760 bytes at offset 3298534883328
267
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
268
269
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
270
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-cast5-128-cbc-plain64-sha1.img qiotest-145-cast5-128-cbc-plain64-sha1
271
# Read test pattern 0x91
272
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
273
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
274
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
275
read 10485760/10485760 bytes at offset 104857600
276
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
277
278
# Read test pattern 0x5e
279
sudo chown UID:GID /dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
280
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
281
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-cast5-128-cbc-plain64-sha1
282
read 10485760/10485760 bytes at offset 3298534883328
283
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
284
285
@@ -XXX,XX +XXX,XX @@ sudo cryptsetup -q -v luksFormat --cipher aes-cbc-plain --key-size 256 --hash sh
286
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1
287
# Write test pattern 0xa7
288
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
289
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
290
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
291
wrote 10485760/10485760 bytes at offset 104857600
292
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
293
294
# Write test pattern 0x13
295
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
296
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
297
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
298
wrote 10485760/10485760 bytes at offset 3298534883328
299
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
300
301
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
302
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1
303
# Read test pattern 0x91
304
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
305
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
306
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
307
read 10485760/10485760 bytes at offset 104857600
308
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
309
310
# Read test pattern 0x5e
311
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
312
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
313
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
314
read 10485760/10485760 bytes at offset 3298534883328
315
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
316
317
@@ -XXX,XX +XXX,XX @@ Formatting 'TEST_DIR/luks-aes-256-cbc-plain-sha1.img', fmt=luks size=43980465111
318
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1
319
# Write test pattern 0xa7
320
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
321
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
322
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
323
wrote 10485760/10485760 bytes at offset 104857600
324
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
325
326
# Write test pattern 0x13
327
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
328
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
329
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
330
wrote 10485760/10485760 bytes at offset 3298534883328
331
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
332
333
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
334
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain-sha1.img qiotest-145-aes-256-cbc-plain-sha1
335
# Read test pattern 0x91
336
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
337
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
338
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
339
read 10485760/10485760 bytes at offset 104857600
340
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
341
342
# Read test pattern 0x5e
343
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
344
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
345
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain-sha1
346
read 10485760/10485760 bytes at offset 3298534883328
347
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
348
349
@@ -XXX,XX +XXX,XX @@ sudo cryptsetup -q -v luksFormat --cipher aes-cbc-plain64 --key-size 256 --hash
350
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1
351
# Write test pattern 0xa7
352
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
353
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
354
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
355
wrote 10485760/10485760 bytes at offset 104857600
356
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
357
358
# Write test pattern 0x13
359
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
360
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
361
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
362
wrote 10485760/10485760 bytes at offset 3298534883328
363
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
364
365
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
366
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1
367
# Read test pattern 0x91
368
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
369
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
370
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
371
read 10485760/10485760 bytes at offset 104857600
372
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
373
374
# Read test pattern 0x5e
375
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
376
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
377
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
378
read 10485760/10485760 bytes at offset 3298534883328
379
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
380
381
@@ -XXX,XX +XXX,XX @@ Formatting 'TEST_DIR/luks-aes-256-cbc-plain64-sha1.img', fmt=luks size=439804651
382
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1
383
# Write test pattern 0xa7
384
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
385
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
386
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
387
wrote 10485760/10485760 bytes at offset 104857600
388
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
389
390
# Write test pattern 0x13
391
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
392
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
393
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
394
wrote 10485760/10485760 bytes at offset 3298534883328
395
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
396
397
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
398
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha1.img qiotest-145-aes-256-cbc-plain64-sha1
399
# Read test pattern 0x91
400
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
401
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
402
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
403
read 10485760/10485760 bytes at offset 104857600
404
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
405
406
# Read test pattern 0x5e
407
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
408
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
409
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha1
410
read 10485760/10485760 bytes at offset 3298534883328
411
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
412
413
@@ -XXX,XX +XXX,XX @@ sudo cryptsetup -q -v luksFormat --cipher aes-cbc-essiv:sha256 --key-size 256 --
414
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img qiotest-145-aes-256-cbc-essiv-sha256-sha1
415
# Write test pattern 0xa7
416
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
417
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
418
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
419
wrote 10485760/10485760 bytes at offset 104857600
420
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
421
422
# Write test pattern 0x13
423
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
424
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
425
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
426
wrote 10485760/10485760 bytes at offset 3298534883328
427
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
428
429
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
430
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img qiotest-145-aes-256-cbc-essiv-sha256-sha1
431
# Read test pattern 0x91
432
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
433
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
434
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
435
read 10485760/10485760 bytes at offset 104857600
436
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
437
438
# Read test pattern 0x5e
439
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
440
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
441
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
442
read 10485760/10485760 bytes at offset 3298534883328
443
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
444
445
@@ -XXX,XX +XXX,XX @@ Formatting 'TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img', fmt=luks size=4398
446
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img qiotest-145-aes-256-cbc-essiv-sha256-sha1
447
# Write test pattern 0xa7
448
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
449
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
450
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
451
wrote 10485760/10485760 bytes at offset 104857600
452
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
453
454
# Write test pattern 0x13
455
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
456
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
457
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
458
wrote 10485760/10485760 bytes at offset 3298534883328
459
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
460
461
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
462
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-sha256-sha1.img qiotest-145-aes-256-cbc-essiv-sha256-sha1
463
# Read test pattern 0x91
464
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
465
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
466
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
467
read 10485760/10485760 bytes at offset 104857600
468
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
469
470
# Read test pattern 0x5e
471
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
472
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
473
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-sha256-sha1
474
read 10485760/10485760 bytes at offset 3298534883328
475
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
476
477
@@ -XXX,XX +XXX,XX @@ sudo cryptsetup -q -v luksFormat --cipher aes-xts-essiv:sha256 --key-size 512 --
478
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img qiotest-145-aes-256-xts-essiv-sha256-sha1
479
# Write test pattern 0xa7
480
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
481
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
482
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
483
wrote 10485760/10485760 bytes at offset 104857600
484
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
485
486
# Write test pattern 0x13
487
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
488
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
489
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
490
wrote 10485760/10485760 bytes at offset 3298534883328
491
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
492
493
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
494
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img qiotest-145-aes-256-xts-essiv-sha256-sha1
495
# Read test pattern 0x91
496
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
497
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
498
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
499
read 10485760/10485760 bytes at offset 104857600
500
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
501
502
# Read test pattern 0x5e
503
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
504
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
505
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
506
read 10485760/10485760 bytes at offset 3298534883328
507
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
508
509
@@ -XXX,XX +XXX,XX @@ Formatting 'TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img', fmt=luks size=4398
510
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img qiotest-145-aes-256-xts-essiv-sha256-sha1
511
# Write test pattern 0xa7
512
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
513
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
514
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
515
wrote 10485760/10485760 bytes at offset 104857600
516
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
517
518
# Write test pattern 0x13
519
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
520
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
521
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
522
wrote 10485760/10485760 bytes at offset 3298534883328
523
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
524
525
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
526
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-essiv-sha256-sha1.img qiotest-145-aes-256-xts-essiv-sha256-sha1
527
# Read test pattern 0x91
528
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
529
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
530
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
531
read 10485760/10485760 bytes at offset 104857600
532
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
533
534
# Read test pattern 0x5e
535
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
536
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
537
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-essiv-sha256-sha1
538
read 10485760/10485760 bytes at offset 3298534883328
539
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
540
541
@@ -XXX,XX +XXX,XX @@ sudo cryptsetup -q -v luksFormat --cipher aes-xts-plain64 --key-size 256 --hash
542
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img qiotest-145-aes-128-xts-plain64-sha256-sha1
543
# Write test pattern 0xa7
544
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
545
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
546
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
547
wrote 10485760/10485760 bytes at offset 104857600
548
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
549
550
# Write test pattern 0x13
551
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
552
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
553
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
554
wrote 10485760/10485760 bytes at offset 3298534883328
555
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
556
557
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
558
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img qiotest-145-aes-128-xts-plain64-sha256-sha1
559
# Read test pattern 0x91
560
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
561
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
562
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
563
read 10485760/10485760 bytes at offset 104857600
564
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
565
566
# Read test pattern 0x5e
567
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
568
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
569
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
570
read 10485760/10485760 bytes at offset 3298534883328
571
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
572
573
@@ -XXX,XX +XXX,XX @@ Formatting 'TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img', fmt=luks size=43
574
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img qiotest-145-aes-128-xts-plain64-sha256-sha1
575
# Write test pattern 0xa7
576
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
577
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
578
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
579
wrote 10485760/10485760 bytes at offset 104857600
580
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
581
582
# Write test pattern 0x13
583
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
584
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
585
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
586
wrote 10485760/10485760 bytes at offset 3298534883328
587
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
588
589
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
590
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-128-xts-plain64-sha256-sha1.img qiotest-145-aes-128-xts-plain64-sha256-sha1
591
# Read test pattern 0x91
592
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
593
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
594
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
595
read 10485760/10485760 bytes at offset 104857600
596
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
597
598
# Read test pattern 0x5e
599
sudo chown UID:GID /dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
600
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
601
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-128-xts-plain64-sha256-sha1
602
read 10485760/10485760 bytes at offset 3298534883328
603
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
604
605
@@ -XXX,XX +XXX,XX @@ sudo cryptsetup -q -v luksFormat --cipher aes-xts-plain64 --key-size 384 --hash
606
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img qiotest-145-aes-192-xts-plain64-sha256-sha1
607
# Write test pattern 0xa7
608
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
609
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
610
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
611
wrote 10485760/10485760 bytes at offset 104857600
612
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
613
614
# Write test pattern 0x13
615
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
616
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
617
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
618
wrote 10485760/10485760 bytes at offset 3298534883328
619
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
620
621
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
622
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img qiotest-145-aes-192-xts-plain64-sha256-sha1
623
# Read test pattern 0x91
624
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
625
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
626
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
627
read 10485760/10485760 bytes at offset 104857600
628
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
629
630
# Read test pattern 0x5e
631
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
632
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
633
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
634
read 10485760/10485760 bytes at offset 3298534883328
635
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
636
637
@@ -XXX,XX +XXX,XX @@ Formatting 'TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img', fmt=luks size=43
638
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img qiotest-145-aes-192-xts-plain64-sha256-sha1
639
# Write test pattern 0xa7
640
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
641
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
642
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
643
wrote 10485760/10485760 bytes at offset 104857600
644
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
645
646
# Write test pattern 0x13
647
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
648
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
649
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
650
wrote 10485760/10485760 bytes at offset 3298534883328
651
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
652
653
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
654
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-192-xts-plain64-sha256-sha1.img qiotest-145-aes-192-xts-plain64-sha256-sha1
655
# Read test pattern 0x91
656
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
657
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
658
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
659
read 10485760/10485760 bytes at offset 104857600
660
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
661
662
# Read test pattern 0x5e
663
sudo chown UID:GID /dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
664
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
665
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-192-xts-plain64-sha256-sha1
666
read 10485760/10485760 bytes at offset 3298534883328
667
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
668
669
@@ -XXX,XX +XXX,XX @@ sudo cryptsetup -q -v luksFormat --cipher twofish-xts-plain64 --key-size 256 --h
670
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1
671
# Write test pattern 0xa7
672
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
673
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
674
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
675
wrote 10485760/10485760 bytes at offset 104857600
676
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
677
678
# Write test pattern 0x13
679
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
680
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
681
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
682
wrote 10485760/10485760 bytes at offset 3298534883328
683
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
684
685
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
686
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1
687
# Read test pattern 0x91
688
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
689
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
690
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
691
read 10485760/10485760 bytes at offset 104857600
692
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
693
694
# Read test pattern 0x5e
695
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
696
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
697
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
698
read 10485760/10485760 bytes at offset 3298534883328
699
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
700
701
@@ -XXX,XX +XXX,XX @@ Formatting 'TEST_DIR/luks-twofish-128-xts-plain64-sha1.img', fmt=luks size=43980
702
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1
703
# Write test pattern 0xa7
704
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
705
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
706
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
707
wrote 10485760/10485760 bytes at offset 104857600
708
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
709
710
# Write test pattern 0x13
711
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
712
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
713
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
714
wrote 10485760/10485760 bytes at offset 3298534883328
715
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
716
717
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
718
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-twofish-128-xts-plain64-sha1.img qiotest-145-twofish-128-xts-plain64-sha1
719
# Read test pattern 0x91
720
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
721
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
722
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
723
read 10485760/10485760 bytes at offset 104857600
724
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
725
726
# Read test pattern 0x5e
727
sudo chown UID:GID /dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
728
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
729
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-twofish-128-xts-plain64-sha1
730
read 10485760/10485760 bytes at offset 3298534883328
731
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
732
733
@@ -XXX,XX +XXX,XX @@ sudo cryptsetup -q -v luksFormat --cipher serpent-xts-plain64 --key-size 256 --h
734
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1
735
# Write test pattern 0xa7
736
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
737
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
738
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
739
wrote 10485760/10485760 bytes at offset 104857600
740
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
741
742
# Write test pattern 0x13
743
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
744
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
745
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
746
wrote 10485760/10485760 bytes at offset 3298534883328
747
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
748
749
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
750
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1
751
# Read test pattern 0x91
752
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
753
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
754
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
755
read 10485760/10485760 bytes at offset 104857600
756
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
757
758
# Read test pattern 0x5e
759
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
760
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
761
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
762
read 10485760/10485760 bytes at offset 3298534883328
763
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
764
765
@@ -XXX,XX +XXX,XX @@ Formatting 'TEST_DIR/luks-serpent-128-xts-plain64-sha1.img', fmt=luks size=43980
766
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1
767
# Write test pattern 0xa7
768
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
769
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
770
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
771
wrote 10485760/10485760 bytes at offset 104857600
772
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
773
774
# Write test pattern 0x13
775
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
776
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
777
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
778
wrote 10485760/10485760 bytes at offset 3298534883328
779
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
780
781
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
782
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-128-xts-plain64-sha1.img qiotest-145-serpent-128-xts-plain64-sha1
783
# Read test pattern 0x91
784
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
785
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
786
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
787
read 10485760/10485760 bytes at offset 104857600
788
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
789
790
# Read test pattern 0x5e
791
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
792
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
793
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-128-xts-plain64-sha1
794
read 10485760/10485760 bytes at offset 3298534883328
795
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
796
797
@@ -XXX,XX +XXX,XX @@ sudo cryptsetup -q -v luksFormat --cipher serpent-xts-plain64 --key-size 384 --h
798
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1
799
# Write test pattern 0xa7
800
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
801
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
802
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
803
wrote 10485760/10485760 bytes at offset 104857600
804
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
805
806
# Write test pattern 0x13
807
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
808
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
809
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
810
wrote 10485760/10485760 bytes at offset 3298534883328
811
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
812
813
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
814
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1
815
# Read test pattern 0x91
816
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
817
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
818
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
819
read 10485760/10485760 bytes at offset 104857600
820
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
821
822
# Read test pattern 0x5e
823
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
824
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
825
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
826
read 10485760/10485760 bytes at offset 3298534883328
827
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
828
829
@@ -XXX,XX +XXX,XX @@ Formatting 'TEST_DIR/luks-serpent-192-xts-plain64-sha1.img', fmt=luks size=43980
830
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1
831
# Write test pattern 0xa7
832
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
833
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
834
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
835
wrote 10485760/10485760 bytes at offset 104857600
836
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
837
838
# Write test pattern 0x13
839
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
840
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
841
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
842
wrote 10485760/10485760 bytes at offset 3298534883328
843
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
844
845
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
846
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-serpent-192-xts-plain64-sha1.img qiotest-145-serpent-192-xts-plain64-sha1
847
# Read test pattern 0x91
848
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
849
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
850
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
851
read 10485760/10485760 bytes at offset 104857600
852
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
853
854
# Read test pattern 0x5e
855
sudo chown UID:GID /dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
856
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
857
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-serpent-192-xts-plain64-sha1
858
read 10485760/10485760 bytes at offset 3298534883328
859
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
860
861
@@ -XXX,XX +XXX,XX @@ sudo cryptsetup -q -v luksFormat --cipher aes-xts-plain64 --key-size 512 --hash
862
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha224.img qiotest-145-aes-256-xts-plain64-sha224
863
# Write test pattern 0xa7
864
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
865
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
866
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
867
wrote 10485760/10485760 bytes at offset 104857600
868
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
869
870
# Write test pattern 0x13
871
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
872
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
873
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
874
wrote 10485760/10485760 bytes at offset 3298534883328
875
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
876
877
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
878
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha224.img qiotest-145-aes-256-xts-plain64-sha224
879
# Read test pattern 0x91
880
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
881
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
882
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
883
read 10485760/10485760 bytes at offset 104857600
884
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
885
886
# Read test pattern 0x5e
887
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
888
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
889
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
890
read 10485760/10485760 bytes at offset 3298534883328
891
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
892
893
@@ -XXX,XX +XXX,XX @@ Formatting 'TEST_DIR/luks-aes-256-xts-plain64-sha224.img', fmt=luks size=4398046
894
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha224.img qiotest-145-aes-256-xts-plain64-sha224
895
# Write test pattern 0xa7
896
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
897
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
898
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
899
wrote 10485760/10485760 bytes at offset 104857600
900
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
901
902
# Write test pattern 0x13
903
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
904
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
905
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
906
wrote 10485760/10485760 bytes at offset 3298534883328
907
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
908
909
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
910
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha224.img qiotest-145-aes-256-xts-plain64-sha224
911
# Read test pattern 0x91
912
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
913
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
914
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
915
read 10485760/10485760 bytes at offset 104857600
916
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
917
918
# Read test pattern 0x5e
919
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
920
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
921
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha224
922
read 10485760/10485760 bytes at offset 3298534883328
923
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
924
925
@@ -XXX,XX +XXX,XX @@ sudo cryptsetup -q -v luksFormat --cipher aes-xts-plain64 --key-size 512 --hash
926
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256
927
# Write test pattern 0xa7
928
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
929
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
930
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
931
wrote 10485760/10485760 bytes at offset 104857600
932
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
933
934
# Write test pattern 0x13
935
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
936
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
937
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
938
wrote 10485760/10485760 bytes at offset 3298534883328
939
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
940
941
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
942
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256
943
# Read test pattern 0x91
944
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
945
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
946
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
947
read 10485760/10485760 bytes at offset 104857600
948
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
949
950
# Read test pattern 0x5e
951
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
952
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
953
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
954
read 10485760/10485760 bytes at offset 3298534883328
955
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
956
957
@@ -XXX,XX +XXX,XX @@ Formatting 'TEST_DIR/luks-aes-256-xts-plain64-sha256.img', fmt=luks size=4398046
958
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256
959
# Write test pattern 0xa7
960
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
961
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
962
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
963
wrote 10485760/10485760 bytes at offset 104857600
964
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
965
966
# Write test pattern 0x13
967
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
968
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
969
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
970
wrote 10485760/10485760 bytes at offset 3298534883328
971
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
972
973
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
974
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha256.img qiotest-145-aes-256-xts-plain64-sha256
975
# Read test pattern 0x91
976
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
977
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
978
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
979
read 10485760/10485760 bytes at offset 104857600
980
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
981
982
# Read test pattern 0x5e
983
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
984
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
985
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha256
986
read 10485760/10485760 bytes at offset 3298534883328
987
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
988
989
@@ -XXX,XX +XXX,XX @@ sudo cryptsetup -q -v luksFormat --cipher aes-xts-plain64 --key-size 512 --hash
990
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha384.img qiotest-145-aes-256-xts-plain64-sha384
991
# Write test pattern 0xa7
992
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
993
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
994
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
995
wrote 10485760/10485760 bytes at offset 104857600
996
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
997
998
# Write test pattern 0x13
999
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1000
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1001
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1002
wrote 10485760/10485760 bytes at offset 3298534883328
1003
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1004
1005
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
1006
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha384.img qiotest-145-aes-256-xts-plain64-sha384
1007
# Read test pattern 0x91
1008
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1009
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1010
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1011
read 10485760/10485760 bytes at offset 104857600
1012
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1013
1014
# Read test pattern 0x5e
1015
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1016
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1017
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1018
read 10485760/10485760 bytes at offset 3298534883328
1019
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1020
1021
@@ -XXX,XX +XXX,XX @@ Formatting 'TEST_DIR/luks-aes-256-xts-plain64-sha384.img', fmt=luks size=4398046
1022
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha384.img qiotest-145-aes-256-xts-plain64-sha384
1023
# Write test pattern 0xa7
1024
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1025
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1026
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1027
wrote 10485760/10485760 bytes at offset 104857600
1028
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1029
1030
# Write test pattern 0x13
1031
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1032
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1033
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1034
wrote 10485760/10485760 bytes at offset 3298534883328
1035
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1036
1037
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
1038
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha384.img qiotest-145-aes-256-xts-plain64-sha384
1039
# Read test pattern 0x91
1040
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1041
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1042
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1043
read 10485760/10485760 bytes at offset 104857600
1044
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1045
1046
# Read test pattern 0x5e
1047
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1048
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1049
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha384
1050
read 10485760/10485760 bytes at offset 3298534883328
1051
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1052
1053
@@ -XXX,XX +XXX,XX @@ sudo cryptsetup -q -v luksFormat --cipher aes-xts-plain64 --key-size 512 --hash
1054
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha512.img qiotest-145-aes-256-xts-plain64-sha512
1055
# Write test pattern 0xa7
1056
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1057
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1058
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1059
wrote 10485760/10485760 bytes at offset 104857600
1060
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1061
1062
# Write test pattern 0x13
1063
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1064
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1065
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1066
wrote 10485760/10485760 bytes at offset 3298534883328
1067
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1068
1069
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
1070
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha512.img qiotest-145-aes-256-xts-plain64-sha512
1071
# Read test pattern 0x91
1072
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1073
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1074
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1075
read 10485760/10485760 bytes at offset 104857600
1076
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1077
1078
# Read test pattern 0x5e
1079
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1080
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1081
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1082
read 10485760/10485760 bytes at offset 3298534883328
1083
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1084
1085
@@ -XXX,XX +XXX,XX @@ Formatting 'TEST_DIR/luks-aes-256-xts-plain64-sha512.img', fmt=luks size=4398046
1086
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha512.img qiotest-145-aes-256-xts-plain64-sha512
1087
# Write test pattern 0xa7
1088
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1089
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1090
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1091
wrote 10485760/10485760 bytes at offset 104857600
1092
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1093
1094
# Write test pattern 0x13
1095
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1096
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1097
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1098
wrote 10485760/10485760 bytes at offset 3298534883328
1099
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1100
1101
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
1102
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-sha512.img qiotest-145-aes-256-xts-plain64-sha512
1103
# Read test pattern 0x91
1104
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1105
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1106
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1107
read 10485760/10485760 bytes at offset 104857600
1108
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1109
1110
# Read test pattern 0x5e
1111
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1112
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1113
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-sha512
1114
read 10485760/10485760 bytes at offset 3298534883328
1115
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1116
1117
@@ -XXX,XX +XXX,XX @@ sudo cryptsetup -q -v luksFormat --cipher aes-xts-plain64 --key-size 512 --hash
1118
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img qiotest-145-aes-256-xts-plain64-ripemd160
1119
# Write test pattern 0xa7
1120
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
1121
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
1122
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
1123
wrote 10485760/10485760 bytes at offset 104857600
1124
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1125
1126
# Write test pattern 0x13
1127
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
1128
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
1129
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
1130
wrote 10485760/10485760 bytes at offset 3298534883328
1131
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1132
1133
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
1134
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img qiotest-145-aes-256-xts-plain64-ripemd160
1135
# Read test pattern 0x91
1136
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
1137
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
1138
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
1139
read 10485760/10485760 bytes at offset 104857600
1140
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1141
1142
# Read test pattern 0x5e
1143
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
1144
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
1145
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
1146
read 10485760/10485760 bytes at offset 3298534883328
1147
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1148
1149
@@ -XXX,XX +XXX,XX @@ Formatting 'TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img', fmt=luks size=4398
1150
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img qiotest-145-aes-256-xts-plain64-ripemd160
1151
# Write test pattern 0xa7
1152
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
1153
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
1154
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
1155
wrote 10485760/10485760 bytes at offset 104857600
1156
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1157
1158
# Write test pattern 0x13
1159
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
1160
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
1161
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
1162
wrote 10485760/10485760 bytes at offset 3298534883328
1163
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1164
1165
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
1166
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain64-ripemd160.img qiotest-145-aes-256-xts-plain64-ripemd160
1167
# Read test pattern 0x91
1168
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
1169
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
1170
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
1171
read 10485760/10485760 bytes at offset 104857600
1172
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1173
1174
# Read test pattern 0x5e
1175
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
1176
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
1177
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain64-ripemd160
1178
read 10485760/10485760 bytes at offset 3298534883328
1179
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1180
1181
@@ -XXX,XX +XXX,XX @@ sudo cryptsetup -q -v luksFormat --cipher aes-xts-plain --key-size 512 --hash sh
1182
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img qiotest-145-aes-256-xts-plain-sha1-pwslot3
1183
# Write test pattern 0xa7
1184
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
1185
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
1186
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
1187
wrote 10485760/10485760 bytes at offset 104857600
1188
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1189
1190
# Write test pattern 0x13
1191
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
1192
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
1193
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
1194
wrote 10485760/10485760 bytes at offset 3298534883328
1195
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1196
1197
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
1198
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwslot3.img qiotest-145-aes-256-xts-plain-sha1-pwslot3
1199
# Read test pattern 0x91
1200
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
1201
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
1202
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
1203
read 10485760/10485760 bytes at offset 104857600
1204
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1205
1206
# Read test pattern 0x5e
1207
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
1208
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
1209
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwslot3
1210
read 10485760/10485760 bytes at offset 3298534883328
1211
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1212
1213
@@ -XXX,XX +XXX,XX @@ sudo cryptsetup -q -v luksAddKey TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots
1214
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img qiotest-145-aes-256-xts-plain-sha1-pwallslots
1215
# Write test pattern 0xa7
1216
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1217
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1218
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1219
wrote 10485760/10485760 bytes at offset 104857600
1220
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1221
1222
# Write test pattern 0x13
1223
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1224
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1225
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1226
wrote 10485760/10485760 bytes at offset 3298534883328
1227
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1228
1229
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
1230
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img qiotest-145-aes-256-xts-plain-sha1-pwallslots
1231
# Read test pattern 0x91
1232
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1233
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1234
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1235
read 10485760/10485760 bytes at offset 104857600
1236
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1237
1238
# Read test pattern 0x5e
1239
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1240
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1241
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1242
read 10485760/10485760 bytes at offset 3298534883328
1243
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1244
1245
@@ -XXX,XX +XXX,XX @@ Formatting 'TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img', fmt=luks size=
1246
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img qiotest-145-aes-256-xts-plain-sha1-pwallslots
1247
# Write test pattern 0xa7
1248
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1249
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1250
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1251
wrote 10485760/10485760 bytes at offset 104857600
1252
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1253
1254
# Write test pattern 0x13
1255
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1256
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1257
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1258
wrote 10485760/10485760 bytes at offset 3298534883328
1259
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1260
1261
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
1262
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-xts-plain-sha1-pwallslots.img qiotest-145-aes-256-xts-plain-sha1-pwallslots
1263
# Read test pattern 0x91
1264
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1265
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1266
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1267
read 10485760/10485760 bytes at offset 104857600
1268
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1269
1270
# Read test pattern 0x5e
1271
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1272
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1273
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-xts-plain-sha1-pwallslots
1274
read 10485760/10485760 bytes at offset 3298534883328
1275
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1276
1277
@@ -XXX,XX +XXX,XX @@ sudo cryptsetup -q -v luksFormat --cipher aes-cbc-essiv:sha256 --key-size 256 --
1278
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img qiotest-145-aes-256-cbc-essiv-auto-sha1
1279
# Write test pattern 0xa7
1280
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1281
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1282
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1283
wrote 10485760/10485760 bytes at offset 104857600
1284
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1285
1286
# Write test pattern 0x13
1287
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1288
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1289
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1290
wrote 10485760/10485760 bytes at offset 3298534883328
1291
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1292
1293
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
1294
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img qiotest-145-aes-256-cbc-essiv-auto-sha1
1295
# Read test pattern 0x91
1296
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1297
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1298
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1299
read 10485760/10485760 bytes at offset 104857600
1300
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1301
1302
# Read test pattern 0x5e
1303
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1304
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1305
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1306
read 10485760/10485760 bytes at offset 3298534883328
1307
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1308
1309
@@ -XXX,XX +XXX,XX @@ Formatting 'TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img', fmt=luks size=439804
1310
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img qiotest-145-aes-256-cbc-essiv-auto-sha1
1311
# Write test pattern 0xa7
1312
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1313
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1314
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1315
wrote 10485760/10485760 bytes at offset 104857600
1316
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1317
1318
# Write test pattern 0x13
1319
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1320
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1321
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1322
wrote 10485760/10485760 bytes at offset 3298534883328
1323
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1324
1325
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
1326
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-essiv-auto-sha1.img qiotest-145-aes-256-cbc-essiv-auto-sha1
1327
# Read test pattern 0x91
1328
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1329
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1330
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1331
read 10485760/10485760 bytes at offset 104857600
1332
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1333
1334
# Read test pattern 0x5e
1335
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1336
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1337
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-essiv-auto-sha1
1338
read 10485760/10485760 bytes at offset 3298534883328
1339
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1340
1341
@@ -XXX,XX +XXX,XX @@ sudo cryptsetup -q -v luksFormat --cipher aes-cbc-plain64:sha256 --key-size 256
1342
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img qiotest-145-aes-256-cbc-plain64-sha256-sha1
1343
# Write test pattern 0xa7
1344
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
1345
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
1346
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
1347
wrote 10485760/10485760 bytes at offset 104857600
1348
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1349
1350
# Write test pattern 0x13
1351
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
1352
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
1353
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
1354
wrote 10485760/10485760 bytes at offset 3298534883328
1355
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1356
1357
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
1358
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img qiotest-145-aes-256-cbc-plain64-sha256-sha1
1359
# Read test pattern 0x91
1360
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
1361
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
1362
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
1363
read 10485760/10485760 bytes at offset 104857600
1364
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1365
1366
# Read test pattern 0x5e
1367
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
1368
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
1369
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
1370
read 10485760/10485760 bytes at offset 3298534883328
1371
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1372
1373
@@ -XXX,XX +XXX,XX @@ Formatting 'TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img', fmt=luks size=43
1374
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img qiotest-145-aes-256-cbc-plain64-sha256-sha1
1375
# Write test pattern 0xa7
1376
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
1377
-qemu-io -c write -P 0xa7 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
1378
+qemu-io -c write -P 0xa7 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
1379
wrote 10485760/10485760 bytes at offset 104857600
1380
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1381
1382
# Write test pattern 0x13
1383
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
1384
-qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
1385
+qemu-io -c write -P 0x13 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
1386
wrote 10485760/10485760 bytes at offset 3298534883328
1387
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1388
1389
@@ -XXX,XX +XXX,XX @@ wrote 10485760/10485760 bytes at offset 3298534883328
1390
sudo cryptsetup -q -v luksOpen TEST_DIR/luks-aes-256-cbc-plain64-sha256-sha1.img qiotest-145-aes-256-cbc-plain64-sha256-sha1
1391
# Read test pattern 0x91
1392
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
1393
-qemu-io -c read -P 0x91 100M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
1394
+qemu-io -c read -P 0x91 100M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
1395
read 10485760/10485760 bytes at offset 104857600
1396
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1397
1398
# Read test pattern 0x5e
1399
sudo chown UID:GID /dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
1400
-qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=file,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
1401
+qemu-io -c read -P 0x5e 3145728M 10M --image-opts driver=host_device,filename=/dev/mapper/qiotest-145-aes-256-cbc-plain64-sha256-sha1
1402
read 10485760/10485760 bytes at offset 3298534883328
1403
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
1404
1405
--
120
--
1406
2.13.6
121
2.20.1
1407
122
1408
123
diff view generated by jsdifflib