summaryrefslogtreecommitdiff
path: root/mount.h
blob: 2f90226051ceff7627fe03676a22617679cbe4ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*-*- Mode: C; c-basic-offset: 8 -*-*/

#ifndef foomounthfoo
#define foomounthfoo

typedef struct Mount Mount;

#include "unit.h"

typedef enum MountState {
        MOUNT_DEAD,
        MOUNT_MOUNTING,
        MOUNT_MOUNTED,
        MOUNT_UNMOUNTING,
        MOUNT_MAINTAINANCE,
        _MOUNT_STATE_MAX
} MountState;

struct Mount {
        Meta meta;

        MountState state;

        char *what, *where;

        bool from_etc_fstab:1;
        bool from_proc_self_mountinfo:1;

        /* Used while looking for mount points that vanished or got
         * added from/to /proc/self/mountinfo */
        bool still_exists:1;
        bool just_created:1;
};

extern const UnitVTable mount_vtable;

void mount_fd_event(Manager *m, int events);

#endif