]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: virFileIsSharedFSType: Simplify shared fs type declarations
authorPeter Krempa <pkrempa@redhat.com>
Mon, 5 Sep 2022 12:28:29 +0000 (14:28 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 5 Sep 2022 15:32:14 +0000 (17:32 +0200)
commit3aa7c75fec9d92eb77cf900930503a057e1310cb
tree574a2d7ebbdb4fb76f5cd951b349d9c3ddbd7ce2
parent0c51bc31bce4bcefa90a8adc659bb12bac2c4961
util: virFileIsSharedFSType: Simplify shared fs type declarations

Use approach similar to virFileIsSharedFsFUSE to declaratively handle
the filesystem magic numbers mapping to libvirt's fstypes.

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