]> git.ipfire.org Git - thirdparty/util-linux.git/commit
swapon: add -o <list> for compatibility with mount
authorKarel Zak <kzak@redhat.com>
Mon, 20 Oct 2014 08:59:08 +0000 (10:59 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 20 Oct 2014 08:59:08 +0000 (10:59 +0200)
commite07fdac476cb1c52962ec82a1b12c6afc111bd08
treec1c52beeaa8f193221a3c3a3907f60394d703efe
parentba986e815c36d733724ce5fa9914a2c9ac4f7432
swapon: add -o <list> for compatibility with mount

The new option allows to specify swap options by fstab compatible
string. The concept is the same as for mount(8).

   swapon -o pri=1,discard=pages,nofail /dev/sda2

The advantage is that tools (like systmed) that parses fstab can call
swapon without translation from fstab options to swapon(8) command
line options.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/swapon.8
sys-utils/swapon.c