summaryrefslogtreecommitdiffstats
path: root/libfdisk/src/fdiskP.h
diff options
context:
space:
mode:
authorKarel Zak2012-12-11 18:30:03 +0100
committerKarel Zak2013-03-11 12:47:29 +0100
commit53b422ab169dc3be8e8eee4ccb5f8e67bff1a122 (patch)
tree09dbb4e6826cb2b8470fc9165fd5373f242885fd /libfdisk/src/fdiskP.h
parentlibfdisk: add fdisk_label to driver API (diff)
downloadkernel-qcow2-util-linux-53b422ab169dc3be8e8eee4ccb5f8e67bff1a122.tar.gz
kernel-qcow2-util-linux-53b422ab169dc3be8e8eee4ccb5f8e67bff1a122.tar.xz
kernel-qcow2-util-linux-53b422ab169dc3be8e8eee4ccb5f8e67bff1a122.zip
libfdisk: move label identifier to label struct
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/fdiskP.h')
-rw-r--r--libfdisk/src/fdiskP.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libfdisk/src/fdiskP.h b/libfdisk/src/fdiskP.h
index 00fc0cd54..104c67cb7 100644
--- a/libfdisk/src/fdiskP.h
+++ b/libfdisk/src/fdiskP.h
@@ -161,6 +161,7 @@ struct fdisk_label_operations {
struct fdisk_label {
/* persistent information */
const char *name;
+ enum fdisk_labeltype id; /* FDISK_DISKLABEL_* */
struct fdisk_parttype *parttypes;
size_t nparttypes; /* number of items in parttypes[] */
@@ -190,8 +191,6 @@ struct fdisk_context {
unsigned long sector_size; /* logical size */
unsigned long alignment_offset;
- enum fdisk_labeltype disklabel; /* current disklabel */
-
/* alignment */
unsigned long grain; /* alignment unit */
sector_t first_lba; /* recommended begin of the first partition */
@@ -207,7 +206,9 @@ struct fdisk_context {
* FIXME: use any enum rather than hardcoded number */
};
-
+/* context.c */
+extern int __fdisk_context_switch_label(struct fdisk_context *cxt,
+ struct fdisk_label *lb);
/* alignment.c */
extern sector_t fdisk_topology_get_first_lba(struct fdisk_context *cxt);