]> xenbits.xensource.com Git - libvirt.git/commit
storage: Combine some duplicate code
authorCole Robinson <crobinso@redhat.com>
Thu, 20 May 2010 17:29:24 +0000 (13:29 -0400)
committerCole Robinson <crobinso@redhat.com>
Mon, 24 May 2010 14:43:19 +0000 (10:43 -0400)
commite40a285bb7458dc69f360394889b69a8c4d39e19
tree0d67ff94bff05a4a89635adcbceea8a7a425f288
parent5086f85cc1baab21d91924c7846656bfb73f7628
storage: Combine some duplicate code

Volume detection in the scsi backend was duplicating code already
present in storage_backend.c. Let's drop the duplicate code.

Also, change the shared function name to be less generic, and remove
some error squashing in the other call site.
src/storage/storage_backend.c
src/storage/storage_backend.h
src/storage/storage_backend_mpath.c
src/storage/storage_backend_scsi.c