summaryrefslogtreecommitdiffstats
path: root/fdisks
Commit message (Collapse)AuthorAgeFilesLines
* fdisk: correctly initialize pointer to sun labelKarel Zak2013-03-111-1/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: fix typoKarel Zak2013-03-111-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add FDISK_LABEL_FL_ADDPART_NOPARTNOKarel Zak2013-03-113-4/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: remove fdisk_label from API functions, add asserts, use size_tKarel Zak2013-03-117-205/+263
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (gpt) move code from fdisk to libfdiskKarel Zak2013-03-114-1820/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (dos) kill 'partitions' global variableKarel Zak2013-03-118-166/+218
| | | | | | ... and use size_t for partition numbers Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add part_get_status operationKarel Zak2013-03-114-2/+105
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (dos) move dos specific codeKarel Zak2013-03-112-6/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (dos) move 'toggle active' code to fdiskdoslabe.cKarel Zak2013-03-113-15/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (dos) move dos specific codeKarel Zak2013-03-113-20/+18Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: remove dead codeKarel Zak2013-03-111-6/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (dos) move dos_list_table_expert() to fdiskdoslabe.cKarel Zak2013-03-114-132/+134
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (dos) move 'move begin' code to fdiskdoslabe.cKarel Zak2013-03-113-50/+53
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (dos) move fix order code to fdiskdoslabe.cKarel Zak2013-03-114-138/+136Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (dos) move list table code to fdiskdoslabe.cKarel Zak2013-03-114-74/+92
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: use libfdisk label->changedKarel Zak2013-03-117-106/+100Star
| | | | | | | The patch is huge because it's necessary to add a pointer context to all read_<foo> functions. Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (sun) remove nasty sunlabel macroKarel Zak2013-03-113-59/+124
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (sun) remove global variable 'partitions'Karel Zak2013-03-111-32/+89
| | | | | | | | * use label counters * add assert() * use struct fdisk_label if possible Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (bsd) add partitions countersKarel Zak2013-03-111-4/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (aix) remove unuused variable 'partitions'Karel Zak2013-03-111-2/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (gpt) introduce driver independent partitions countersKarel Zak2013-03-112-20/+30
| | | | | | 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-157/+228
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: differentiate between get and read operationKarel Zak2013-03-111-9/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: move label identifier to label structKarel Zak2013-03-118-13/+20
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add fdisk_label to driver APIKarel Zak2013-03-117-68/+141
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: kill dos_compatible_flag global variableKarel Zak2013-03-113-20/+61
| | | | | | ... move the variable to label private struct. Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add fdisk_new_context(), reuse contextKarel Zak2013-03-112-38/+45
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: split label and label operationsKarel Zak2013-03-117-82/+277
| | | | | | | | | | | | | | | | | | | | | 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-111-7/+0Star
| | | | | | | | - 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-118/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add probing functionKarel Zak2013-03-112-90/+1Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add fdisk_reset_alignment()Karel Zak2013-03-112-34/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add topology and geometry functionsKarel Zak2013-03-113-275/+9Star
| | | | | | | | | | - 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-112-42/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: remove duplicate code (already in libfdisk)Karel Zak2013-03-111-27/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add generic label codeKarel Zak2013-03-112-107/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add alignment codeKarel Zak2013-03-114-104/+8Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add parttype codeKarel Zak2013-03-112-216/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add basic structsKarel Zak2013-03-111-105/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: use debug stuff from libfdiskKarel Zak2013-03-112-42/+8Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: add support for the Xtensa architectureKarel Zak2013-01-301-1/+1
| | | | | | Based on patch from Chris Zankel <chris@zankel.net>. Signed-off-by: Karel Zak <kzak@redhat.com>
* textual: use UTIL_LINUX_VERSION everywhereKarel Zak2013-01-251-2/+1Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add files to distributionSami Kerola2013-01-101-3/+4
| | | | | | | To fix 'make distcheck' compilation. The fdisks/Makemodule.am has one new entry 'dos_part_types.h', the rest is about sorting the list. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fdisk: (gpt) fix compiler warningsKarel Zak2012-12-201-12/+14
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: remove crappy bugs section from man pageKarel Zak2012-12-171-36/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (gpt) check if the "First sector" is unusedKarel Zak2012-12-041-0/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (gpt) align newly created partitionsKarel Zak2012-12-044-35/+61
| | | | | | | - default "First sector" has to be aligned - "Last sector" has to be aligned if specified by +<size><suffix> convention Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (gpt) fix {last,first}_usable_lba usageKarel Zak2012-12-041-7/+14
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: cleanup partition start/end usageKarel Zak2012-12-041-40/+48
| | | | | | | | - always use pointers to make the code more generic - always use "const" is possible - always use le64_to_cpu() to access numbers Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (gpt) check partitions alignmentKarel Zak2012-12-041-3/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>