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