The function will be reused in the qemu snapshot code. The argument is
turned into const similarly to the other virStorageFileSupports*
functions.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/libvirt_private.syms | 1 +
src/util/virstoragefile.c | 4 ++--
src/util/virstoragefile.h | 1 +
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 83f40cefe6..9db4ac7933 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -2994,6 +2994,7 @@ virStorageFileReportBrokenChain;
virStorageFileResize;
virStorageFileStat;
virStorageFileSupportsAccess;
+virStorageFileSupportsBackingChainTraversal;
virStorageFileSupportsCreate;
virStorageFileSupportsSecurityDriver;
virStorageFileUnlink;
diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c
index ba56f452e9..4011187a7e 100644
--- a/src/util/virstoragefile.c
+++ b/src/util/virstoragefile.c
@@ -4448,8 +4448,8 @@ virStorageFileGetBackendForSupportCheck(const virStorageSource
*src,
}
-static int
-virStorageFileSupportsBackingChainTraversal(virStorageSourcePtr src)
+int
+virStorageFileSupportsBackingChainTraversal(const virStorageSource *src)
{
virStorageFileBackendPtr backend;
int rv;
diff --git a/src/util/virstoragefile.h b/src/util/virstoragefile.h
index 2882bacf3e..b65cd4c382 100644
--- a/src/util/virstoragefile.h
+++ b/src/util/virstoragefile.h
@@ -533,6 +533,7 @@ int virStorageFileChown(const virStorageSource *src, uid_t uid, gid_t
gid);
int virStorageFileSupportsSecurityDriver(const virStorageSource *src);
int virStorageFileSupportsAccess(const virStorageSource *src);
int virStorageFileSupportsCreate(const virStorageSource *src);
+int virStorageFileSupportsBackingChainTraversal(const virStorageSource *src);
int virStorageFileGetMetadata(virStorageSourcePtr src,
uid_t uid, gid_t gid,
--
2.21.0