mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-02 05:37:19 +00:00
image convert: allow block device as source
Necessary to import from an existing storage using block-device volumes like ZFS. Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com> [split into its own patch] Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
84c253e947
commit
a23d57d596
@ -7280,7 +7280,7 @@ sub qemu_img_convert {
|
||||
$src_path = PVE::Storage::path($storecfg, $src_volid, $snapname);
|
||||
$src_is_iscsi = ($src_path =~ m|^iscsi://|);
|
||||
$cachemode = 'none' if $src_scfg->{type} eq 'zfspool';
|
||||
} elsif (-f $src_volid) {
|
||||
} elsif (-f $src_volid || -b $src_volid) {
|
||||
$src_path = $src_volid;
|
||||
if ($src_path =~ m/\.($PVE::QemuServer::Drive::QEMU_FORMAT_RE)$/) {
|
||||
$src_format = $1;
|
||||
|
Loading…
Reference in New Issue
Block a user