Skip to content

Commit

Permalink
findmnt: (verify) support fstype patterns
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
karelzak committed Jan 21, 2022
1 parent e209dd3 commit 01b63ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion misc-utils/findmnt-verify.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "strutils.h"
#include "xalloc.h"
#include "pathnames.h"
#include "match.h"

#include "findmnt.h"

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 01b63ee

Please sign in to comment.