summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fdisk: move expect actions to menu callbackKarel Zak2013-09-162-49/+45Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: consolidate code in fdisk.cKarel Zak2013-09-161-78/+36Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: cleanup SGI functions namesKarel Zak2013-09-163-18/+17Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: cleanup sgi menu callbackswqKarel Zak2013-09-162-32/+53
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: move "create label" actions to menu callbackKarel Zak2013-09-162-13/+31
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: remove common.hKarel Zak2013-09-166-9/+5Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: explicitly add COPYING fileKarel Zak2013-09-162-15/+8Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add bsd driverKarel Zak2013-09-167-112/+23Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (bsd) final code clean upKarel Zak2013-09-161-6/+5Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (bsd) remove xbsd_ prefixKarel Zak2013-09-161-37/+37
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (bsd) minor code clean upKarel Zak2013-09-162-38/+14Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (bsd) rewrite list disklabel functionKarel Zak2013-09-164-105/+147
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (bsd) coding style, remove unnecessary #ifdefKarel Zak2013-09-161-18/+14Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (bsd) fix add/link partitionKarel Zak2013-09-161-64/+22Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (bsd) remove dead codeKarel Zak2013-09-161-19/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (bsd) *OSF --> *BSDKarel Zak2013-09-164-15/+15
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (bsd) implement regular bsd menu callbackKarel Zak2013-09-164-71/+60Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (bsd) remove generic actions from bsd_command_prompt()Karel Zak2013-09-162-31/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: allow to exchange context pointer in menu callbacksKarel Zak2013-09-163-20/+47
| | | | | | | ... to make it possible to switch to nested contexts (nested partition tables). Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (bsd) remove printf() from the driver codeKarel Zak2013-09-161-14/+15
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (bsd) move bsdbuffer to fdisk_bsd_label structKarel Zak2013-09-161-19/+16Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (bsd) move global label variables to fdisk_bsd_label structKarel Zak2013-09-161-173/+143Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (bsd) write/read PT code cleanupKarel Zak2013-09-162-82/+72Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix kboff usage in BSD proberKarel Zak2013-09-161-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (bsd) add bsd_get_partition_status()Karel Zak2013-09-161-16/+40
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: ask for partition in charsKarel Zak2013-09-161-13/+38
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: allow to address partition by charsKarel Zak2013-09-163-14/+37
| | | | | | | For example BSD uses letters rather tahn numbers to address partition, the fist partition is 'a', last partition is 'p'. Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: improve menus to make it more usable for BSD labelKarel Zak2013-09-162-21/+26
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (bsd) cleanup driver initializationKarel Zak2013-09-162-87/+93
| | | | | | | | - assume DOS partition only for nested BSD (cxt->parent is set) - don't create BSD label in label probe function, require fdisk_create_disklabel() call Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: improve nested context initializationKarel Zak2013-09-162-9/+27
| | | | | | | - all label prober() function in fdisk_new_nested_context() - don't reset device properties for nested contexts Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (dos) cosmetic changesKarel Zak2013-09-161-12/+29
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (bsd) clean up header fileKarel Zak2013-09-162-49/+42Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (bsd) use macros from pt-mbr.hKarel Zak2013-09-161-17/+14Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (bsd) use pt-bsd.hKarel Zak2013-09-162-175/+25Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: move bsd definitions to pt-bsd.hKarel Zak2013-09-163-78/+161
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (bsd) clean up BSD_LABEL* macrosKarel Zak2013-09-161-15/+10Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: move mbr code to the libraryKarel Zak2013-09-1612-29/+18Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (dos) use libfdisk to ask for partition typeKarel Zak2013-09-161-3/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: cleanup warning messagesKarel Zak2013-09-163-32/+29Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: remove nowarn global variableKarel Zak2013-09-165-15/+37
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (dos) cleanup public function namesKarel Zak2013-09-163-17/+22
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (dos) remove unnecessary header file stuffKarel Zak2013-09-164-37/+29Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: cleanup header fileKarel Zak2013-09-162-27/+18Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (dos) add dos menu callbackKarel Zak2013-09-163-37/+71
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add generic function to set disklabel IDKarel Zak2013-09-168-10/+83
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: add generic function to get disklabel IDKarel Zak2013-09-166-18/+66
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (gpt) enlarge columns in list outputKarel Zak2013-09-161-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (dos) remove remaining printf() usageKarel Zak2013-09-161-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (dos) clean up list PT functionsKarel Zak2013-09-163-78/+177
| | | | | | | - use tt.c to list partitions - list extended partitions in expert mode Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: (dos) fix possible mem-leaksKarel Zak2013-09-162-7/+35
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>