mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
Use proper error code in virStorageVolCreateXML
This commit is contained in:
parent
3f24e6c21c
commit
48e9d6862a
@ -1,3 +1,7 @@
|
|||||||
|
Tue May 5 10:16:56 EDT 2009 Cole Robinson <crobinso@redhat.com>
|
||||||
|
|
||||||
|
* src/libvirt.c: Use proper error code in virStorageVolCreateXML
|
||||||
|
|
||||||
Mon May 4 11:44:09 EDT 2009 Cole Robinson <crobinso@redhat.com>
|
Mon May 4 11:44:09 EDT 2009 Cole Robinson <crobinso@redhat.com>
|
||||||
|
|
||||||
* src/storage_backend_fs.c: Fix a comment typo in storage_backend_fs.c
|
* src/storage_backend_fs.c: Fix a comment typo in storage_backend_fs.c
|
||||||
|
@ -6740,7 +6740,7 @@ virStorageVolCreateXML(virStoragePoolPtr pool,
|
|||||||
virResetLastError();
|
virResetLastError();
|
||||||
|
|
||||||
if (!VIR_IS_STORAGE_POOL(pool)) {
|
if (!VIR_IS_STORAGE_POOL(pool)) {
|
||||||
virLibConnError(NULL, VIR_ERR_INVALID_STORAGE_VOL, __FUNCTION__);
|
virLibConnError(NULL, VIR_ERR_INVALID_STORAGE_POOL, __FUNCTION__);
|
||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user