]> git.proxmox.com Git - qemu-server.git/commitdiff
rename vm_deviceadd to vm_deviceplug, and vm_devicedel to vm_deviceunplug
authorDerumier Alexandre <aderumier@odiso.com>
Fri, 20 Jan 2012 10:42:03 +0000 (11:42 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 23 Jan 2012 08:06:24 +0000 (09:06 +0100)
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
PVE/API2/Qemu.pm
PVE/QemuServer.pm

index 9be699b477d8d7e1a8a69f80e57070b37d5c6a40..518a98244ca1a8596ae39014e7e4124a1b9c9af4 100644 (file)
@@ -533,7 +533,7 @@ __PACKAGE__->register_method({
                } 
                next if !defined($conf->{$opt});
                if (PVE::QemuServer::valid_drivename($opt)) {
-                   PVE::QemuServer::vm_devicedel($vmid, $conf, $opt);
+                   PVE::QemuServer::vm_deviceunplug($vmid, $conf, $opt);
                    my $drive = PVE::QemuServer::parse_drive($opt, $conf->{$opt});
                    if (PVE::QemuServer::drive_is_cdrom($drive)) {
                        $cdchange->{$opt} = undef;
index e3c6c28df6ab834acad979a3bc660c147169efc6..af6a14ea4f0129261d5125281b9c4761ba2fe839 100644 (file)
@@ -1290,7 +1290,7 @@ sub create_disks {
                    die "image '$path' does not exists\n";
                }
            }
-           PVE::QemuServer::vm_deviceadd($storecfg, $conf, $vmid, $ds, $disk) if defined($conf);
+           PVE::QemuServer::vm_deviceplug($storecfg, $conf, $vmid, $ds, $disk) if defined($conf);
        });
     };
 
@@ -2282,7 +2282,7 @@ sub vm_devices_list {
     return $devices;
 }
 
-sub vm_deviceadd {
+sub vm_deviceplug {
     my ($storecfg, $conf, $vmid, $deviceid, $device) = @_;
     return if !check_running($vmid) || !$conf->{hotplug} || $conf->{$deviceid};
     
@@ -2311,7 +2311,7 @@ sub vm_deviceadd {
     die "error on hotplug device $deviceid";
 }
 
-sub vm_devicedel {
+sub vm_deviceunplug {
     my ($vmid, $conf, $deviceid) = @_;
 
     return if !check_running ($vmid) || !$conf->{hotplug};