From: Cole Robinson Date: Fri, 4 Oct 2019 23:59:23 +0000 (-0400) Subject: storagefile: Rename qcow2GetBackingStoreFormat X-Git-Tag: v5.9.0-rc1~298 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=125dbad3af1b421a5a7fdd6438dcd6c5dbc5bc6e;p=thirdparty%2Flibvirt.git storagefile: Rename qcow2GetBackingStoreFormat ...to qcow2GetExtensions. We will extend it for more extension parsing in future patches Reviewed-by: Daniel Henrique Barboza Reviewed-by: Michal Privoznik Signed-off-by: Cole Robinson --- diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c index b8f7faf580..d6bd38777b 100644 --- a/src/util/virstoragefile.c +++ b/src/util/virstoragefile.c @@ -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;