mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
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 <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
74c499bdb0
commit
0c51bc31bc
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user