chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
service: add generic LSB provides handling for facilities
[elogind.git]
/
src
/
swap.h
diff --git
a/src/swap.h
b/src/swap.h
index 3c53536a830690061f98c64615de746ec7958c5f..9c249ca43cd93f5d5d3bdf4f984c8e66421c04e8 100644
(file)
--- a/
src/swap.h
+++ b/
src/swap.h
@@
-30,7
+30,7
@@
typedef struct Swap Swap;
typedef enum SwapState {
SWAP_DEAD,
SWAP_ACTIVE,
typedef enum SwapState {
SWAP_DEAD,
SWAP_ACTIVE,
- SWAP_
MAINTENANCE
,
+ SWAP_
FAILED
,
_SWAP_STATE_MAX,
_SWAP_STATE_INVALID = -1
} SwapState;
_SWAP_STATE_MAX,
_SWAP_STATE_INVALID = -1
} SwapState;
@@
-39,6
+39,7
@@
typedef struct SwapParameters {
char *what;
int priority;
bool noauto:1;
char *what;
int priority;
bool noauto:1;
+ bool nofail:1;
bool handle:1;
} SwapParameters;
bool handle:1;
} SwapParameters;
@@
-60,7
+61,7
@@
struct Swap {
extern const UnitVTable swap_vtable;
extern const UnitVTable swap_vtable;
-int swap_add_one(Manager *m, const char *what, int prio, bool no_auto, bool handle, bool from_proc_swap);
+int swap_add_one(Manager *m, const char *what, int prio, bool no_auto, bool
no_fail, bool
handle, bool from_proc_swap);
int swap_add_one_mount_link(Swap *s, Mount *m);
int swap_add_one_mount_link(Swap *s, Mount *m);