diff options
author | Davidlohr Bueso | 2012-07-24 09:34:22 +0200 |
---|---|---|
committer | Karel Zak | 2012-07-24 09:34:22 +0200 |
commit | 0f639e54dfca37879545fc2e0efa8a509ca87b72 (patch) | |
tree | 85ee1ca1237c6ef790ce222db0ecf1a148ab9882 /fdisks/fdisk.h | |
parent | fdisk: API: add write to label operations (diff) | |
download | kernel-qcow2-util-linux-0f639e54dfca37879545fc2e0efa8a509ca87b72.tar.gz kernel-qcow2-util-linux-0f639e54dfca37879545fc2e0efa8a509ca87b72.tar.xz kernel-qcow2-util-linux-0f639e54dfca37879545fc2e0efa8a509ca87b72.zip |
fdisk: API: add new partition to label operations
Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Diffstat (limited to 'fdisks/fdisk.h')
-rw-r--r-- | fdisks/fdisk.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fdisks/fdisk.h b/fdisks/fdisk.h index 9ce2c25b0..975ac4d9a 100644 --- a/fdisks/fdisk.h +++ b/fdisks/fdisk.h @@ -139,6 +139,8 @@ struct fdisk_label { int (*probe)(struct fdisk_context *cxt); /* write in-memory changes to disk */ int (*write)(struct fdisk_context *cxt); + /* new partition */ + void (*part_add)(struct fdisk_context *cxt, int partnum, int parttype); /* delete partition */ void (*part_delete)(struct fdisk_context *cxt, int partnum); }; @@ -165,6 +167,7 @@ extern int fdisk_context_set_user_geometry(struct fdisk_context *cxt, unsigned int sectors); extern int fdisk_create_default_disklabel(struct fdisk_context *cxt); extern int fdisk_delete_partition(struct fdisk_context *cxt, int partnum); +extern int fdisk_add_partition(struct fdisk_context *cxt, int partnum, int parttype); extern int fdisk_write_disklabel(struct fdisk_context *cxt); /* prototypes for fdisk.c */ |