[libvirt] [PATCH 0/4] storage: Fix VolOpen error reporting

Cole Robinson crobinso at redhat.com
Mon Mar 31 00:42:27 UTC 2014


In https://bugzilla.redhat.com/show_bug.cgi?id=1080613 , something is
causing StorageVolGetXML to fail, but it's not raising any error message.
Code inspection found that most users of VolOpen are susceptible to error
reporting issues.

The first 3 patches are some code reorganization and cleanups that make
it easier to identify the VolOpen callers. Patch 4 fixes up the reporting
issue.

Cole Robinson (4):
  storage: Rename UpdateVolInfoFlags to UpdateVolInfo
  storage: move block format lookup to shared UpdateVolInfo
  storage: Rename VolOpenCheckMode to VolOpen
  storage: Always report an error from VolOpen

 src/storage/storage_backend.c         | 234 +++++++++++++++++-----------------
 src/storage/storage_backend.h         |  18 +--
 src/storage/storage_backend_disk.c    |   3 +-
 src/storage/storage_backend_fs.c      |  28 ++--
 src/storage/storage_backend_logical.c |  11 +-
 src/storage/storage_backend_mpath.c   |  36 +-----
 src/storage/storage_backend_scsi.c    |  43 +------
 7 files changed, 159 insertions(+), 214 deletions(-)

-- 
1.8.5.3




More information about the libvir-list mailing list