---
Notes:
Version 2:
- new patch
src/libvirt_private.syms | 1 +
src/util/storage_file.c | 10 ++++++++++
src/util/storage_file.h | 1 +
3 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 9e3573f..18a24e4 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -1011,6 +1011,7 @@ virStorageFileFormatTypeToString;
virStorageFileFreeMetadata;
virStorageFileGetMetadata;
virStorageFileGetMetadataFromFD;
+virStorageFileIsClusterFS;
virStorageFileIsSharedFS;
virStorageFileIsSharedFSType;
virStorageFileProbeFormat;
diff --git a/src/util/storage_file.c b/src/util/storage_file.c
index a8661e3..cd1c142 100644
--- a/src/util/storage_file.c
+++ b/src/util/storage_file.c
@@ -1063,3 +1063,13 @@ int virStorageFileIsSharedFS(const char *path)
VIR_STORAGE_FILE_SHFS_OCFS |
VIR_STORAGE_FILE_SHFS_AFS);
}
+
+int virStorageFileIsClusterFS(const char *path)
+{
+ /* These are coherent cluster filesystems known to be safe for
+ * migration with cache != none
+ */
+ return virStorageFileIsSharedFSType(path,
+ VIR_STORAGE_FILE_SHFS_GFS2 |
+ VIR_STORAGE_FILE_SHFS_OCFS);
+}
diff --git a/src/util/storage_file.h b/src/util/storage_file.h
index 96afb12..13d0e87 100644
--- a/src/util/storage_file.h
+++ b/src/util/storage_file.h
@@ -82,6 +82,7 @@ enum {
};
int virStorageFileIsSharedFS(const char *path);
+int virStorageFileIsClusterFS(const char *path);
int virStorageFileIsSharedFSType(const char *path,
int fstypes);
--
1.7.8.4