summaryrefslogtreecommitdiff
path: root/fdisks/fdisk-ask.c
AgeCommit message (Collapse)AuthorFilesLines
2013-10-23fdisk: fix printf stuffKarel Zak1-10/+10
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: extend fdisk_info() functionalityKarel Zak1-18/+35
- add per message flags - add fdisk_colon() for "foo bar: bla bla..." messages - add fdisk_sinfo() as smart version of fdisk_info() Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: use fdisk_{info,warn} on more placesKarel Zak1-3/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: add -L to colorize outputKarel Zak1-2/+26
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: improve info outputKarel Zak1-2/+16
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: ask for partition in charsKarel Zak1-13/+38
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: use libfdisk to ask for partition typeKarel Zak1-0/+27
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: use new menu infrastructure to verify keysKarel Zak1-2/+2
- use generic function to ask for key - verify the key against the current menu - call menu callback if defined Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: add asktype "string" and support UUID partition changeKarel Zak1-1/+13
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: add new 'ask' type TABLEKarel Zak1-0/+3
The new type could be used to print table-like output (for example list of the partitions). Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-09libfdisk: do not use va_list in the Ask APIKarel Zak1-10/+3
# fdisk /dev/sda Welcome to fdisk (util-linux 2.23). [...] Command (m for help): a Segmentation fault (core dumped) It's too fragile, the va_list implementation is architecture specific and it seems we need such thing in libfdisk at all. Reported-by: "Gabor Z. Papp" <gzp@papp.hu> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-26Fix various typosYuri Chornoivan1-1/+1
2013-03-12fdisk: use comma in the ask-partition-number dialog (again)Karel Zak1-2/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: remove comma from ask number dialogKarel Zak1-2/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11libfdisk: add Yes/No to Ask APIKarel Zak1-1/+10
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: allow zero as default offset/sizeKarel Zak1-6/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: add callacks for info, warn and warnx Ask APIKarel Zak1-0/+20
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11libfdisk: extend "ask" API, add support for offsetsKarel Zak1-16/+90
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: add callback for ask-numbers APIKarel Zak1-0/+111
Signed-off-by: Karel Zak <kzak@redhat.com>