From 92a39ae1989a7583d696afd4c89990aea802e9ea Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 22 May 2012 02:00:53 +0200 Subject: [PATCH] mount: use the same fstab extension option syntax everywhere The man page and the actual code differed, and this is now corrected --- man/systemd.mount.xml | 11 ++++------- src/core/mount.c | 4 ++-- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/man/systemd.mount.xml b/man/systemd.mount.xml index 2352b6a8..ddaa3ce7 100644 --- a/man/systemd.mount.xml +++ b/man/systemd.mount.xml @@ -109,12 +109,9 @@ When reading /etc/fstab a few special mount options are understood by systemd which influence how dependencies are created for mount - points from /etc/fstab. If - is set in - system.conf (which is the - default), or if is - specified as mount option, then systemd will create a - dependency of type from either + points from /etc/fstab. systemd + will create a dependency of type + from either local-fs.target or remote-fs.target, depending whether the file system is local or remote. If @@ -123,7 +120,7 @@ system. See systemd.automount5 for details. If - is + is specified it may be used to configure how long systemd should wait for a device to show up before giving up on an entry from diff --git a/src/core/mount.c b/src/core/mount.c index 0c62e883..b597e9bf 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -358,7 +358,7 @@ static int mount_add_fstab_links(Mount *m) { nofail = !!mount_test_option(p->options, "nofail"); automount = mount_test_option(p->options, "comment=systemd.automount") || - mount_test_option(p->options, "x-systemd-automount"); + mount_test_option(p->options, "x-systemd.automount"); if (mount_is_network(p)) { target = SPECIAL_REMOTE_FS_TARGET; @@ -515,7 +515,7 @@ static int mount_fix_timeouts(Mount *m) { if ((timeout = mount_test_option(p->options, "comment=systemd.device-timeout"))) timeout += 31; - else if ((timeout = mount_test_option(p->options, "x-systemd-device-timeout"))) + else if ((timeout = mount_test_option(p->options, "x-systemd.device-timeout"))) timeout += 25; else return 0; -- 2.39.5