summaryrefslogtreecommitdiffstats
path: root/libfdisk/src/partition.c
Commit message (Collapse)AuthorAgeFilesLines
...
* libfdisk: add ref.counting to ask APIKarel Zak2014-11-211-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* agetty: fix typoKarel Zak2014-11-211-0/+12
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: cleanup parttype APIKarel Zak2014-10-151-5/+23
| | | | | | | * add reference counting * add functions to set allocated types Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: cleanup partno APIKarel Zak2014-10-151-44/+106
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: make it possible to use zero for size and startKarel Zak2014-10-151-101/+162
| | | | | | | | | | | | | | | | The zero may be valid size and start of the partition. This patch introduces: fdisk_partition_has_start() fdisk_partition_has_size() fdisk_partition_unset_size() fdisk_partition_unset_start() to make it possible to work with zero. The feature is internally implemented by magic constant ((type) -1) for undefined sizes and offsets. Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (dos) set partition start/size only when requestedKarel Zak2014-10-141-1/+3
|
* libfdisk: allow to specify partition size by explicit number of sectorsKarel Zak2014-10-091-1/+21
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (gpt) parse attr bitsKarel Zak2014-10-071-0/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add fdisk_set_partition()Karel Zak2014-10-071-0/+28
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: cleanup internal drivers' APIKarel Zak2014-10-071-25/+27
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add fdisk_copy_parttype()Karel Zak2014-10-071-2/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: return partno when add new partitionKarel Zak2014-10-071-13/+21
| | | | | | | * improve the way how sfdisk report results * the API change simplify applications Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: fix script partitions size parsingKarel Zak2014-10-071-0/+24
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add fdisk_partition_is_bootable()Karel Zak2014-10-071-0/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: fix fdisk_delete_all_partitions()Karel Zak2014-09-011-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add fdisk_apply_table() and fdisk_delete_all_partitions()Karel Zak2014-08-291-0/+28
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: basic fdisk_dump_* functionsKarel Zak2014-08-221-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: remove debug dump function, cleanup APIKarel Zak2014-08-221-24/+0Star
| | | | | | | The fdisk_dump_* prefix will be used for sfdisk-like functionality. The patch also add FDISK_ prefix to fdisk_get_unit() options. Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: more docsKarel Zak2014-08-141-1/+115
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: final parttype API cleanupKarel Zak2014-08-141-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: clean up API (context.c)Karel Zak2014-08-131-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: rename fdisk_column to fdisk_fieldKarel Zak2014-08-131-19/+19
| | | | | | .. to make the API and fdisk(s) code more readable. Signed-off-by: Karel Zak <kzak@redhat.com>
* textual: fix some typosSami Kerola2014-07-131-1/+1
| | | | | | | Found with misspell-check version 2.0d. Reference: https://github.com/lyda/misspell-check Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* libfdisk: clean up debug outputKarel Zak2014-03-211-7/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: use new debug functionsKarel Zak2014-03-211-7/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add dump functions, make freespace code genericKarel Zak2014-03-111-0/+24
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: remove label specific get_freespaceKarel Zak2014-03-111-8/+6Star
| | | | | | | - it seems we can use improved nested<->container relationship rather than implement DOS specific function Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: improve freesapce detectionKarel Zak2014-03-111-2/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add table sort function, use it in get_freespaceKarel Zak2014-03-111-0/+12
| | | | 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: use fdisk_table to generate outputKarel Zak2014-03-111-16/+29
| | | | | | | | | | | * 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>
* libfdisk: move partition stuff to partition.cKarel Zak2014-03-111-0/+98
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add reference counting to fdisk_partitionKarel Zak2014-03-111-6/+22
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add support to list free spaceKarel Zak2014-03-111-1/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: use partition templateKarel Zak2014-03-111-8/+47
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: remove fdisk_get_partition_type()Karel Zak2014-03-111-0/+1
| | | | | | | | | | | | | | Let's use more generic: fdisk_get_partition() fdisk_partition_get_parttype() rather than fdisk_get_partition_type(). The patch also improves fdisk_get_partition() semantic to allocate a new partition struct if the argument is NULL. Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add new list() columns, cleanupKarel Zak2014-03-111-0/+18
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: improve conversion to stringKarel Zak2014-03-111-7/+27
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add struct fdisk_partitionKarel Zak2014-03-111-0/+245
Signed-off-by: Karel Zak <kzak@redhat.com>