]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
findmnt: (verify) support fstype patterns
authorKarel Zak <kzak@redhat.com>
Fri, 21 Jan 2022 11:57:29 +0000 (12:57 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 21 Jan 2022 11:57:29 +0000 (12:57 +0100)
mount(8) supports fstype patterns/lists (like "udf,iso9660") in fstab.
Let's support the same by --verify.

Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/findmnt-verify.c

index 609638c4d1a6648bc635409c77a07222ca710470..6e4ce77bb820c78fcb43c98ef4bd7ae64d6e3d7f 100644 (file)
@@ -15,6 +15,7 @@
 #include "strutils.h"
 #include "xalloc.h"
 #include "pathnames.h"
+#include "match.h"
 
 #include "findmnt.h"
 
@@ -284,7 +285,7 @@ static int is_supported_filesystem(struct verify_context *vfy, const char *name)
                return 0;
 
        for (n = 0; n < vfy->fs_num; n++ ) {
-               if (strcmp(vfy->fs_ary[n], name) == 0)
+               if (match_fstype(vfy->fs_ary[n], name))
                        return 1;
        }