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 /tests/expected/libfdisk | |
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 'tests/expected/libfdisk')
-rw-r--r-- | tests/expected/libfdisk/gpt-all-defaults | 21 | ||||
-rw-r--r-- | tests/expected/libfdisk/gpt-getattr | 2 | ||||
-rw-r--r-- | tests/expected/libfdisk/gpt-setattr | 2 |
3 files changed, 25 insertions, 0 deletions
diff --git a/tests/expected/libfdisk/gpt-all-defaults b/tests/expected/libfdisk/gpt-all-defaults new file mode 100644 index 000000000..883680744 --- /dev/null +++ b/tests/expected/libfdisk/gpt-all-defaults @@ -0,0 +1,21 @@ +Checking that no-one is using this disk right now ... OK + +Disk <removed>: 10 MiB, 10485760 bytes, 20480 sectors +Units: sectors of 1 * 512 = 512 bytes +Sector size (logical/physical): 512 bytes / 512 bytes +I/O size (minimum/optimal): 512 bytes / 512 bytes + +>>> Script header accepted. +>>> Script header accepted. +>>> Created a new <removed>. +Created a new <removed>. +<removed>2: Created a new <removed>. +<removed>3: +New situation: + +Device Start End Sectors Size Type +<removed>1 2048 12287 10240 5M Linux filesystem +<removed>2 12288 20446 8159 4M Linux filesystem + +The partition table has been altered. +Syncing disks. diff --git a/tests/expected/libfdisk/gpt-getattr b/tests/expected/libfdisk/gpt-getattr new file mode 100644 index 000000000..559a9ae72 --- /dev/null +++ b/tests/expected/libfdisk/gpt-getattr @@ -0,0 +1,2 @@ +1: 0x0001000000000001 +2: 0x4030000000000000 diff --git a/tests/expected/libfdisk/gpt-setattr b/tests/expected/libfdisk/gpt-setattr new file mode 100644 index 000000000..41af260f4 --- /dev/null +++ b/tests/expected/libfdisk/gpt-setattr @@ -0,0 +1,2 @@ +GUID:56,57,58,59,60,61,62,63 +LegacyBIOSBootable |