The filesystem type magic constant was added for the 'quobyte' shared
filesystem in commit 451094bd153 but is present neither in the kernel
sources nor in coreutils which we've historically used as source of
information.
Since the code dealing with FUSE-based filesystems doesn't need the
constand we can remove it and the now-dead check for it.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/util/virfile.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/src/util/virfile.c b/src/util/virfile.c
index f5a61abd9f..6302364797 100644
--- a/src/util/virfile.c
+++ b/src/util/virfile.c
@@ -3316,9 +3316,6 @@ virFileRemoveLastComponent(char *path)
# ifndef GPFS_SUPER_MAGIC
# define GPFS_SUPER_MAGIC 0x47504653
# endif
-# ifndef QB_MAGIC
-# define QB_MAGIC 0x51626d6e
-# endif
# define VIR_ACFS_MAGIC 0x61636673
@@ -3476,9 +3473,6 @@ virFileIsSharedFSType(const char *path,
if ((fstypes & VIR_FILE_SHFS_GPFS) &&
(f_type == GPFS_SUPER_MAGIC))
return 1;
- if ((fstypes & VIR_FILE_SHFS_QB) &&
- (f_type == QB_MAGIC))
- return 1;
if ((fstypes & VIR_FILE_SHFS_ACFS) &&
(f_type == VIR_ACFS_MAGIC))
return 1;
--
2.37.1