]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: (gpt) add API for raw partition attributes
authorMichael Marineau <michael.marineau@coreos.com>
Sat, 2 May 2015 22:52:48 +0000 (15:52 -0700)
committerKarel Zak <kzak@redhat.com>
Tue, 5 May 2015 10:39:36 +0000 (12:39 +0200)
commit4a4a0927c6b761f7b8b29b00491b22b3553720e8
tree91dc14b26e6650b10dbb94af2535354724b3736c
parentc6bf5c094d90a8a67317ac0fe5b685e7c2b54199
libfdisk: (gpt) add API for raw partition attributes

The existing APIs can only toggle individual bits or get and set bits in
a complex text representation, making it impractical to use libfdisk for
manipulating the GPT partition attribute field in more complex ways such
as updating a value that is multiple bits wide. For example priority
based partition selection originally designed for ChromeOS includes two
integer values that are 4-bits wide.

http://www.chromium.org/chromium-os/chromiumos-design-docs/disk-format#TOC-Trusting-the-GPT

[kzak@redhat.com: - add new symbols to .sym file and docs
                  - remove unused variables from test program]

Signed-off-by: Michael Marineau <michael.marineau@coreos.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/docs/libfdisk-sections.txt
libfdisk/src/Makemodule.am
libfdisk/src/gpt.c
libfdisk/src/libfdisk.h.in
libfdisk/src/libfdisk.sym
tests/commands.sh
tests/expected/libfdisk/gpt-all-defaults [new file with mode: 0644]
tests/expected/libfdisk/gpt-getattr [new file with mode: 0644]
tests/expected/libfdisk/gpt-setattr [new file with mode: 0644]
tests/ts/libfdisk/gpt [new file with mode: 0755]