summaryrefslogtreecommitdiffstats
path: root/libfdisk
Commit message (Collapse)AuthorAgeFilesLines
...
* libfdisk: (gpt) follow explicit size, fiz size+1 bufKarel Zak2014-10-091-2/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: follow explicitly specified partition sizeKarel Zak2014-10-091-2/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add functions to play nasty games with first/last LBAKarel Zak2014-10-092-0/+61
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: allow to specify partition size by explicit number of sectorsKarel Zak2014-10-093-1/+23
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: use skip_blank() in scriptsKarel Zak2014-10-081-3/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (dos) don't inform about logical partitionKarel Zak2014-10-081-2/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: consolidate script parser codeKarel Zak2014-10-081-82/+62Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: fix script parserKarel Zak2014-10-071-6/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (dos) fix booable flag usageKarel Zak2014-10-071-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: propagate assign-device operation to parentKarel Zak2014-10-072-33/+112
| | | | | | | Let's make it possible to use fdisk_assign_device() for nested contexts. Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: fix sun and sgi to be usable from sfdiskKarel Zak2014-10-072-10/+18
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add fdisk_label_get_field_by_name() and const for labelsKarel Zak2014-10-073-28/+59
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (gpt) remove 'Cylinders'Karel Zak2014-10-071-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (gpt) parse attr bitsKarel Zak2014-10-073-0/+93
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (dos) use script label-idKarel Zak2014-10-071-3/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: more update to the man pageKarel Zak2014-10-071-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: add --appendKarel Zak2014-10-072-1/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: be sensitive to PT limitsKarel Zak2014-10-072-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: remove old label drives' API for parttypesKarel Zak2014-10-073-55/+62
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (sgi) add set_part() APIKarel Zak2014-10-071-32/+48
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (bsd) add set_part() APIKarel Zak2014-10-071-23/+64
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: use new set_part API in fdisk_set_partition_type()Karel Zak2014-10-073-84/+9Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (gpt) check string_to_guid()Karel Zak2014-10-071-1/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* linfdisk: cleanup fsync usageKarel Zak2014-10-071-4/+5
| | | | | | | * always use fsync() if the device open read-write * use sync() on demand Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: make dump format usable on stdinKarel Zak2014-10-071-22/+22
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (gpt) use generic API to change UUID and nameKarel Zak2014-10-072-88/+15Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (gpt) implement fdisk_set_partition() backendKarel Zak2014-10-071-33/+84
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (dos) implement fdisk_set_partition() backendKarel Zak2014-10-071-5/+48
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add fdisk_set_partition()Karel Zak2014-10-073-0/+33
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: cleanup internal drivers' APIKarel Zak2014-10-078-45/+45
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add fdisk_copy_parttype()Karel Zak2014-10-073-19/+45
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: make yes/no dialogs more robustKarel Zak2014-10-071-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: improve UIKarel Zak2014-10-075-4/+23
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: cleanup script size= codeKarel Zak2014-10-071-12/+22
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: return partno when add new partitionKarel Zak2014-10-0710-68/+112
| | | | | | | * 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-074-22/+88
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (dos) more carefully check for primary partitionsKarel Zak2014-10-071-6/+45
| | | | | | | | | * check if there is space for primary partitions, if no and extended exists then create logical partitions * create extended if @pa->type is extended partition Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add fdisk_partition_is_bootable()Karel Zak2014-10-073-0/+18
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: improve --list outputKarel Zak2014-10-071-0/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: move --list functionality to separated fileKarel Zak2014-10-071-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: fix add_logical() assertKarel Zak2014-10-071-1/+0Star
| | | | | | | | The zero index is absolutely valid for extended partition (it means extended partition could be the first partition on the device). Reported-by: Christoph Hoopmann <christophhoopmann@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* textual: fix couple typos in commentsSami Kerola2014-10-012-2/+2
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* textual: add a comma for clarity, plus some other tweaksBenno Schulenberg2014-10-011-4/+4
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* libfdisk: add support for sfdisk-like script formatKarel Zak2014-09-021-12/+204
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (gpt) follow label-id from scriptKarel Zak2014-09-012-3/+14
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add functions to apply partitiong scriptsKarel Zak2014-09-015-32/+233
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (gpt) don't align last possible LBAKarel Zak2014-09-012-12/+25
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: rename fdisk_dump_ to fdisk_script_Karel Zak2014-09-012-99/+99
| | | | 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-293-2/+64
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>