1:255.16-alt1
[systemd_ALT.git] / src / shutdown / umount.h
blobf8f9ae8038094c0737ede634938e12b92b0a5e27
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
4 /***
5 Copyright © 2010 ProFUSION embedded systems
6 ***/
8 #include <stdbool.h>
10 #include "list.h"
12 int umount_all(bool *changed, bool last_try);
14 /* This is exported just for testing */
15 typedef struct MountPoint {
16 char *path;
17 char *remount_options;
18 unsigned long remount_flags;
19 bool try_remount_ro;
20 bool umount_lazily;
21 bool leaf;
22 LIST_FIELDS(struct MountPoint, mount_point);
23 } MountPoint;
25 int mount_points_list_get(const char *mountinfo, MountPoint **head);
26 void mount_points_list_free(MountPoint **head);