fdisk: always print warning for mis-aligned partitions

This patch restores the original fdisk behavior and always prints
information about misaligned partitions in 'p'print output.

Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid: (gpt) use real sector size to set PTMAGIC_OFFSET

So stupid and 5 years old bug...

Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk: update tests and clean up output

Signed-off-by: Karel Zak <kzak@redhat.com>
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

This change adds full path to the device name when status is requested
using a short device name, such as zram3.  See sample below how a device
mount point was printed earlier without and with full device path.

$ 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: improve option combination error messaging

Use of --algorithm or --streams is not expected to work without
reseting device, that happens when --size is specified, so ensure the
former options to be combined with the later.

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