From: Peter Krempa Date: Mon, 5 Sep 2022 12:13:34 +0000 (+0200) Subject: util: virfile: Drop QB_MAGIC constant X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0c51bc31bce4bcefa90a8adc659bb12bac2c4961;p=libvirt.git util: virfile: Drop QB_MAGIC constant 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 --- 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;