]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/core/umount.h
tree-wide: beautify remaining copyright statements
[thirdparty/systemd.git] / src / core / umount.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
c2f1db8f 2#pragma once
e3478379
FF
3
4/***
96b2fb93 5 Copyright © 2010 ProFUSION embedded systems
e3478379
FF
6***/
7
6fa392bf
ZJS
8#include "list.h"
9
456b2199 10int umount_all(bool *changed, int umount_log_level);
e3478379 11
12aad1d0 12int swapoff_all(bool *changed);
e3478379 13
456b2199 14int loopback_detach_all(bool *changed, int umount_log_level);
e3478379 15
456b2199 16int dm_detach_all(bool *changed, int umount_log_level);
6fa392bf
ZJS
17
18/* This is exported just for testing */
19typedef struct MountPoint {
20 char *path;
21 char *remount_options;
22 unsigned long remount_flags;
23 bool try_remount_ro;
24 dev_t devnum;
25 LIST_FIELDS(struct MountPoint, mount_point);
26} MountPoint;
27
28int mount_points_list_get(const char *mountinfo, MountPoint **head);
29void mount_points_list_free(MountPoint **head);
1fd8edb5 30int swap_list_get(const char *swaps, MountPoint **head);