]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: virfile: Drop QB_MAGIC constant
authorPeter Krempa <pkrempa@redhat.com>
Mon, 5 Sep 2022 12:13:34 +0000 (14:13 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 5 Sep 2022 15:32:14 +0000 (17:32 +0200)
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
constant we can remove it and the now-dead check for it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virfile.c

index f5a61abd9ff980ffb9e328d19178d8f1f9ad17c7..63023647978bb354fe54d46cf8f6d588a0744e5d 100644 (file)
@@ -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;