X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fswap.h;h=9c249ca43cd93f5d5d3bdf4f984c8e66421c04e8;hp=154d418d59505b9b49c52b6298a99e8d83ffcc16;hb=32159d3a94c6ef00555546e1caef2eacad62310a;hpb=7fab9d01b5940a67ca070754361afb9dfaa520f2 diff --git a/src/swap.h b/src/swap.h index 154d418d5..9c249ca43 100644 --- a/src/swap.h +++ b/src/swap.h @@ -1,4 +1,4 @@ -/*-*- Mode: C; c-basic-offset: 8 -*-*/ +/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ #ifndef fooswaphfoo #define fooswaphfoo @@ -30,7 +30,7 @@ typedef struct Swap Swap; typedef enum SwapState { SWAP_DEAD, SWAP_ACTIVE, - SWAP_MAINTENANCE, + SWAP_FAILED, _SWAP_STATE_MAX, _SWAP_STATE_INVALID = -1 } SwapState; @@ -39,6 +39,7 @@ typedef struct SwapParameters { char *what; int priority; bool noauto:1; + bool nofail:1; bool handle:1; } SwapParameters; @@ -60,7 +61,7 @@ struct Swap { 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);