fdisk: API: add delete partition to label operations

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Davidlohr Bueso 2012-07-23 18:15:57 +02:00 committed by Karel Zak
parent ed21ffd347
commit 61c4cb8530
12 changed files with 107 additions and 97 deletions

View file

@ -638,10 +638,9 @@ sgi_set_volhdr(struct fdisk_context *cxt)
}
}
void
sgi_delete_partition(struct fdisk_context *cxt, int i)
static void sgi_delete_partition(struct fdisk_context *cxt, int partnum)
{
sgi_set_partition(cxt, i, 0, 0, 0);
sgi_set_partition(cxt, partnum, 0, 0, 0);
}
void
@ -886,4 +885,5 @@ const struct fdisk_label sgi_label =
{
.name = "sgi",
.probe = sgi_probe_label,
.part_delete = sgi_delete_partition,
};