Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | cfdisk: add create lebel UI | Karel Zak | 2014-03-11 | 3 | -22/+114 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | cfdisk: consolidate menu move code | Karel Zak | 2014-03-11 | 1 | -24/+54 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | cfdisk: supports also vertical menus | Karel Zak | 2014-03-11 | 1 | -16/+83 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | cfdisk: reorder abstract PT according to output | Karel Zak | 2014-03-11 | 1 | -5/+26 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | lib/tt: keep track about output order | Karel Zak | 2014-03-11 | 2 | -2/+24 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | lib/tt: add tt_line_get_userdata() | Karel Zak | 2014-03-11 | 3 | -1/+7 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | libfdisk: add dump functions, make freespace code generic | Karel Zak | 2014-03-11 | 4 | -61/+147 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | libfdisk: (dos) consolidate partition end-offset code | Karel Zak | 2014-03-11 | 1 | -28/+33 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | libfdisk: (dos) fix ext_index usage | Karel Zak | 2014-03-11 | 2 | -11/+18 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | cfdisk: improve tree output | Karel Zak | 2014-03-11 | 1 | -10/+10 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | libfdisk: remove label specific get_freespace | Karel Zak | 2014-03-11 | 5 | -77/+60![]() |
| | | | | | | | - it seems we can use improved nested<->container relationship rather than implement DOS specific function Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | libfdisk: (dos) fix log.partition delete | Karel Zak | 2014-03-11 | 1 | -16/+54 |
| | | | | | | | | | - deallocate sector buffer and deincrement part_max when delete last logical partition - zap obsolete EBR on begin of the extended partition when no logical partition defined Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | libfdisk: again improve freespace code | Karel Zak | 2014-03-11 | 1 | -2/+4 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | cfdisk: use tree-mode for extended, colorize freesapce | Karel Zak | 2014-03-11 | 1 | -11/+52 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | libfdisk: improve freesapce detection | Karel Zak | 2014-03-11 | 5 | -24/+83 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | libfdisk: don't ask for pri/log if wanted start within extended partition | Karel Zak | 2014-03-11 | 1 | -3/+23 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | cfdisk: follow default end if possible | Karel Zak | 2014-03-11 | 1 | -6/+9 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | libfdisk: add table sort function, use it in get_freespace | Karel Zak | 2014-03-11 | 3 | -14/+71 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | include/list: add void data to the sort cmp function | Karel Zak | 2014-03-11 | 1 | -9/+15 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | cfdisk: use real partno | Karel Zak | 2014-03-11 | 1 | -1/+1 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | cfdisk: support <size>S, and long hint messages | Karel Zak | 2014-03-11 | 1 | -9/+34 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | lib/strutils: support dec.points in parse_size() | Karel Zak | 2014-03-11 | 1 | -2/+43 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | lib/strutils: use proper return codes in parse_size() | Karel Zak | 2014-03-11 | 1 | -9/+14 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | libfdisk: rewrite freespace code | Karel Zak | 2014-03-11 | 6 | -68/+131 |
| | | | | | | | | * use separate function to get free space * allow to use label-specific get_freespace() function (this is necessary for MBR extended partitions mess) Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | cfdisk: add UI for linfdisk menus, ask for size | Karel Zak | 2014-03-11 | 1 | -9/+308 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | fdisk: use ASKTYPE_MENU | Karel Zak | 2014-03-11 | 1 | -0/+48 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | linfdisk: align free space | Karel Zak | 2014-03-11 | 1 | -6/+7 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | libfdisk: (gpt) initialize last_lba, cleanup pa->{start,size} usage | Karel Zak | 2014-03-11 | 1 | -20/+69 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | libfdisk: initialize last_lba | Karel Zak | 2014-03-11 | 1 | -2/+4 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | libfdisk: add fdisk_partition_*_follow_default() | Karel Zak | 2014-03-11 | 1 | -5/+48 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | libfdisk: add ASKTYPE_MENU and context last_lba | Karel Zak | 2014-03-11 | 4 | -28/+197 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | lib/mbalign: add mbs_safe_width() from tt.c | Karel Zak | 2014-03-11 | 3 | -138/+145 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | fdisk: fix 'p'rint error on empty PT | Karel Zak | 2014-03-11 | 2 | -3/+7 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | cfdisk: improve info line and menu updates | Karel Zak | 2014-03-11 | 1 | -25/+101 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | cfdisk: improve info line, add Delete action | Karel Zak | 2014-03-11 | 1 | -12/+78 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | cfdisk: update menu according to the current partition | Karel Zak | 2014-03-11 | 1 | -5/+35 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | libfdisk: add fdisk_table_get_partition() | Karel Zak | 2014-03-11 | 2 | -0/+26 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | cfdisk: add menu action functions | Karel Zak | 2014-03-11 | 1 | -12/+65 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | cfdisk: basic UI stuff | Karel Zak | 2014-03-11 | 2 | -2699/+531![]() |
| | |||||
* | include/xalloc: add xvasprintf() | Karel Zak | 2014-03-11 | 1 | -0/+8 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | libfdisk: add fdisk_table_get_nents() | Karel Zak | 2014-03-11 | 3 | -2/+22 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | libfdisk: tiny clean up in fdisk_table_to_string() | Karel Zak | 2014-03-11 | 1 | -8/+1![]() |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | libfdisk: clean up cylinder column | Karel Zak | 2014-03-11 | 7 | -12/+20 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | libfdisk: remove tt stuff from API | Karel Zak | 2014-03-11 | 7 | -46/+23![]() |
| | | | | | | | | | | | The include/tt.h has to be used only internally by the library (for example to convert fdisk_table to string). The fdisk_ask API should not be more used for complex tasks like print partition table. The application has to use fdisk_get_table() and fdisk_table_to_string() or something else. Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | libfdisk: use fdisk_table to generate output | Karel Zak | 2014-03-11 | 12 | -290/+401 |
| | | | | | | | | | | | * add generic fdisk_iter iterator * use fdisk_table to convert partition table to human readable output * clean up partition.c API (don't use reference to fdisk_context in fdisk_partition struct) * extern table.c API to use fdisk_iter iterator * remove old fdisk_list_partitions() Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | include/tt: add function to convert table to string | Karel Zak | 2014-03-11 | 2 | -0/+27 |
| | | | | | | | Note that open_memstream() is POSIX-1.2008, so it's possible than not all libc have already implemented this function. Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | libfdisk: move partition stuff to partition.c | Karel Zak | 2014-03-11 | 2 | -95/+98 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | libfdisk: add table container | Karel Zak | 2014-03-11 | 4 | -24/+193 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | libfdisk: add reference counting to fdisk_partition | Karel Zak | 2014-03-11 | 5 | -9/+27 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> | ||||
* | libfdisk: add support to list free space | Karel Zak | 2014-03-11 | 5 | -26/+120 |
| | | | | Signed-off-by: Karel Zak <kzak@redhat.com> |