mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-02-15 05:57:39 +03:00
improve error on '{full, linked} clone not available' error
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
df58868200
commit
6318daca96
@ -2448,12 +2448,12 @@ __PACKAGE__->register_method({
|
||||
$newconf->{$opt} = $value; # simply copy configuration
|
||||
} else {
|
||||
if ($param->{full}) {
|
||||
die "Full clone feature is not available"
|
||||
die "Full clone feature is not supported for drive '$opt'\n"
|
||||
if !PVE::Storage::volume_has_feature($storecfg, 'copy', $drive->{file}, $snapname, $running);
|
||||
$fullclone->{$opt} = 1;
|
||||
} else {
|
||||
# not full means clone instead of copy
|
||||
die "Linked clone feature is not available"
|
||||
die "Linked clone feature is not supported for drive '$opt'\n"
|
||||
if !PVE::Storage::volume_has_feature($storecfg, 'clone', $drive->{file}, $snapname, $running);
|
||||
}
|
||||
$drives->{$opt} = $drive;
|
||||
|
Loading…
x
Reference in New Issue
Block a user