From 0c51bc31bce4bcefa90a8adc659bb12bac2c4961 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Mon, 5 Sep 2022 14:13:34 +0200 Subject: [PATCH] util: virfile: Drop QB_MAGIC constant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Ján Tomko --- 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;