summaryrefslogtreecommitdiffstats
path: root/disk-utils/fdisk-list.h
Commit message (Collapse)AuthorAgeFilesLines
* sfdisk: support empty label use-caseKarel Zak2016-11-301-0/+1
| | | | | | | | | | | | | | | By default sfdisk creates partition table when a first partition is specified, otherwise the device is not modified. This force users to create at least one partition. This commit allows to create empty label without partitions if "label: <name>" header line is specified by script. The commit also modifies "New situation:" output to list label name and label identifier. Addresses: https://github.com/karelzak/util-linux/issues/374 Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: add --wipeKarel Zak2016-02-181-0/+28
| | | | | | | | | | | | | | This patch changes fdisk behavior and it wipes foreign signatures from the device to avoid collisions. The wipe functionality is automatically enabled in the interactive mode only (user is always warned about it), otherwise it's possible to control all by --wipe <auto|never|always>. The program does not change behavior when executed in scripts (echo <something> | fdisk), the option "--wipe=always" is required to enable in this case. Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: add 'F' command to list free unpartitioned spaceKarel Zak2015-07-281-0/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: add --output <list> for print command(s)Karel Zak2014-10-071-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: add --verifyKarel Zak2014-10-071-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: refactor /proc/partitions usageKarel Zak2014-10-071-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: improve --list outputKarel Zak2014-10-071-0/+10
Signed-off-by: Karel Zak <kzak@redhat.com>