]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mount-setup: use mount_verbose_full where appropriate
authorMike Yuan <me@yhndnzj.com>
Tue, 23 Apr 2024 14:05:09 +0000 (22:05 +0800)
committerMike Yuan <me@yhndnzj.com>
Wed, 24 Apr 2024 00:39:26 +0000 (08:39 +0800)
src/shared/mount-setup.c

index 56381bc7d875ef5422aa63853e545fccde565fc6..6511d48a9090da9ca4b2881a6fc35e8d337fbd40 100644 (file)
@@ -195,10 +195,7 @@ static int mount_one(const MountPoint *p, bool relabel) {
                   p->type,
                   strna(p->options));
 
-        if (FLAGS_SET(p->mode, MNT_FOLLOW_SYMLINK))
-                r = mount_follow_verbose(priority, p->what, p->where, p->type, p->flags, p->options);
-        else
-                r = mount_nofollow_verbose(priority, p->what, p->where, p->type, p->flags, p->options);
+        r = mount_verbose_full(priority, p->what, p->where, p->type, p->flags, p->options, FLAGS_SET(p->mode, MNT_FOLLOW_SYMLINK));
         if (r < 0)
                 return FLAGS_SET(p->mode, MNT_FATAL) ? r : 0;