mount-v2: make mount engine fallback messages loglevel debug

On pre v5.15 kernel we don't have MOVE_MOUNT_SET_GROUP support and thus
all our ci logs are filled with "fallback" messages. Let's decrease log
level to debug, so that we don't see it in ci logs.

Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
This commit is contained in:
Pavel Tikhomirov 2022-03-20 19:38:34 +03:00 committed by Andrei Vagin
parent 8867840c82
commit 165d5a2cd5
2 changed files with 3 additions and 3 deletions

View file

@ -1110,7 +1110,7 @@ int check_options(void)
return 1;
} else if (!opts.mntns_compat_mode && opts.mode == CR_RESTORE) {
if (check_mount_v2()) {
pr_warn("Mount engine fallback to --mntns-compat-mode mode\n");
pr_debug("Mount engine fallback to --mntns-compat-mode mode\n");
opts.mntns_compat_mode = true;
}
}

View file

@ -33,12 +33,12 @@ LIST_HEAD(sharing_groups);
int check_mount_v2(void)
{
if (!kdat.has_move_mount_set_group) {
pr_warn("Mounts-v2 requires MOVE_MOUNT_SET_GROUP support\n");
pr_debug("Mounts-v2 requires MOVE_MOUNT_SET_GROUP support\n");
return -1;
}
if (!kdat.has_openat2) {
pr_warn("Mounts-v2 requires openat2 support\n");
pr_debug("Mounts-v2 requires openat2 support\n");
return -1;
}