summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-09-16fdisk: (bsd) cleanup label initializationKarel Zak1-30/+33
- remove unused variables - cleanup code - use ask API Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (bsd) use ask API for add partition dialogKarel Zak1-15/+50
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: copy ask callback from parental contextKarel Zak1-0/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (dos) fix offset dialog unitKarel Zak1-1/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (dos) remove remaining read_{int,char}() functionsKarel Zak1-7/+15
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (dos) use ask API for new partition dialogKarel Zak1-22/+58
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (dos) use ask API to change disk IDKarel Zak2-14/+20
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: remove ugly fatal() functionKarel Zak3-52/+32
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: remove Mac codeKarel Zak9-177/+0
The code has been used only to detect magic strings, nothing else. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16lsblk: use TT_FL_FREEDATA for tt tableKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16lscpu: use TT_FL_FREEDATA for tt tableKarel Zak1-2/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16prlimit: use TT_FL_FREEDATA for tt tableKarel Zak1-5/+5
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16swapon: use TT_FL_FREEDATA for tt tableKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16losetup: use TT_FL_FREEDATA for tt tableKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16partx: use TT_FL_FREEDATA for tt tableKarel Zak1-15/+7
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16lslocks: use TT_FL_FREEDATA for tt tableKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16findmnt: use TT_FL_FREEDATA for tt tableKarel Zak1-56/+51
For findmnt(8) output we mix static and libmount data together with in-findmnt allocated buffers. This patch cleanup all and use allocated buffers for all output. All is deallocated by tt_free_table(). Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16wdctl: use TT_FL_FREEDATA for tt tableKarel Zak1-2/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: (sgi) add driverKarel Zak6-30/+16
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sgi) remove dead codeKarel Zak3-42/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sgi) rewrite sgi_list_table()Karel Zak3-73/+119
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sgi) small coding style changesKarel Zak1-51/+28
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sgi) rdon't use read_chars() to ask yes/no questionKarel Zak1-7/+8
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sgi) cleanup boot file name codeKarel Zak2-38/+46
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sgi) use ask API for first/last dialogsKarel Zak1-38/+70
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sgi) fix checksum calculationKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sgi) use stuff ffrom pt-mbr.h and libfdiskKarel Zak1-11/+13
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libblkid: move MBR partition types to include/Karel Zak10-142/+127
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sgi) cleanup devparams flagsKarel Zak3-14/+16
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sgi) remove global freelistKarel Zak1-59/+71
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sgi) remove unnecessary codeKarel Zak1-26/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: (sun) remove duplicate codeKarel Zak1-5/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sgi) cleanup disk label struct usageKarel Zak2-12/+71
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sgi) cleanu sgi_info stuffKarel Zak4-61/+68
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sgi) remove magic stringsKarel Zak2-9/+8
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sgi) use cpu_to_beXX() and beXX_to_cpu()Karel Zak2-91/+72
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sgi) share disk label definition with libblkidKarel Zak3-128/+67
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libblkid: move SGI disklabel definitions to include/Karel Zak3-77/+94
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: make it possible to reset device propertiesKarel Zak6-81/+182
- remember user C/H/S and sector size - reset all device properties before create a new label (maybe the old setting has been affected by previous on-disk label) - always apply user setting after the reset - improve topology/geometry debug messages Note that for fdisk "user C/H/S and sector size" means on command line specified values. If you override the setting by c/h/s commands in expert menu then the setting is applied to the current disk label only. If you create a new disk label (e.g change MBR to GPT) then fdisk will use the original setting. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sgi) remove printf from codeKarel Zak1-56/+51
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: cleanup SGI verify disklabel functionKarel Zak1-63/+69
- the function is also used to detect gaps, so the verbose output has to be optional rather than permanently enabled Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: move sun commands to sun menu callbackKarel Zak3-28/+57
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: add functions to geometry menuKarel Zak2-36/+41
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: clean up sun geometry stuffKarel Zak4-34/+41
- move fdisk_sun_set_* functions to public API file - remove extra function to set ncyl -- this has to follow regular geo.cylinders - set alternative cylinders to zero (to be compatible with parted) - it seems that the previous code completely ignored relation between geo.cylinders, sunlabel->acyl and sunlabel->ncyl. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: support GPT partition name (label) changeKarel Zak3-9/+49
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: add FDISK_DEBUG_FRONTENDKarel Zak2-7/+8
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 Zak2-6/+38
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: use new menu infrastructure to verify keysKarel Zak4-15/+72
- 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 remove read_int() usage from fdisk.cKarel Zak1-16/+29
Signed-off-by: Karel Zak <kzak@redhat.com>