summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* cfdisk: add create lebel UIKarel Zak2014-03-113-22/+114
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: consolidate menu move codeKarel Zak2014-03-111-24/+54
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: supports also vertical menusKarel Zak2014-03-111-16/+83
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: reorder abstract PT according to outputKarel Zak2014-03-111-5/+26
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/tt: keep track about output orderKarel Zak2014-03-112-2/+24
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/tt: add tt_line_get_userdata()Karel Zak2014-03-113-1/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add dump functions, make freespace code genericKarel Zak2014-03-114-61/+147
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (dos) consolidate partition end-offset codeKarel Zak2014-03-111-28/+33
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (dos) fix ext_index usageKarel Zak2014-03-112-11/+18
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: improve tree outputKarel Zak2014-03-111-10/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: remove label specific get_freespaceKarel Zak2014-03-115-77/+60Star
| | | | | | | - 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 deleteKarel Zak2014-03-111-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 codeKarel Zak2014-03-111-2/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: use tree-mode for extended, colorize freesapceKarel Zak2014-03-111-11/+52
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: improve freesapce detectionKarel Zak2014-03-115-24/+83
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: don't ask for pri/log if wanted start within extended partitionKarel Zak2014-03-111-3/+23
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: follow default end if possibleKarel Zak2014-03-111-6/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add table sort function, use it in get_freespaceKarel Zak2014-03-113-14/+71
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include/list: add void data to the sort cmp functionKarel Zak2014-03-111-9/+15
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: use real partnoKarel Zak2014-03-111-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: support <size>S, and long hint messagesKarel Zak2014-03-111-9/+34
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/strutils: support dec.points in parse_size()Karel Zak2014-03-111-2/+43
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/strutils: use proper return codes in parse_size()Karel Zak2014-03-111-9/+14
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: rewrite freespace codeKarel Zak2014-03-116-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 sizeKarel Zak2014-03-111-9/+308
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: use ASKTYPE_MENUKarel Zak2014-03-111-0/+48
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* linfdisk: align free spaceKarel Zak2014-03-111-6/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (gpt) initialize last_lba, cleanup pa->{start,size} usageKarel Zak2014-03-111-20/+69
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: initialize last_lbaKarel Zak2014-03-111-2/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add fdisk_partition_*_follow_default()Karel Zak2014-03-111-5/+48
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add ASKTYPE_MENU and context last_lbaKarel Zak2014-03-114-28/+197
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/mbalign: add mbs_safe_width() from tt.cKarel Zak2014-03-113-138/+145
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: fix 'p'rint error on empty PTKarel Zak2014-03-112-3/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: improve info line and menu updatesKarel Zak2014-03-111-25/+101
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: improve info line, add Delete actionKarel Zak2014-03-111-12/+78
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: update menu according to the current partitionKarel Zak2014-03-111-5/+35
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add fdisk_table_get_partition()Karel Zak2014-03-112-0/+26
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: add menu action functionsKarel Zak2014-03-111-12/+65
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cfdisk: basic UI stuffKarel Zak2014-03-112-2699/+531Star
|
* include/xalloc: add xvasprintf()Karel Zak2014-03-111-0/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add fdisk_table_get_nents()Karel Zak2014-03-113-2/+22
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: tiny clean up in fdisk_table_to_string()Karel Zak2014-03-111-8/+1Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: clean up cylinder columnKarel Zak2014-03-117-12/+20
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: remove tt stuff from APIKarel Zak2014-03-117-46/+23Star
| | | | | | | | | | | 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 outputKarel Zak2014-03-1112-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 stringKarel Zak2014-03-112-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.cKarel Zak2014-03-112-95/+98
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add table containerKarel Zak2014-03-114-24/+193
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add reference counting to fdisk_partitionKarel Zak2014-03-115-9/+27
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add support to list free spaceKarel Zak2014-03-115-26/+120
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>