swapon/swapoff: refine the -e (ifexists) option
authorMike Frysinger <vapier@gentoo.org>
Wed, 16 Dec 2015 17:59:08 +0000 (12:59 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 16 Dec 2015 17:59:08 +0000 (12:59 -0500)
commit5f11ec3f6a7e4fe6cc2626ccb7cda4ecb5c3938a
tree3f53c36f98619131834ded9d48f2019738eb62c3
parent77e2bde6a50f0f6b9b3c9983c86e661a9872b5f6
swapon/swapoff: refine the -e (ifexists) option

The -e option should only apply to swapon, and it should swallow all
errors/warnings when the device does not exist.  So delete the flag
from the swapoff patch and unify the check in the swapoff path.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
util-linux/swaponoff.c