summaryrefslogtreecommitdiffstats
path: root/fdisks/fdiskdoslabel.c
diff options
context:
space:
mode:
authorDavidlohr Bueso2012-07-24 10:31:32 +0200
committerKarel Zak2012-07-24 10:31:32 +0200
commit639f1d56b968fd9b8770ef57210258d0126459b1 (patch)
tree307d91c5600ad9efe38a5e6a6ca7c766e334710f /fdisks/fdiskdoslabel.c
parentfdisk: API: add verify to label operations (diff)
downloadkernel-qcow2-util-linux-639f1d56b968fd9b8770ef57210258d0126459b1.tar.gz
kernel-qcow2-util-linux-639f1d56b968fd9b8770ef57210258d0126459b1.tar.xz
kernel-qcow2-util-linux-639f1d56b968fd9b8770ef57210258d0126459b1.zip
fdisk: API: add fdisk_label_change
[kzak@redhat.com: - rename function - remove fdisk_create_default_disklabel()] Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Diffstat (limited to 'fdisks/fdiskdoslabel.c')
-rw-r--r--fdisks/fdiskdoslabel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fdisks/fdiskdoslabel.c b/fdisks/fdiskdoslabel.c
index f81ada53a..06c868e71 100644
--- a/fdisks/fdiskdoslabel.c
+++ b/fdisks/fdiskdoslabel.c
@@ -285,7 +285,7 @@ void dos_print_mbr_id(struct fdisk_context *cxt)
printf(_("Disk identifier: 0x%08x\n"), mbr_get_id(cxt->firstsector));
}
-int create_doslabel(struct fdisk_context *cxt)
+static int dos_create_disklabel(struct fdisk_context *cxt)
{
unsigned int id;
@@ -822,6 +822,7 @@ const struct fdisk_label dos_label =
.probe = dos_probe_label,
.write = dos_write_disklabel,
.verify = dos_verify_disklabel,
+ .create = dos_create_disklabel,
.part_add = dos_add_partition,
.part_delete = dos_delete_partition,
};