summaryrefslogtreecommitdiff
path: root/fdisks
AgeCommit message (Collapse)AuthorFilesLines
2013-09-16fdisk: (dos) rename struct partition to dos_partitionKarel Zak4-58/+60
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (dos) rename members in struct pteKarel Zak4-80/+82
... to make it more readable. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: move dos specific codeKarel Zak2-35/+38
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: remove dead codeKarel Zak1-6/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: cleanup warningsKarel Zak2-60/+25
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: add FDISK_LABEL_FL_REQUIRE_GEOMETRYKarel Zak2-4/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: move remaining ptes[] code to fdiskdoslabel.cKarel Zak2-5/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: cleanup usage()Karel Zak1-26/+30
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: move get_nr_sects() fdisk.hKarel Zak2-6/+5
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: remove old code to ask userKarel Zak2-223/+0
Old code has been broken by design: * use global variables * fixed buffer size * useless within libfdisk Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: use libfdisk to ask for partition typeKarel Zak4-30/+32
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (bsd) use libfdisk for partition number dialogKarel Zak1-16/+31
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (bsd) cleanup bootstrap install codeKarel Zak1-75/+85
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (bsd) use libfdisk to ask for label settingKarel Zak1-36/+57
Signed-off-by: Karel Zak <kzak@redhat.com>
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-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 Zak4-169/+0
The code has been used only to detect magic strings, nothing else. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: (sgi) add driverKarel Zak4-1211/+0
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) use stuff ffrom pt-mbr.h and libfdiskKarel Zak1-11/+13
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sgi) cleanup devparams flagsKarel Zak2-13/+4
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-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 Zak3-61/+66
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16fdisk: (sgi) remove magic stringsKarel Zak1-8/+6
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 Zak2-128/+63
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-16libfdisk: make it possible to reset device propertiesKarel Zak1-31/+19
- 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 Zak2-27/+56
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 Zak1-3/+0
- 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 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 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>