summaryrefslogtreecommitdiffstats
path: root/libfdisk/src/libfdisk.h
diff options
context:
space:
mode:
authorKarel Zak2014-08-14 11:33:46 +0200
committerKarel Zak2014-08-14 11:33:46 +0200
commit773aae5c51e9573be5c66e14b4a33e4dde5f5f95 (patch)
treeabf03c2abe3fe0b363e940ca0eae8615f004bcb2 /libfdisk/src/libfdisk.h
parentlibfdisk: make it possible to get fields for all labes (diff)
downloadkernel-qcow2-util-linux-773aae5c51e9573be5c66e14b4a33e4dde5f5f95.tar.gz
kernel-qcow2-util-linux-773aae5c51e9573be5c66e14b4a33e4dde5f5f95.tar.xz
kernel-qcow2-util-linux-773aae5c51e9573be5c66e14b4a33e4dde5f5f95.zip
libfdisk: (gpt) allow to specify attr bit by API
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/libfdisk.h')
-rw-r--r--libfdisk/src/libfdisk.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/libfdisk/src/libfdisk.h b/libfdisk/src/libfdisk.h
index 3d9d58efd..8febbdf55 100644
--- a/libfdisk/src/libfdisk.h
+++ b/libfdisk/src/libfdisk.h
@@ -339,10 +339,32 @@ extern int fdisk_sgi_set_bootfile(struct fdisk_context *cxt);
extern int fdisk_sgi_create_info(struct fdisk_context *cxt);
/* gpt */
+
+/* GPT partition attributes */
enum {
+ /* System partition (disk partitioning utilities must preserve the
+ * partition as is) */
GPT_FLAG_REQUIRED = 1,
+
+ /* EFI firmware should ignore the content of the partition and not try
+ * to read from it */
GPT_FLAG_NOBLOCK,
+
+ /* Legacy BIOS bootable */
GPT_FLAG_LEGACYBOOT,
+
+ /* bites 48-63, Defined and used by the individual partition type.
+ *
+ * The flag GPT_FLAG_GUIDSPECIFIC forces libfdisk to ask (by ask API)
+ * for a bit number. If you want to toggle specific bit and avoid any
+ * dialog, then use the bit number (in range 48..63). For example:
+ *
+ * // start dialog to ask for bit number
+ * fdisk_partition_toggle_flag(cxt, n, GPT_FLAG_GUIDSPECIFIC);
+ *
+ * // toggle bit 60
+ * fdisk_partition_toggle_flag(cxt, n, 60);
+ */
GPT_FLAG_GUIDSPECIFIC
};