]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/core/umount.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
5 This file is part of systemd.
7 Copyright 2010 ProFUSION embedded systems
12 int umount_all(bool *changed
, int umount_log_level
);
14 int swapoff_all(bool *changed
);
16 int loopback_detach_all(bool *changed
, int umount_log_level
);
18 int dm_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
);