summaryrefslogtreecommitdiffstats
path: root/fdisks/fdisk.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/fdisk.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/fdisk.c')
-rw-r--r--fdisks/fdisk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fdisks/fdisk.c b/fdisks/fdisk.c
index 2b0f91a82..997ee946c 100644
--- a/fdisks/fdisk.c
+++ b/fdisks/fdisk.c
@@ -1515,7 +1515,7 @@ expert_command_prompt(struct fdisk_context *cxt)
fix_partition_table_order();
break;
case 'g':
- create_sgilabel(cxt);
+ fdisk_create_disklabel(cxt, "sgi");
break;
case 'h':
user_heads = cxt->geom.heads = read_int(cxt, 1, cxt->geom.heads, 256, 0,
@@ -1742,7 +1742,7 @@ static void command_prompt(struct fdisk_context *cxt)
new_partition(cxt);
break;
case 'o':
- create_doslabel(cxt);
+ fdisk_create_disklabel(cxt, "dos");
break;
case 'p':
list_table(cxt, 0);
@@ -1750,7 +1750,7 @@ static void command_prompt(struct fdisk_context *cxt)
case 'q':
handle_quit(cxt);
case 's':
- create_sunlabel(cxt);
+ fdisk_create_disklabel(cxt, "sun");
break;
case 't':
change_sysid(cxt);
@@ -1915,7 +1915,7 @@ int main(int argc, char **argv)
if (!fdisk_dev_has_disklabel(cxt)) {
fprintf(stderr,
_("Device does not contain a recognized partition table\n"));
- fdisk_create_default_disklabel(cxt);
+ fdisk_create_disklabel(cxt, NULL);
}
command_prompt(cxt);