[pve-devel] vm_deviceunplug question
    Alexandre DERUMIER 
    aderumier at odiso.com
       
    Tue Nov 25 10:03:44 CET 2014
    
    
  
This is because for virtio disk we remove the controller + drive,  (1controller - 1 drive)
and for scsi we only remove the drive  (1controller - 256 drives)
----- Mail original ----- 
De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Alexandre DERUMIER (aderumier at odiso.com)" <aderumier at odiso.com> 
Cc: pve-devel at pve.proxmox.com 
Envoyé: Mardi 25 Novembre 2014 07:26:22 
Objet: vm_deviceunplug question 
For example, for virtio we call qemu_devicedelverify(): 
if ($deviceid =~ m/^(virtio)(\d+)$/) { 
qemu_devicedel($vmid, $deviceid); 
return undef if !qemu_devicedelverify($vmid, $deviceid); 
return undef if !qemu_drivedel($vmid, $deviceid); 
But for lsi/scsi we simply do: 
if ($deviceid =~ m/^(scsi)(\d+)$/) { 
qemu_devicedel($vmid, $deviceid); 
return undef if !qemu_drivedel($vmid, $deviceid); 
Why don’t we call qemu_devicedelverify() here? 
    
    
More information about the pve-devel
mailing list