mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 05:17:59 +03:00
* src/domain_conf.c: fix virDiskNameToBusDeviceIndex() to allow 0
patch by Guido Günther Daniel
This commit is contained in:
parent
c16d74a12a
commit
aadb84a547
@ -1,3 +1,8 @@
|
||||
Fri Oct 17 11:16:30 CEST 2008 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* src/domain_conf.c: fix virDiskNameToBusDeviceIndex() to allow 0
|
||||
patch by Guido Günther
|
||||
|
||||
Thu Oct 16 19:17:25 +0200 Jim Meyering <meyering@redhat.com>
|
||||
|
||||
build: when po-check fails, say why and suggest a fix
|
||||
|
@ -3394,12 +3394,12 @@ char *virDomainConfigFile(virConnectPtr conn,
|
||||
* @param devIdx parsed device number
|
||||
* @return 0 on success, -1 on failure
|
||||
*/
|
||||
int virDiskNameToBusDeviceIndex(virDomainDiskDefPtr disk,
|
||||
int virDiskNameToBusDeviceIndex(const virDomainDiskDefPtr disk,
|
||||
int *busIdx,
|
||||
int *devIdx) {
|
||||
|
||||
int idx = virDiskNameToIndex(disk->dst);
|
||||
if (idx < 1)
|
||||
if (idx < 0)
|
||||
return -1;
|
||||
|
||||
switch (disk->bus) {
|
||||
|
Loading…
Reference in New Issue
Block a user