Debian Codegraph @

src/shutdown/umount.h

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 /***
5 Copyright © 2010 ProFUSION embedded systems
6 ***/
7
8 #include "shared-forward.h"
9 #include "list.h"
10
11 int umount_all(bool *changed, bool last_try);
12
13 /* This is exported just for testing */
14 typedef struct MountPoint {
15 char *path;
16 char *remount_options;
17 unsigned long remount_flags;
18 bool try_remount_ro;
19 bool umount_lazily;
20 bool umount_move_if_busy;
21 LIST_FIELDS(struct MountPoint, mount_point);
22 } MountPoint;
23
24 int mount_points_list_get(FILE *f, MountPoint **head);
25 void mount_points_list_free(MountPoint **head);