summaryrefslogtreecommitdiff
path: root/src/core/mount.h
diff options
context:
space:
mode:
authorMichal Sekletar <msekletar@users.noreply.github.com>2017-10-16 16:15:05 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-10-16 16:15:05 +0200
commitfab35afabf01a5dea651187a1ccb5ae7cd778f9d (patch)
tree782bd51c511523c1d7e18152021fc9f62db24df0 /src/core/mount.h
parent0051ca1f63e6d9c481e3b5f989e72ff538b17daa (diff)
downloadsystemd-fab35afabf01a5dea651187a1ccb5ae7cd778f9d.tar.gz
mount: make sure we unmount tmpfs mounts before we deactivate swaps (#7076)
In the past we introduced this property just for tmp.mount. However on todays systems usually there are many more tmpfs mounts. Most notably mounts backing XDG_RUNTIME_DIR for each user. Let's generalize what we already have for tmp.mount and implement the ordering After=swap.target for all tmpfs based mounts.
Diffstat (limited to 'src/core/mount.h')
-rw-r--r--src/core/mount.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/mount.h b/src/core/mount.h
index f81e4217df..f37094e39f 100644
--- a/src/core/mount.h
+++ b/src/core/mount.h
@@ -110,3 +110,5 @@ MountExecCommand mount_exec_command_from_string(const char *s) _pure_;
const char* mount_result_to_string(MountResult i) _const_;
MountResult mount_result_from_string(const char *s) _pure_;
+
+const char *mount_get_fstype(const Mount *m);