]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
storage: Switch metadata crawler to use storage driver to get unique path
authorPeter Krempa <pkrempa@redhat.com>
Thu, 24 Apr 2014 14:59:56 +0000 (16:59 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 3 Jun 2014 07:27:23 +0000 (09:27 +0200)
commit395171f87f01cbb8271bfdedc836c358a5f79003
tree609528bfccb2bc937b7a3349ba02501cfb5fb859
parentedfd6127c10e72aa71c2213c3332ef18b2cd7cc5
storage: Switch metadata crawler to use storage driver to get unique path

Use the virStorageFileGetUniqueIdentifier() function to get a unique
identifier regardless of the target storage type instead of relying on
canonicalize_path().

A new function that checks whether we support a given image is
introduced to avoid errors for unimplemented backends.
src/storage/storage_driver.c