]> git.proxmox.com Git - mirror_qemu.git/commit
iotests: chown LUKS device before qemu-io launches
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 26 Jun 2017 12:35:10 +0000 (13:35 +0100)
committerMax Reitz <mreitz@redhat.com>
Tue, 11 Jul 2017 15:45:00 +0000 (17:45 +0200)
commitae50b71db01df0bb0b39694ab12354b80c9c95df
treed091b7433b2299068f7d34a60a4df2868233f827
parenta488e71e1e3d1568eb926f80e828e0d440af916b
iotests: chown LUKS device before qemu-io launches

On some distros, whenever you close a block device file
descriptor there is a udev rule that resets the file
permissions. This can race with the test script when
we run qemu-io multiple times against the same block
device. Occasionally the second qemu-io invocation
will find udev has reset the permissions causing failure.

Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 20170626123510.20134-6-berrange@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/149
tests/qemu-iotests/149.out