summaryrefslogtreecommitdiff
path: root/fdisks/fdisk-menu.c
AgeCommit message (Collapse)AuthorFilesLines
2013-10-23fdisk: (gpt) add A,B,R,S expert commands to modify attributesKarel Zak1-1/+22
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-23fdisk: fix printf stuffKarel Zak1-2/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-23fdisk: add 'M' to access GPT nested protective/hybrid MBRKarel Zak1-17/+71
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-15fdisk: fix printf stuffKarel Zak1-2/+2
Unfortunately, fdisk_warn/info/.. function was not marked by printf __attribute__. We don't want to break gettext stuff now, so all compiler warnings have been fixed by casts. This is temporary solution, after release it will be necessary to fix all the strings. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-08textual: use consistent wording and punctuation in fdisk stuffBenno Schulenberg1-3/+3
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-10-08textual: change spelling of "disk label" to the more abundant "disklabel"Benno Schulenberg1-3/+3
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-09-17fdisk: fix 'r' in BSD menuKarel Zak1-5/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-17fdisk: remove unnecessary testKarel Zak1-25/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: remove unused code, coding style changesKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: rewrite dump first sector add dump disklabel commandKarel Zak1-2/+6
Expert command (m for help): D PMBR: offset = 0, size = 512 bytes. 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 * 000001c0 01 00 ee fe ff ff 01 00 00 00 ff 9f 0f 00 00 00 000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 * 000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa GPT Header: offset = 512, size = 512 bytes. 00000200 45 46 49 20 50 41 52 54 00 00 01 00 00 02 00 00 00000210 ae 36 81 28 00 00 00 00 01 00 00 00 00 00 00 00 00000220 ff 9f 0f 00 00 00 00 00 00 08 00 00 00 00 00 00 00000230 de 9f 0f 00 00 00 00 00 e0 9d d8 d5 d6 da 1a 44 00000240 98 57 e4 11 64 88 ce 3b 02 00 00 00 00 00 00 00 00000250 80 00 00 00 80 00 00 00 4b c7 c9 54 00 00 00 00 00000260 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 * GPT Entries: offset = 1024, size = 16384 bytes. 00000400 af 3d c6 0f 83 84 72 47 8e 79 3d 69 d8 47 7d e4 00000410 bc ae 48 5e 22 e5 ca 4c aa 98 14 6d c9 1d 72 f4 00000420 00 08 00 00 00 00 00 00 de 9f 0f 00 00 00 00 00 00000430 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 * Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: add -L to colorize outputKarel Zak1-2/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: move sync() and reread PT code from fdisk to libfdiskKarel Zak1-4/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: cleanup write table codeKarel Zak1-3/+9
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: move remaining actions to menu callbacksKarel Zak1-20/+75
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: move expect actions to menu callbackKarel Zak1-1/+41
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: cleanup SGI functions namesKarel Zak1-2/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: cleanup sgi menu callbackswqKarel Zak1-1/+53
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: move "create label" actions to menu callbackKarel Zak1-1/+31
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: add bsd driverKarel Zak1-2/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (bsd) rewrite list disklabel functionKarel Zak1-2/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (bsd) *OSF --> *BSDKarel Zak1-9/+9
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (bsd) implement regular bsd menu callbackKarel Zak1-3/+36
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: allow to exchange context pointer in menu callbacksKarel Zak1-17/+36
... to make it possible to switch to nested contexts (nested partition tables). Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: improve menus to make it more usable for BSD labelKarel Zak1-15/+21
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (bsd) cleanup driver initializationKarel Zak1-3/+7
- 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>
2013-09-16libfdisk: move mbr code to the libraryKarel Zak1-1/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (dos) cleanup public function namesKarel Zak1-2/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (dos) add dos menu callbackKarel Zak1-1/+66
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: add generic function to set disklabel IDKarel Zak1-1/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: move sun commands to sun menu callbackKarel Zak1-1/+54
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: add functions to geometry menuKarel Zak1-4/+39
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: move geometry commands to separate menuKarel Zak1-9/+19
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: support GPT partition name (label) changeKarel Zak1-2/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: add FDISK_DEBUG_FRONTENDKarel Zak1-7/+7
Currently we use private libfdisk in fdisk code, because the library API is not stable yet. Let's add debug flag to make it obvious in the debug output what is from libfdisk and what is from fdisk frontend. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: add GPT specific callback to menuKarel Zak1-1/+38
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: use new menu infrastructure to verify keysKarel Zak1-1/+52
- use generic function to ask for key - verify the key against the current menu - call menu callback if defined Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: use new menusKarel Zak1-3/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: add bsd, dos and sgi menusKarel Zak1-6/+56
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: detect menu entries collisions in debug modeKarel Zak1-0/+50
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: add sun menuKarel Zak1-2/+23
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: add new stuff to display menusKarel Zak1-0/+206
fdisk menus: - driven by menu and menu_entry structs - supports normal and expect mode - supports multiple independent menus - supports menu separators to make output more readable - allows to exclude by whole menu or menu entries by label type TODO: - define per label menus - per menu callback - sensitive only to keys defined in the currently printed menu Signed-off-by: Karel Zak <kzak@redhat.com>