build-sys: fix double prefix with explict --libdir

* with configure --prefix=$HOME --libdir=$HOME usrlib_execdir
  ends up being ${exec_prefix}/${libbir}, which is double-prefixed

* fix: use explict given ${libbir} if is matches ${prefix}/*

Signed-off-by: Christoph Junghans <ottxor@gentoo.org>
docs: restore the mention of uhelper= and helper= in man page of umount

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
tests: kill output message change

Commit 09af3db48e01e5744f15fd8a2395e0fed36526ea changed how a missing
process is reported, which caused kill test to fail when the test suite
is ran as root.

Reference: https://travis-ci.org/karelzak/util-linux/jobs/31312170
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
zramctl: fix the wording of some message strings

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
docs: improve the wording and formatting of the zramctl man page

Especially fix the mistaken short option -h for --noheadings.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Merge branch 'master' of https://github.com/ottxor/util-linux
zramctl: fix typo

Reported-by: Steven Honeyman
Signed-off-by: Karel Zak <kzak@redhat.com>
zramctl: print all devices as a default action

This commit makes the command to display information about all zram
devices when the command is ran without any arguments.  Listing includes
the devices that are unused, which in this context means devices that
does not have --size specified, making them to be zero size.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
docs: add details to zramctl --size option documentation

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
zramctl: mark --reset mutually exclusive with --algorithm and --streams

Reset is setting algorithm to lz4 and streams to 1.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
zramctl: fail status printout when device does not exist

Earlier.

$ zramctl zram313 ; echo $?
0

Now.

$ zramctl zram313 ; echo $?
zramctl: zram313: no such device
1

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
zramctl: improve error message

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
zramctl: fix mount point printout

See sample belo how a device mount point was printed without and with
full <device> path.  This change adds the mount point markup to the short
device name printout.

$ zramctl zram3
NAME  ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
zram3 lz4             1M   4K   62B    4K       1

$ zramctl /dev/zram3
NAME       ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram3 lz4             1M   4K   62B    4K       1 [SWAP]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
zramctl: add bash completion script

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
zramctl: allow use of --algorithm and --streams alone

Earlier the --algorithm and --streams had to be combined with --size.  To
user requirement to combine with --size was indirectly told using
following message.

$ zramctl --stream 3 zram3
zramctl: options --algorithm, --find and --streams are mutually exclusive

Signed-off-by: Sami Kerola <kerolasa@iki.fi>