diff options
author | Pino Toscano <toscano.pino@tiscali.it> | 2013-07-01 12:19:49 +0200 |
---|---|---|
committer | Pino Toscano <toscano.pino@tiscali.it> | 2013-07-01 12:19:49 +0200 |
commit | 99a035e0d824aaddea8b9064f7035f29f26ceaa0 (patch) | |
tree | 61e5a65966733a68ffde0c96bec711a4e613cf76 /libdiskfs/file-set-trans.c | |
parent | b82f12741cffd5498b5ea2e87cc4fb809969d2ee (diff) |
swapon: add -e/--ifexists option
Add the same command line option as in util-linux' swapon to not
consider an error if the device/file of a swap entry in fstab does not
exist (and not when activating a device specified as argument to
`swapon').
* sutils/swapon.c (ifexists): New variable.
(options): Add the 'e' option.
(parse_opt) <'e'>: Handle case.
(swaponoff): New argument skipnotexisting.
Return 0 if open_store fails with ENOENT and SKIPNOTEXISTING is on.
(main): Adapt swaponoff calls with 0 as parameter for command line
arguments, and IFEXISTS for swap entries from fstab.
Diffstat (limited to 'libdiskfs/file-set-trans.c')
0 files changed, 0 insertions, 0 deletions