]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/mount: log only once about fs not supporting new mount API 36356/head
authorMike Yuan <me@yhndnzj.com>
Tue, 11 Feb 2025 18:44:59 +0000 (19:44 +0100)
committerMike Yuan <me@yhndnzj.com>
Wed, 12 Feb 2025 17:16:44 +0000 (18:16 +0100)
src/core/mount.c

index 6610c02c2c1323fa02533b0580b2fc735ef9957b..d7557bf3897531bc7ee78a6ce8e57f08245308a4 100644 (file)
@@ -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);