2010-01-23 07:52:57 +07:00
|
|
|
/*-*- Mode: C; c-basic-offset: 8 -*-*/
|
|
|
|
|
|
|
|
#ifndef foomounthfoo
|
|
|
|
#define foomounthfoo
|
|
|
|
|
|
|
|
typedef struct Mount Mount;
|
|
|
|
|
2010-01-27 03:39:06 +07:00
|
|
|
#include "unit.h"
|
2010-01-23 07:52:57 +07:00
|
|
|
|
|
|
|
typedef enum MountState {
|
|
|
|
MOUNT_DEAD,
|
|
|
|
MOUNT_MOUNTING,
|
|
|
|
MOUNT_MOUNTED,
|
|
|
|
MOUNT_UNMOUNTING,
|
|
|
|
MOUNT_MAINTAINANCE,
|
|
|
|
_MOUNT_STATE_MAX
|
|
|
|
} MountState;
|
|
|
|
|
|
|
|
struct Mount {
|
|
|
|
Meta meta;
|
|
|
|
|
|
|
|
MountState state;
|
2010-01-29 08:07:41 +07:00
|
|
|
|
|
|
|
char *what, *where;
|
2010-01-29 09:18:09 +07:00
|
|
|
|
|
|
|
bool from_etc_fstab:1;
|
|
|
|
bool from_proc_self_mountinfo:1;
|
2010-01-29 12:04:08 +07:00
|
|
|
|
|
|
|
/* Used while looking for mount points that vanished or got
|
|
|
|
* added from/to /proc/self/mountinfo */
|
|
|
|
bool still_exists:1;
|
|
|
|
bool just_created:1;
|
2010-01-23 07:52:57 +07:00
|
|
|
};
|
|
|
|
|
2010-01-27 03:39:06 +07:00
|
|
|
extern const UnitVTable mount_vtable;
|
2010-01-23 07:52:57 +07:00
|
|
|
|
2010-01-29 12:04:08 +07:00
|
|
|
void mount_fd_event(Manager *m, int events);
|
|
|
|
|
2010-01-23 07:52:57 +07:00
|
|
|
#endif
|