|
|
d759b5 |
From dbf1be7595d6b8d3816c997669eb8fc20719cb10 Mon Sep 17 00:00:00 2001
|
|
|
d759b5 |
Message-Id: <dbf1be7595d6b8d3816c997669eb8fc20719cb10@dist-git>
|
|
|
d759b5 |
From: Peter Krempa <pkrempa@redhat.com>
|
|
|
d759b5 |
Date: Fri, 16 Aug 2019 14:36:53 +0200
|
|
|
d759b5 |
Subject: [PATCH] util: Export virStorageFileSupportsBackingChainTraversal
|
|
|
d759b5 |
MIME-Version: 1.0
|
|
|
d759b5 |
Content-Type: text/plain; charset=UTF-8
|
|
|
d759b5 |
Content-Transfer-Encoding: 8bit
|
|
|
d759b5 |
|
|
|
d759b5 |
The function will be reused in the qemu snapshot code. The argument is
|
|
|
d759b5 |
turned into const similarly to the other virStorageFileSupports*
|
|
|
d759b5 |
functions.
|
|
|
d759b5 |
|
|
|
d759b5 |
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
|
|
|
d759b5 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
d759b5 |
(cherry picked from commit 68639829c69ba3ed369413771bf0abceb33c3668)
|
|
|
d759b5 |
https: //bugzilla.redhat.com/show_bug.cgi?id=1724808
|
|
|
d759b5 |
Message-Id: <3c6996022aa58404d1c977e0e3468acdf9f7f1a5.1565958905.git.pkrempa@redhat.com>
|
|
|
d759b5 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
d759b5 |
---
|
|
|
d759b5 |
src/libvirt_private.syms | 1 +
|
|
|
d759b5 |
src/util/virstoragefile.c | 4 ++--
|
|
|
d759b5 |
src/util/virstoragefile.h | 1 +
|
|
|
d759b5 |
3 files changed, 4 insertions(+), 2 deletions(-)
|
|
|
d759b5 |
|
|
|
d759b5 |
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
|
|
|
d759b5 |
index e696fa512c..9b5e1350f0 100644
|
|
|
d759b5 |
--- a/src/libvirt_private.syms
|
|
|
d759b5 |
+++ b/src/libvirt_private.syms
|
|
|
d759b5 |
@@ -2845,6 +2845,7 @@ virStorageFileReportBrokenChain;
|
|
|
d759b5 |
virStorageFileResize;
|
|
|
d759b5 |
virStorageFileStat;
|
|
|
d759b5 |
virStorageFileSupportsAccess;
|
|
|
d759b5 |
+virStorageFileSupportsBackingChainTraversal;
|
|
|
d759b5 |
virStorageFileSupportsCreate;
|
|
|
d759b5 |
virStorageFileSupportsSecurityDriver;
|
|
|
d759b5 |
virStorageFileUnlink;
|
|
|
d759b5 |
diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c
|
|
|
d759b5 |
index faf21db567..099ff62f75 100644
|
|
|
d759b5 |
--- a/src/util/virstoragefile.c
|
|
|
d759b5 |
+++ b/src/util/virstoragefile.c
|
|
|
d759b5 |
@@ -4389,8 +4389,8 @@ virStorageFileGetBackendForSupportCheck(const virStorageSource *src,
|
|
|
d759b5 |
}
|
|
|
d759b5 |
|
|
|
d759b5 |
|
|
|
d759b5 |
-static int
|
|
|
d759b5 |
-virStorageFileSupportsBackingChainTraversal(virStorageSourcePtr src)
|
|
|
d759b5 |
+int
|
|
|
d759b5 |
+virStorageFileSupportsBackingChainTraversal(const virStorageSource *src)
|
|
|
d759b5 |
{
|
|
|
d759b5 |
virStorageFileBackendPtr backend;
|
|
|
d759b5 |
int rv;
|
|
|
d759b5 |
diff --git a/src/util/virstoragefile.h b/src/util/virstoragefile.h
|
|
|
d759b5 |
index b99afee437..dcc48ad0b9 100644
|
|
|
d759b5 |
--- a/src/util/virstoragefile.h
|
|
|
d759b5 |
+++ b/src/util/virstoragefile.h
|
|
|
d759b5 |
@@ -506,6 +506,7 @@ int virStorageFileChown(const virStorageSource *src, uid_t uid, gid_t gid);
|
|
|
d759b5 |
int virStorageFileSupportsSecurityDriver(const virStorageSource *src);
|
|
|
d759b5 |
int virStorageFileSupportsAccess(const virStorageSource *src);
|
|
|
d759b5 |
int virStorageFileSupportsCreate(const virStorageSource *src);
|
|
|
d759b5 |
+int virStorageFileSupportsBackingChainTraversal(const virStorageSource *src);
|
|
|
d759b5 |
|
|
|
d759b5 |
int virStorageFileGetMetadata(virStorageSourcePtr src,
|
|
|
d759b5 |
uid_t uid, gid_t gid,
|
|
|
d759b5 |
--
|
|
|
d759b5 |
2.22.1
|
|
|
d759b5 |
|