]> xenbits.xensource.com Git - libvirt.git/commit
storage: Determine the local storage type right away
authorPeter Krempa <pkrempa@redhat.com>
Fri, 25 Apr 2014 13:16:25 +0000 (15:16 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 3 Jun 2014 07:27:23 +0000 (09:27 +0200)
commitd4c0ceae1b5dd97664b1a0b893edbce23db9022a
tree7b93cbce19cc2d6babce5f208599cc93fba8708a
parent713cc3b0a7ff8ad42b4c13429b624d1b2b5a99f2
storage: Determine the local storage type right away

When walking the backing chain we previously set the storage type to
_FILE and let the virStorageFileGetMetadataFromFDInternal update it to
the correct type later on.

This patch moves the actual storage type determination to the place
where we parse the backing store name so that the code can later be
switched to use virStorageFileReadHeader() directly.
src/storage/storage_driver.c