summaryrefslogtreecommitdiffstats
path: root/disk-utils/fdisk.h
Commit message (Collapse)AuthorAgeFilesLines
* fdisk: fix readline interaction with signalsKarel Zak2017-08-241-2/+2
| | | | | | | | | | | | | The high-level readline API is crazy to use with signals. Fortunately the library provides low-level rl_callback_* API. In this case we can use poll() to wait for input and control all signals, etc. This patch also a little changes fdisk behavior on CTRL+C and CTRL+D. The signals does not kill fdisk, but forces fdisk to return to the main menu, if already in the main menu then exit. If the disk layout has been modified than ask "Do you really want to exit...". Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: use fdisk_reread_changes()Karel Zak2017-07-141-0/+2
| | | | | | Let's make fdisk usable for disks where some partitions are mounted. Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: improve --wipe functionalityKarel Zak2017-02-141-0/+2
| | | | | | | | | * always (except --wipe=never) wipe old partition tables * improve warn messages * improve man page Addresses: https://github.com/karelzak/util-linux/issues/410 Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: add --wipe-partitions=auto|never|defaultKarel Zak2016-05-041-0/+2
| | | | | | | | | | | | | The option allows to remove filesystes/RAIDs from newly created partitions before the partition table is updated (and partition device created). The default is "auto" in this case wipe is enabled in interactive mode only and user's confirmation (yes/no dialog) is required. Note that keep filesystem signature on partition is pretty valid use-case, so we don't erase anything by default. Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: fix fdisk_label_parse_parttype() for unknown typesKarel Zak2015-07-151-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: add the 'i'nfo commandJean-Loup 'clippix' Bogalho2015-05-111-0/+2
| | | | | | | Add the 'i'nfo command to fdisk that prints details about a specific partition. Details are everything the function 'fdisk_label_get_field' can return. Signed-off-by: Jean-Loup 'clippix' Bogalho <clippix@lse.epita.fr>
* fdisk: move --list functionality to separated fileKarel Zak2014-10-071-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: add independent debug stuffKarel Zak2014-08-151-3/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: ove fdisks to disk-utilsKarel Zak2014-03-111-0/+36
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Imported from util-linux-2.9i tarball.Karel Zak2006-12-071-72/+0Star
|
* Imported from util-linux-2.8 tarball.Karel Zak2006-12-071-4/+28
|
* Imported from util-linux-2.7.1 tarball.Karel Zak2006-12-071-0/+1
|
* Imported from util-linux-2.5 tarball.Karel Zak2006-12-071-0/+47