]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: virFileIsSharedFSType: Pass bitmap of checked fs types as unsigned
authorPeter Krempa <pkrempa@redhat.com>
Mon, 5 Sep 2022 09:34:32 +0000 (11:34 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 5 Sep 2022 15:32:13 +0000 (17:32 +0200)
We populate the bits individually so unsigned is the proper type.

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

index ce541b8946b8daa6634147bd9c73aa532b83714b..1def05b6c4fce9451e6880f461c0d3d4463206b1 100644 (file)
@@ -3394,7 +3394,7 @@ virFileIsSharedFixFUSE(const char *path,
 
 int
 virFileIsSharedFSType(const char *path,
-                      int fstypes)
+                      unsigned int fstypes)
 {
     g_autofree char *dirpath = NULL;
     char *p = NULL;
@@ -3601,7 +3601,7 @@ virFileFindHugeTLBFS(virHugeTLBFS **ret_fs,
 #else /* defined __linux__ */
 
 int virFileIsSharedFSType(const char *path G_GNUC_UNUSED,
-                          int fstypes G_GNUC_UNUSED)
+                          unsigned int fstypes G_GNUC_UNUSED)
 {
     /* XXX implement me :-) */
     return 0;
index 4af1ad91365e14f0142da754cc43304a0d6a63ca..8d6df034f8f38cc4692fe5d763222653416ea910 100644 (file)
@@ -224,7 +224,7 @@ enum {
     VIR_FILE_SHFS_ACFS = (1 << 9),
 };
 
-int virFileIsSharedFSType(const char *path, int fstypes) ATTRIBUTE_NONNULL(1);
+int virFileIsSharedFSType(const char *path, unsigned int fstypes) ATTRIBUTE_NONNULL(1);
 int virFileIsSharedFS(const char *path) ATTRIBUTE_NONNULL(1);
 int virFileIsClusterFS(const char *path) ATTRIBUTE_NONNULL(1);
 int virFileIsMountPoint(const char *file) ATTRIBUTE_NONNULL(1);