]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/shutdown/umount.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
5 Copyright © 2010 ProFUSION embedded systems
10 int umount_all(bool *changed
, int umount_log_level
);
12 int swapoff_all(bool *changed
);
14 int loopback_detach_all(bool *changed
, int umount_log_level
);
16 int dm_detach_all(bool *changed
, int umount_log_level
);
18 int md_detach_all(bool *changed
, int umount_log_level
);
20 /* This is exported just for testing */
21 typedef struct MountPoint
{
23 char *remount_options
;
24 unsigned long remount_flags
;
27 LIST_FIELDS(struct MountPoint
, mount_point
);
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
);