tests: check for wipefs and helpers in fdisk tests

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: make it possible to use zero for size and start

The zero may be valid size and start of the partition. This patch
introduces:

	fdisk_partition_has_start()
	fdisk_partition_has_size()
	fdisk_partition_unset_size()
	fdisk_partition_unset_start()

to make it possible to work with zero. The feature is internally
implemented by magic constant ((type) -1) for undefined sizes and
offsets.

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: cleanup partno API

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: cleanup parttype API

 * add reference counting
 * add functions to set allocated types

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: add more comments

Signed-off-by: Karel Zak <kzak@redhat.com>
mount: don't ignore mtab for --bind -o remount

Reported-by: Phillip Susi <psusi@ubuntu.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
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>
Merge branch 'master' of https://github.com/jwpi/util-linux into hwclock
hwclock: cleanup man and usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
hwclock: add notes about default behavior changes

Signed-off-by: Karel Zak <kzak@redhat.com>
eject: move unreachable code to preprocessor #else block [smatch scan]

eject.c:466 toggle_tray() info: ignoring unreachable code.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
setterm: fix dubious one-bit signed bitfield [smatch scan]

term-utils/setterm.c:165:24: error: dubious one-bit signed bitfield

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
ul: fix filter() indentation

Content of the while() loop missed one indentation step.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sfdisk: fix compiler warnings about uninitialized variables

warning: 'str' may be used uninitialized in this function [-Wmaybe-uninitialized]

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