summaryrefslogtreecommitdiff
path: root/fdisks
AgeCommit message (Collapse)AuthorFilesLines
2013-03-12fdisk: improve MBR detectionKarel Zak1-0/+8
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-12fdisk: no more AIX "support"Karel Zak5-150/+1
The whole AIX support in fdisk has been limited to pretty poor AIX magic string detection and warning that the AIX is unsupported. It's too expensive to maintain such fdisk driver. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-12fdisk: use comma in the ask-partition-number dialog (again)Karel Zak1-2/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: (bsd) support non-nested version tooKarel Zak2-19/+6
note that btrydev() should be unnecessary, regular list_table() should be enough for all types. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: remove comma from ask number dialogKarel Zak1-2/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: use fdisk_ask_partnum() everywhereKarel Zak2-86/+29
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: (bds) use nested partition tableKarel Zak3-34/+35
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: (dos) use new dialog to ask for prim. partitionsKarel Zak1-27/+24
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11libfdisk: add disk_partition_is_used()Karel Zak1-15/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: (sun) cleanup header fileKarel Zak1-3/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11libfdisk: add fdisk_partition_toggle_flag()Karel Zak6-40/+105
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: (sun) use fdisk_ prefix for label specific public functionsKarel Zak3-18/+22
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: remove global unit variablesKarel Zak7-121/+120
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: (sun) use yes/no from libfdiskKarel Zak1-4/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11libfdisk: add Yes/No to Ask APIKarel Zak1-1/+10
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: (sun) use Ask API for new-partiton dialogKarel Zak1-17/+64
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: sort menuKarel Zak1-11/+11
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: allow zero as default offset/sizeKarel Zak1-6/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: (sun) use fdisk_{info,warnx}Karel Zak1-39/+49
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: add 'G' to create SGI label to the main menuKarel Zak1-1/+5
For unknown reason you have to go to the expert menu to create SGI label. It's inconsistent behavior as we have all "create label" operations in the main menu. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: (sun) remove dead codeKarel Zak1-1/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: (sun): use ask API, remove global variableKarel Zak1-21/+50
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: (sun) share disk label struct with libblkidKarel Zak2-156/+87
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11inlude/pt-sun: add flags and tagsKarel Zak1-1/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: (sun) use cpu_to_be* macros, remove other_endian global variableKarel Zak2-92/+68
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: add callacks for info, warn and warnx Ask APIKarel Zak1-0/+20
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11libfdisk: extend "ask" API, add support for offsetsKarel Zak1-16/+90
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: add callback for ask-numbers APIKarel Zak4-7/+119
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: correctly initialize pointer to sun labelKarel Zak1-1/+5
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: fix typoKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11libfdisk: add FDISK_LABEL_FL_ADDPART_NOPARTNOKarel Zak3-4/+7
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: remove fdisk_label from API functions, add asserts, use size_tKarel Zak7-205/+263
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11libfdisk: (gpt) move code from fdisk to libfdiskKarel Zak4-1820/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: (dos) kill 'partitions' global variableKarel Zak8-166/+218
... and use size_t for partition numbers Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11libfdisk: add part_get_status operationKarel Zak4-2/+105
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: (dos) move dos specific codeKarel Zak2-6/+7
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: (dos) move 'toggle active' code to fdiskdoslabe.cKarel Zak3-15/+16
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: (dos) move dos specific codeKarel Zak3-20/+18
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: remove dead codeKarel Zak1-6/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: (dos) move dos_list_table_expert() to fdiskdoslabe.cKarel Zak4-132/+134
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: (dos) move 'move begin' code to fdiskdoslabe.cKarel Zak3-50/+53
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: (dos) move fix order code to fdiskdoslabe.cKarel Zak4-138/+136
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: (dos) move list table code to fdiskdoslabe.cKarel Zak4-74/+92
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: use libfdisk label->changedKarel Zak7-106/+100
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>
2013-03-11fdisk: (sun) remove nasty sunlabel macroKarel Zak3-59/+124
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: (sun) remove global variable 'partitions'Karel Zak1-32/+89
* use label counters * add assert() * use struct fdisk_label if possible Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: (bsd) add partitions countersKarel Zak1-4/+16
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: (aix) remove unuused variable 'partitions'Karel Zak1-2/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11libfdisk: (gpt) introduce driver independent partitions countersKarel Zak2-20/+30
label->nparts_{max,cur} to later replace global variable partitions Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11fdisk: (gpt) remove global variables, cleanup header verificationKarel Zak1-157/+228
Signed-off-by: Karel Zak <kzak@redhat.com>