From: Mike Yuan Date: Tue, 11 Feb 2025 18:44:59 +0000 (+0100) Subject: core/mount: log only once about fs not supporting new mount API X-Git-Tag: v258-rc1~1343^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F36356%2Fhead;p=thirdparty%2Fsystemd.git core/mount: log only once about fs not supporting new mount API --- diff --git a/src/core/mount.c b/src/core/mount.c index 6610c02c2c1..d7557bf3897 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -1104,6 +1104,12 @@ static int mount_apply_graceful_options(Mount *m, const MountParameters *p, char return r; r = mount_option_supported(p->fstype, k ?: *o, v); + if (r == -EAGAIN) { + log_unit_warning_errno(UNIT(m), r, + "x-systemd.graceful-option= used but not supported by file system %s, suppressing all.", + p->fstype); + break; + } if (r < 0) log_unit_warning_errno(UNIT(m), r, "x-systemd.graceful-option=%s specified, but cannot determine availability, suppressing: %m", *o);