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