]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix virDiskNameToIndex to actually ignore partition numbers
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 22 Nov 2012 14:56:08 +0000 (14:56 +0000)
committerCole Robinson <crobinso@redhat.com>
Sun, 9 Dec 2012 21:34:41 +0000 (16:34 -0500)
commitf45dded083c4a2b63311831ce0ec075e7a287a76
treef5e158a21d5bb0ea360d8908c2d3744c7cafa734
parent179216680ed2a02053983f31c374ef55489b9f5a
Fix virDiskNameToIndex to actually ignore partition numbers

The docs for virDiskNameToIndex claim it ignores partition
numbers. In actual fact though, a code ordering bug means
that a partition number will cause the code to accidentally
multiply the result by 26.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
(cherry picked from commit 81d6c4defe2b72f34b02884bb78f924165998771)
src/util/util.c