]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/core/umount.h
16190c0c7ef3ed5ad2361ae2562660ec9eacdd67
[thirdparty/systemd.git] / src / core / umount.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5 This file is part of systemd.
6
7 Copyright 2010 ProFUSION embedded systems
8 ***/
9
10 #include "list.h"
11
12 int umount_all(bool *changed, int umount_log_level);
13
14 int swapoff_all(bool *changed);
15
16 int loopback_detach_all(bool *changed, int umount_log_level);
17
18 int dm_detach_all(bool *changed, int umount_log_level);
19
20 /* This is exported just for testing */
21 typedef struct MountPoint {
22 char *path;
23 char *remount_options;
24 unsigned long remount_flags;
25 bool try_remount_ro;
26 dev_t devnum;
27 LIST_FIELDS(struct MountPoint, mount_point);
28 } MountPoint;
29
30 int mount_points_list_get(const char *mountinfo, MountPoint **head);
31 void mount_points_list_free(MountPoint **head);
32 int swap_list_get(const char *swaps, MountPoint **head);