diff options
author | Michael Marineau | 2015-05-03 00:52:48 +0200 |
---|---|---|
committer | Karel Zak | 2015-05-05 12:39:36 +0200 |
commit | 4a4a0927c6b761f7b8b29b00491b22b3553720e8 (patch) | |
tree | 91dc14b26e6650b10dbb94af2535354724b3736c /libfdisk/src/libfdisk.sym | |
parent | libfdisk: (gpt) fix check for beginning of protective partition (diff) | |
download | kernel-qcow2-util-linux-4a4a0927c6b761f7b8b29b00491b22b3553720e8.tar.gz kernel-qcow2-util-linux-4a4a0927c6b761f7b8b29b00491b22b3553720e8.tar.xz kernel-qcow2-util-linux-4a4a0927c6b761f7b8b29b00491b22b3553720e8.zip |
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>
Diffstat (limited to 'libfdisk/src/libfdisk.sym')
-rw-r--r-- | libfdisk/src/libfdisk.sym | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libfdisk/src/libfdisk.sym b/libfdisk/src/libfdisk.sym index 456a52d83..1e6394465 100644 --- a/libfdisk/src/libfdisk.sym +++ b/libfdisk/src/libfdisk.sym @@ -247,4 +247,6 @@ FDISK_2.27 { fdisk_enable_bootbits_protection; fdisk_has_protected_bootbits; fdisk_table_get_partition_by_partno; + fdisk_gpt_get_partition_attrs; + fdisk_gpt_set_partition_attrs; } FDISK_2.26; |