OSDN Git Service

luks: Allow share-rw=on
authorFam Zheng <famz@redhat.com>
Tue, 14 Aug 2018 07:25:51 +0000 (15:25 +0800)
committerKevin Wolf <kwolf@redhat.com>
Wed, 15 Aug 2018 10:50:39 +0000 (12:50 +0200)
commit497da8236ab2663a8108858ba7ea59aac21c5fe6
tree47f46c340b10a95cc696004a34794abb89794991
parent25b8e4db7f3baca47244ccd945eb62b32a6e2019
luks: Allow share-rw=on

Format drivers such as qcow2 don't allow sharing the same image between
two QEMU instances in order to prevent image corruptions, because of
metadata cache. LUKS driver don't modify metadata except for when
creating image, so it is safe to relax the permission. This makes
share-rw=on property work on virtual devices.

Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/crypto.c