findmnt: (verify) support fstype patterns

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>
This commit is contained in:
Karel Zak 2022-01-21 12:57:29 +01:00
parent e209dd35d2
commit 01b63ee348

View file

@ -15,6 +15,7 @@
#include "strutils.h" #include "strutils.h"
#include "xalloc.h" #include "xalloc.h"
#include "pathnames.h" #include "pathnames.h"
#include "match.h"
#include "findmnt.h" #include "findmnt.h"
@ -284,7 +285,7 @@ static int is_supported_filesystem(struct verify_context *vfy, const char *name)
return 0; return 0;
for (n = 0; n < vfy->fs_num; n++ ) { 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; return 1;
} }