[pve-devel] [PATCH 1/8] rename scsicontroller deviceid from scsi0/1 to lsi0/1
Derumier Alexandre
aderumier at odiso.com
Fri Dec 23 08:09:41 CET 2011
Signed-off-by: Derumier Alexandre <aderumier at odiso.com>
---
PVE/QemuServer.pm | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 4d561d1..d1b2d97 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -2138,7 +2138,7 @@ sub config_to_command {
my $maxdev = 7;
my $controller = int($drive->{index} / $maxdev);
$pciaddr = print_pci_addr("scsi$controller");
- push @$cmd, '-device', "lsi,id=scsi$controller$pciaddr" if !$scsicontroller->{$controller};
+ push @$cmd, '-device', "lsi,id=lsi$controller$pciaddr" if !$scsicontroller->{$controller};
$scsicontroller->{$controller}=1;
}
@@ -2897,8 +2897,8 @@ sub print_pci_addr {
#addr2 : first videocard
balloon0 => { bus => 0, addr => 3 },
watchdog => { bus => 0, addr => 4 },
- scsi0 => { bus => 0, addr => 5 },
- scsi1 => { bus => 0, addr => 6 },
+ lsi0 => { bus => 0, addr => 5 },
+ lsi1 => { bus => 0, addr => 6 },
virtio0 => { bus => 0, addr => 10 },
virtio1 => { bus => 0, addr => 11 },
virtio2 => { bus => 0, addr => 12 },
--
1.7.2.5
More information about the pve-devel
mailing list