[pve-devel] [PATCH qemu-server] improve complete_storage, only show storages which have the capability to run qemu images.

Wolfgang Link w.link at proxmox.com
Mon Nov 9 11:11:47 CET 2015


---
 PVE/QemuServer.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index a109ea9..aa4ba2b 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -5433,6 +5433,7 @@ sub restore_vma_archive {
 
 	print "restore vma archive: $cmd\n";
 	run_command($cmd, input => $input, outfunc => $parser, afterfork => $openfifo);
+
     };
     my $err = $@;
 
@@ -6507,6 +6508,7 @@ sub complete_storage {
     my $res = [];
     foreach my $sid (keys %$ids) {
 	next if !PVE::Storage::storage_check_enabled($cfg, $sid, undef, 1);
+	next if !$ids->{$sid}->{content}->{images};
 	push @$res, $sid;
     }
 
-- 
2.1.4




More information about the pve-devel mailing list