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:
parent
e209dd35d2
commit
01b63ee348
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue