]> git.ipfire.org Git - people/ms/systemd.git/blame - mount.h
Merge remote branch 'kay/master'
[people/ms/systemd.git] / mount.h
CommitLineData
5cb5a6ff
LP
1/*-*- Mode: C; c-basic-offset: 8 -*-*/
2
3#ifndef foomounthfoo
4#define foomounthfoo
5
6typedef struct Mount Mount;
7
87f0e418 8#include "unit.h"
5cb5a6ff
LP
9
10typedef enum MountState {
11 MOUNT_DEAD,
12 MOUNT_MOUNTING,
13 MOUNT_MOUNTED,
14 MOUNT_UNMOUNTING,
15 MOUNT_MAINTAINANCE,
16 _MOUNT_STATE_MAX
17} MountState;
18
19struct Mount {
20 Meta meta;
21
22 MountState state;
b08d03ff
LP
23
24 char *what, *where;
f50e0a01
LP
25
26 bool from_etc_fstab:1;
27 bool from_proc_self_mountinfo:1;
ef734fd6
LP
28
29 /* Used while looking for mount points that vanished or got
30 * added from/to /proc/self/mountinfo */
31 bool still_exists:1;
32 bool just_created:1;
5cb5a6ff
LP
33};
34
87f0e418 35extern const UnitVTable mount_vtable;
5cb5a6ff 36
ef734fd6
LP
37void mount_fd_event(Manager *m, int events);
38
5cb5a6ff 39#endif