[pve-devel] [PATCH 5/6] add a hook to call vm_deviceadd when the disk in config file are added

Derumier Alexandre aderumier at odiso.com
Mon Oct 10 16:46:57 CEST 2011


Signed-off-by: Derumier Alexandre <aderumier at odiso.com>
---
 PVE/QemuServer.pm |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 80ab7c7..70e3979 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -1302,6 +1302,7 @@ sub create_disks {
 		    die "image '$path' does not exists\n";
 		}
 	    }
+	    PVE::QemuServer::vm_deviceadd ($storecfg,$vmid,$ds, $disk);
 	});
     };
 
-- 
1.7.2.5




More information about the pve-devel mailing list