Skip to contentSkip to conversation

v2.24 fdisk and libfdisk

DISCUSSION Karel Zak 1 participant 1 message Sep 20, 2013 Util-Linux package

lore
Share & tools
lore

Karel Zak

author maintainer
#0 lore raw

I have merged libfdisk branch, changes:

    89 files changed, 8988 insertions(+), 7842 deletions(-)

* complete refactoring (no more "if (label == FOO)" everywhere)
* all label drivers (GPT, MBR, SUN, SGI and BSD) moved to libfdisk
* output uses lib/tt.c
* colors enabled by default
* more readable help output ('m' command)
* uses {M,G,T}iB (2^n) to print disk size
* device properties (I/O limits, geometry) in all 'p'rint outputs for all labels
* input (commands) should be backwardly compatible, but now it's case sensitive
* all code uses the same alignment/geometry code
* no more global variables

* allows to edit GPT partition name and UUID (expert mode)
* allows to edit GPT disk UUID (expert mode)

* libfdisk API is not stable yet (planned for v2.25)
* libfdisk.so is not distributed yet (planned for v2.25)

TODO:

* (???) support hybrid GPT modification - now supported read-only

* rewrite cfdisk to use the library

* add support for pre-configured values to bypass dialogs to make it usable in programs like sfdisk (now all is driven by dialogs only)

Karel

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com