render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
3e5111
From 1c328fa0094c7a1c913f57a7361f650657d1aae8 Mon Sep 17 00:00:00 2001
3e5111
Message-Id: <1c328fa0094c7a1c913f57a7361f650657d1aae8@dist-git>
3e5111
From: Peter Krempa <pkrempa@redhat.com>
3e5111
Date: Tue, 20 Jun 2017 14:45:36 +0200
3e5111
Subject: [PATCH] util: storage: Export virStorageIsRelative
3e5111
3e5111
(cherry picked from commit e4c3eff70ed83694cc49820edcf7f5733e5bae27)
3e5111
3e5111
https://bugzilla.redhat.com/show_bug.cgi?id=1461303
3e5111
3e5111
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
3e5111
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
3e5111
---
3e5111
 src/libvirt_private.syms  | 1 +
3e5111
 src/util/virstoragefile.c | 2 +-
3e5111
 src/util/virstoragefile.h | 1 +
3e5111
 3 files changed, 3 insertions(+), 1 deletion(-)
3e5111
3e5111
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
3e5111
index 8c088316c4..9c596e3f1c 100644
3e5111
--- a/src/libvirt_private.syms
3e5111
+++ b/src/libvirt_private.syms
3e5111
@@ -2561,6 +2561,7 @@ virStorageFileParseChainIndex;
3e5111
 virStorageFileProbeFormat;
3e5111
 virStorageFileResize;
3e5111
 virStorageIsFile;
3e5111
+virStorageIsRelative;
3e5111
 virStorageNetHostDefClear;
3e5111
 virStorageNetHostDefCopy;
3e5111
 virStorageNetHostDefFree;
3e5111
diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c
3e5111
index c2ba3fba9f..3ed79fb2b5 100644
3e5111
--- a/src/util/virstoragefile.c
3e5111
+++ b/src/util/virstoragefile.c
3e5111
@@ -801,7 +801,7 @@ virStorageIsFile(const char *backing)
3e5111
 }
3e5111
 
3e5111
 
3e5111
-static bool
3e5111
+bool
3e5111
 virStorageIsRelative(const char *backing)
3e5111
 {
3e5111
     if (backing[0] == '/')
3e5111
diff --git a/src/util/virstoragefile.h b/src/util/virstoragefile.h
3e5111
index 9ebfc11081..ce54a19cee 100644
3e5111
--- a/src/util/virstoragefile.h
3e5111
+++ b/src/util/virstoragefile.h
3e5111
@@ -332,6 +332,7 @@ int virStorageFileResize(const char *path,
3e5111
 
3e5111
 int virStorageFileIsClusterFS(const char *path);
3e5111
 bool virStorageIsFile(const char *path);
3e5111
+bool virStorageIsRelative(const char *backing);
3e5111
 
3e5111
 int virStorageFileGetLVMKey(const char *path,
3e5111
                             char **key);
3e5111
-- 
3e5111
2.13.1
3e5111