diff options
author | Michal Sekletar <msekletar@users.noreply.github.com> | 2017-10-16 16:15:05 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-10-16 16:15:05 +0200 |
commit | fab35afabf01a5dea651187a1ccb5ae7cd778f9d (patch) | |
tree | 782bd51c511523c1d7e18152021fc9f62db24df0 /src/core/mount.h | |
parent | Merge pull request #7061 from lkundrak/lr/serialized-environment (diff) | |
download | systemd-fab35afabf01a5dea651187a1ccb5ae7cd778f9d.tar.xz systemd-fab35afabf01a5dea651187a1ccb5ae7cd778f9d.zip |
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.h | 2 |
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); |