]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
storagefile: Rename qcow2GetBackingStoreFormat
authorCole Robinson <crobinso@redhat.com>
Fri, 4 Oct 2019 23:59:23 +0000 (19:59 -0400)
committerCole Robinson <crobinso@redhat.com>
Fri, 11 Oct 2019 17:41:22 +0000 (13:41 -0400)
...to qcow2GetExtensions. We will extend it for more extension
parsing in future patches

Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
src/util/virstoragefile.c

index b8f7faf5805ab05898b3ab77bf4688982e35fb02..d6bd38777b20652069fa6caa45a91622199ed087 100644 (file)
@@ -427,9 +427,9 @@ cowGetBackingStore(char **res,
 
 
 static int
-qcow2GetBackingStoreFormat(int *format,
-                           const char *buf,
-                           size_t buf_size)
+qcow2GetExtensions(int *format,
+                   const char *buf,
+                   size_t buf_size)
 {
     size_t offset;
     size_t extension_start;
@@ -561,7 +561,7 @@ qcowXGetBackingStore(char **res,
     memcpy(*res, buf + offset, size);
     (*res)[size] = '\0';
 
-    if (qcow2GetBackingStoreFormat(format, buf, buf_size) < 0)
+    if (qcow2GetExtensions(format, buf, buf_size) < 0)
         return BACKING_STORE_INVALID;
 
     return BACKING_STORE_OK;