]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
findmnt: use warning rather than error from FS type mismatch
authorKarel Zak <kzak@redhat.com>
Wed, 5 Apr 2023 10:00:11 +0000 (12:00 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 5 Apr 2023 10:00:11 +0000 (12:00 +0200)
Fixes: https://github.com/util-linux/util-linux/issues/2148
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/findmnt-verify.c

index d9a59c1a16cb3f53cc09628922b23ab34e34873f..3543c36e24817a7f8a50e1e00fb2aed42ed26679 100644 (file)
@@ -464,11 +464,11 @@ static int verify_fstype(struct verify_context *vfy)
                                || strcmp(realtype, "btrfs") == 0;
 
                if (type && !isauto && strcmp(type, realtype) != 0) {
-                       verify_err(vfy, _("%s does not match with on-disk %s"), type, realtype);
+                       verify_warn(vfy, _("%s does not match with on-disk %s"), type, realtype);
                        goto done;
                }
                if (!isswap && !is_supported_filesystem(vfy, realtype)) {
-                       verify_err(vfy, _("on-disk %s seems unsupported by the current kernel"), realtype);
+                       verify_warn(vfy, _("on-disk %s seems unsupported by the current kernel"), realtype);
                        goto done;
                }