diff options
author | Karel Zak | 2013-11-29 21:55:53 +0100 |
---|---|---|
committer | Karel Zak | 2014-03-11 11:35:12 +0100 |
commit | 77d6a70ac40aaaf693eb9c71d01ebac41218e9b3 (patch) | |
tree | cd9ab7687078935a2d8b9a822e5b2c7f99516ab7 /libfdisk/src/fdiskP.h | |
parent | libfdisk: remove fdisk_get_partition_type() (diff) | |
download | kernel-qcow2-util-linux-77d6a70ac40aaaf693eb9c71d01ebac41218e9b3.tar.gz kernel-qcow2-util-linux-77d6a70ac40aaaf693eb9c71d01ebac41218e9b3.tar.xz kernel-qcow2-util-linux-77d6a70ac40aaaf693eb9c71d01ebac41218e9b3.zip |
libfdisk: use partition template
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/fdiskP.h')
-rw-r--r-- | libfdisk/src/fdiskP.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libfdisk/src/fdiskP.h b/libfdisk/src/fdiskP.h index a948fb571..fbeaf7ee2 100644 --- a/libfdisk/src/fdiskP.h +++ b/libfdisk/src/fdiskP.h @@ -153,11 +153,15 @@ struct fdisk_partition { char *start_addr; char *end_addr; - unsigned int nested : 1, /* logical partition */ + unsigned int partno_follow_default : 1, + start_follow_default : 1, + end_follow_default : 1, + nested : 1, /* logical partition */ used : 1, /* partition used */ endrel : 1; /* end is specified as relative number */ }; +#define FDISK_EMPTY_PARTNO ((size_t) -1) /* * Legacy CHS based geometry @@ -191,9 +195,8 @@ struct fdisk_label_operations { int (*set_id)(struct fdisk_context *cxt); /* new partition */ - int (*part_add)(struct fdisk_context *cxt, - size_t partnum, - struct fdisk_parttype *t); + int (*add_part)(struct fdisk_context *cxt, struct fdisk_partition *pa); + /* delete partition */ int (*part_delete)(struct fdisk_context *cxt, size_t partnum); @@ -269,7 +272,6 @@ struct fdisk_label { /* label driver flags */ enum { - FDISK_LABEL_FL_ADDPART_NOPARTNO = (1 << 1), FDISK_LABEL_FL_REQUIRE_GEOMETRY = (1 << 2), FDISK_LABEL_FL_INCHARS_PARTNO = (1 << 3) }; |