[libvirt] [PATCH v2] libvirt: support block device storage type in virshParseSnapshotDiskspec

2019-07-08 Thread Liu Dayu
by prefix /dev/ or by stat() may be not suitable, so adding a "stype" field for the --diskspec string which will be either "file" or "block". e.g. --diskspec vda,snapshot=external,driver=qcow2,stype=block,file=/dev/xxx. Signed-off-by: Liu Dayu --- Patch v1: https://www.r

[libvirt] [PATCH] libvirt: support block device storage type in virshParseSnapshotDiskspec

2019-06-26 Thread Liu Dayu
with the actual backend storage source. It will check file-system type mismatch failed and return an error message of 'Migration without shared storage is unsafe' when VM performs a live migration after this snapshot. Signed-off-by: Liu Dayu --- tools/virsh-snapshot.c | 19 +-- 1