]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shutdown/umount.h
shutdown: use "int" for log level type
[thirdparty/systemd.git] / src / shutdown / umount.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5 Copyright © 2010 ProFUSION embedded systems
6 ***/
7
8 #include "list.h"
9
10 int umount_all(bool *changed, int umount_log_level);
11
12 int swapoff_all(bool *changed);
13
14 int loopback_detach_all(bool *changed, int umount_log_level);
15
16 int dm_detach_all(bool *changed, int umount_log_level);
17
18 /* This is exported just for testing */
19 typedef 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
28 int mount_points_list_get(const char *mountinfo, MountPoint **head);
29 void mount_points_list_free(MountPoint **head);
30 int swap_list_get(const char *swaps, MountPoint **head);