sfdisk: basic main() and friends

Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk: move --list functionality to separated file

Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk: improve --list output

Signed-off-by: Karel Zak <kzak@redhat.com>
sfdisk: implement --list

Signed-off-by: Karel Zak <kzak@redhat.com>
sfdisk: --list just one device

Signed-off-by: Karel Zak <kzak@redhat.com>
sfdisk: add --dump functionality

Signed-off-by: Karel Zak <kzak@redhat.com>
sfdisk: update usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk: refactor /proc/partitions usage

Signed-off-by: Karel Zak <kzak@redhat.com>
sfdisk: add --show-size

Signed-off-by: Karel Zak <kzak@redhat.com>
sfdisk: add comments, remove unnecessary function

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: add fdisk_partition_is_bootable()

Signed-off-by: Karel Zak <kzak@redhat.com>
sfdisk: add --activate

Signed-off-by: Karel Zak <kzak@redhat.com>
sfdisk: cleanup comments and command_activate()

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: (dos) more carefully check for primary partitions

  * check if there is space for primary partitions, if no and extended
    exists then create logical partitions

  * create extended if @pa->type is extended partition

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: fix script partitions size parsing

Signed-off-by: Karel Zak <kzak@redhat.com>
sfdisk: implement command_fdisk()

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: return partno when add new partition

 * improve the way how sfdisk report results
 * the API change simplify applications

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: cleanup script size= code

Signed-off-by: Karel Zak <kzak@redhat.com>
sfdisk: improve UI

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: make yes/no dialogs more robust

Signed-off-by: Karel Zak <kzak@redhat.com>