Karel Zak
dd00d1b27d
libfdisk: extend fdisk_info() functionality
...
- 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-16 16:47:09 +02:00
Karel Zak
09f0c3d923
fdisk: use fdisk_{info,warn} on more places
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16 16:47:09 +02:00
Karel Zak
80a1712f54
fdisk: add -L to colorize output
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16 16:47:09 +02:00
Karel Zak
a41309c227
fdisk: improve info output
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16 16:47:09 +02:00
Karel Zak
bb029cd3bf
fdisk: ask for partition in chars
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16 16:47:05 +02:00
Karel Zak
950edd1a71
fdisk: use libfdisk to ask for partition type
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16 16:47:01 +02:00
Karel Zak
a410f8df0f
fdisk: use new menu infrastructure to verify keys
...
- 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-16 16:46:56 +02:00
Karel Zak
d87c7ce2bf
fdisk: add asktype "string" and support UUID partition change
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16 16:46:54 +02:00
Karel Zak
0c870c1c73
libfdisk: add new 'ask' type TABLE
...
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-09-16 16:46:53 +02:00
Karel Zak
4fb18cde32
libfdisk: do not use va_list in the Ask API
...
# 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-05-09 13:06:02 +02:00
Yuri Chornoivan
ef75bc880e
Fix various typos
2013-04-26 12:50:03 +02:00
Karel Zak
38de0706e8
fdisk: use comma in the ask-partition-number dialog (again)
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-12 10:58:33 +01:00
Karel Zak
82d55456a9
fdisk: remove comma from ask number dialog
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11 13:00:58 +01:00
Karel Zak
ccf48af540
libfdisk: add Yes/No to Ask API
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11 13:00:56 +01:00
Karel Zak
7e1e36d865
fdisk: allow zero as default offset/size
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11 13:00:56 +01:00
Karel Zak
3e8f74dc60
fdisk: add callacks for info, warn and warnx Ask API
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11 13:00:55 +01:00
Karel Zak
4114da08d0
libfdisk: extend "ask" API, add support for offsets
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11 13:00:55 +01:00
Karel Zak
416c43a9a5
fdisk: add callback for ask-numbers API
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11 13:00:54 +01:00