From: Lennart Poettering Date: Mon, 9 Aug 2010 20:44:52 +0000 (+0200) Subject: swap: properly enter maintenance mode on failure X-Git-Tag: v7~7 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76143638fdabee59dcd5db81fe46c900299da425;p=systemd swap: properly enter maintenance mode on failure --- diff --git a/src/swap.c b/src/swap.c index 6765a4ae..29006712 100644 --- a/src/swap.c +++ b/src/swap.c @@ -400,7 +400,7 @@ static void swap_dump(Unit *u, FILE *f, const char *prefix) { static void swap_enter_dead(Swap *s, bool success) { assert(s); - swap_set_state(s, success ? SWAP_MAINTENANCE : SWAP_DEAD); + swap_set_state(s, success ? SWAP_DEAD : SWAP_MAINTENANCE); } static int swap_start(Unit *u) {