summaryrefslogtreecommitdiffstats
path: root/libfdisk
Commit message (Collapse)AuthorAgeFilesLines
* libfdisk: fix gpt status, don't use xcalloc() in libraryKarel Zak2013-03-111-13/+29
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add stuff for unit testsKarel Zak2013-03-113-1/+87
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (gpt) fix compiler warnings [-Wformat]Karel Zak2013-03-111-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add FDISK_LABEL_FL_ADDPART_NOPARTNOKarel Zak2013-03-111-0/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: remove fdisk_label from API functions, add asserts, use size_tKarel Zak2013-03-115-108/+150
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (gpt) move code from fdisk to libfdiskKarel Zak2013-03-113-1/+1825
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add part_get_status operationKarel Zak2013-03-113-0/+30
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: cleanup fdisk_get_partition_type() returnsKarel Zak2013-03-111-1/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add label->changed flagKarel Zak2013-03-113-0/+19
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (gpt) introduce driver independent partitions countersKarel Zak2013-03-111-4/+5
| | | | | | label->nparts_{max,cur} to later replace global variable partitions Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (gpt) remove global variables, cleanup header verificationKarel Zak2013-03-111-1/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: move label identifier to label structKarel Zak2013-03-114-8/+27
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add fdisk_label to driver APIKarel Zak2013-03-114-26/+26
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: improve label deinitializationKarel Zak2013-03-113-13/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: kill dos_compatible_flag global variableKarel Zak2013-03-112-0/+11
| | | | | | ... move the variable to label private struct. Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add fdisk_new_context(), reuse contextKarel Zak2013-03-116-31/+83
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: split label and label operationsKarel Zak2013-03-115-90/+147
| | | | | | | | | | | | | | | | | | | | | Changes: - fdisk_label is a private label driver struct - generic header of the fdisk_label points to fdisk_label_operations - the private fdisk_label stuff is always allocated for all drivers during fdisk_context initialization - context->labels[] contains pointers to all supported labels (drivers) - context->label is a pointer to the currently used label This change allows to: - store label specific global settings (e.g. dos compatible mode, display units, ...) independently on the current label - add label specific function to the API Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: cleanup the rest of fdisks/utils.c stuffKarel Zak2013-03-113-46/+53
| | | | | | | | - remove obsolete code - move fdisk_{set,get}_partition_type() to label.c (this is label driver operation) Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add context functionsKarel Zak2013-03-113-0/+84
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add probing functionKarel Zak2013-03-112-0/+94
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add fdisk_reset_alignment()Karel Zak2013-03-112-3/+34
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add topology and geometry functionsKarel Zak2013-03-112-0/+259
| | | | | | | | | | - rename __discovery_* to fdisk_discovery_* - rename fdisk_context_force_sector_size() to fdisk_override_sector_size() - rename fdisk_context_set_user_geometry() to fdisk_override_geometry() - remove non-default sector size warning Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add firstsector utilsKarel Zak2013-03-113-0/+48
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add generic label codeKarel Zak2013-03-114-16/+132
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add alignment codeKarel Zak2013-03-113-0/+120
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add parttype codeKarel Zak2013-03-113-1/+230
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add basic structsKarel Zak2013-03-112-0/+106
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add basic library filesKarel Zak2013-03-115-0/+189
Signed-off-by: Karel Zak <kzak@redhat.com>