674941bbf7
53022930-lxc-connection-fix.patch 530229cb-non-x86-kvm-creation-fix.patch 53023f56-dont-alter-caps-machine-list-on-create.patch 53030858-generate_target-fix.patch 53037798-not-customizing-generate_target-fix.patch 53047532-dont-get-duplicated-disks.patch 53047595-calculate-disk-bus-properly.patch 530987c4-disk-bus-calculation-fix.patch 530c021c-attempt-empty-path-on-virDomainBlockStats.patch 530cd6ab-log-broken-xml.patch 530cf4de-allow-numbered-object-names.patch 530cfa5e-close-connection-on-tick-failure-fix.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=146
23 lines
783 B
Diff
23 lines
783 B
Diff
Subject: disk: calculate the disk bus properly
|
|
From: Martin Kletzander mkletzan@redhat.com Wed Feb 19 10:12:46 2014 +0100
|
|
Date: Wed Feb 19 10:12:53 2014 +0100:
|
|
Git: 466c2bcf9cb07f16690cb41684d67d0265d2d47e
|
|
|
|
I forgot to amend this change when changing it the last time.
|
|
|
|
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
|
|
|
|
diff --git a/virtinst/devicedisk.py b/virtinst/devicedisk.py
|
|
index 6e7c6c8..9ebcc11 100644
|
|
--- a/virtinst/devicedisk.py
|
|
+++ b/virtinst/devicedisk.py
|
|
@@ -484,7 +484,7 @@ class VirtualDisk(VirtualDevice):
|
|
# This case is here for 'xvda'
|
|
tgt = tgt[1:]
|
|
for i, c in enumerate(reversed(tgt[2:])):
|
|
- num += (ord(c) - ord('a') + 1) * (26 ** i)
|
|
+ num += (ord(c) - ord('a')) * (26 ** i)
|
|
return num
|
|
|
|
|