diff options
author | Frederic Crozat <fcrozat@suse.com> | 2013-02-21 16:09:40 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-03-01 14:43:18 +0100 |
commit | 3f8ee7918207d7128d4edbc20a1e81f4c6e1110e (patch) | |
tree | e06e8b1e581b200a2b686c70bd71ef1ae3145b3d /src/core/mount.c | |
parent | journalctl: add --user-unit= switch (diff) | |
download | systemd-3f8ee7918207d7128d4edbc20a1e81f4c6e1110e.tar.xz systemd-3f8ee7918207d7128d4edbc20a1e81f4c6e1110e.zip |
fstab,mount: detect rbind as bind mount
Correctly detect rbind mount option as bind mount.
Fixes https://bugzilla.novell.com/show_bug.cgi?id=804575.
Diffstat (limited to 'src/core/mount.c')
-rw-r--r-- | src/core/mount.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/mount.c b/src/core/mount.c index e3d298eb96..419cf27a88 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -329,6 +329,12 @@ static bool mount_is_bind(MountParameters *p) { if (p->fstype && streq(p->fstype, "bind")) return true; + if (mount_test_option(p->options, "rbind")) + return true; + + if (p->fstype && streq(p->fstype, "rbind")) + return true; + return false; } |