mountpoint: clarify that it works on files

fef4dfa174 removed the restriction that the argument must explicitly be
a directory, so let's fix up the documentation to reflect that.

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: remove debug dump function, cleanup API

The fdisk_dump_* prefix will be used for sfdisk-like functionality.
The patch also add FDISK_ prefix to fdisk_get_unit() options.

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: basic fdisk_dump_* functions

Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid: move string trim function to strutils.h

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: vary basic dump parsing functions

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: (dos) fix logical partitions add/delete code

If you delete logical partition and then create a new one than fdisk
(and cfdisk) might write EBR to the first sector on the device. That's
wrong of course; because you will lost MBR (primary partitions).

(Probably introduced by commit bcddbe96882b88d53b6bc0495e7322c0820a5122
 where code completely clears EBR stuff.)

Reported-by: Michał Górny <mgorny@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
cfdisk: wrong interpretation of yes in non-english language

Reported-by: tnut@nutyx.org
Signed-off-by: Karel Zak <kzak@redhat.com>
cfdisk: fix typo in the previous commit

Signed-off-by: Karel Zak <kzak@redhat.com>
include/optutils: fix typo

Reported-by: Rafael Ferreira <rafael.f.f1@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: (dos) fix typo

Reported-by: https://github.com/Mikachu
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: extend dump parsing function

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: use reference counting for context

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: add reference to context to dump

 * add fdisk_ref_context() function

 * context is necessary to parse label specific partition types

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: (gpt) set_{name,uuid} functions refactoring

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: (gpt) allow to specify uuid and name when create new partition

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: (dos) follow bootable setting when add partition

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: accept dump with quotes

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk: improve debug messages

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

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

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