[PATCH v7 06/14] virFileIsSharedFSOverride: Export

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Peter Krempa <pkrempa@xxxxxxxxxx>

Document the function and export it for use outside of the 'virfile'
utils module.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
Reviewed-by: Andrea Bolognani <abologna@xxxxxxxxxx>
Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 src/libvirt_private.syms |  1 +
 src/util/virfile.c       | 12 +++++++++++-
 src/util/virfile.h       |  2 ++
 3 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 02dacea857..e09fb98596 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -2359,6 +2359,7 @@ virFileIsLink;
 virFileIsMountPoint;
 virFileIsRegular;
 virFileIsSharedFS;
+virFileIsSharedFSOverride;
 virFileIsSharedFSType;
 virFileLength;
 virFileLinkPointsTo;
diff --git a/src/util/virfile.c b/src/util/virfile.c
index a8abd7d913..6ac0f4efb3 100644
--- a/src/util/virfile.c
+++ b/src/util/virfile.c
@@ -3804,7 +3804,16 @@ virFileGetDefaultHugepage(virHugeTLBFS *fs,
     return NULL;
 }
 
-static bool
+
+/**
+ * virFileIsSharedFSOverride:
+ * @path: Path to check
+ * @overrides: string list of path overrides
+ *
+ * Checks whether @path is inside any of the shared filesystem override
+ * directories passed as @overrides.
+ */
+bool
 virFileIsSharedFSOverride(const char *path,
                           char *const *overrides)
 {
@@ -3841,6 +3850,7 @@ virFileIsSharedFSOverride(const char *path,
     return false;
 }
 
+
 int virFileIsSharedFS(const char *path,
                       char *const *overrides)
 {
diff --git a/src/util/virfile.h b/src/util/virfile.h
index 4f9d2bd5da..e760724037 100644
--- a/src/util/virfile.h
+++ b/src/util/virfile.h
@@ -234,6 +234,8 @@ enum {
     VIR_FILE_SHFS_BEEGFS = (1 << 11), /* BeeGFS/fhGFS */
 };
 
+bool virFileIsSharedFSOverride(const char *path,
+                               char *const *overrides);
 int virFileIsSharedFSType(const char *path, unsigned int fstypes) ATTRIBUTE_NONNULL(1);
 int virFileIsSharedFS(const char *path,
                       char *const *overrides) ATTRIBUTE_NONNULL(1);
-- 
2.46.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux