summaryrefslogtreecommitdiffstats
path: root/libfdisk/src/dos.c
diff options
context:
space:
mode:
authorKarel Zak2014-04-18 13:26:08 +0200
committerKarel Zak2014-04-18 13:26:08 +0200
commitdd7ba604631ce57f194f56dfb71414e42d914a21 (patch)
tree180cd564eb416092521b48da0c06c24e2a6e8de4 /libfdisk/src/dos.c
parentnsenter: add + to getopt_long() (diff)
downloadkernel-qcow2-util-linux-dd7ba604631ce57f194f56dfb71414e42d914a21.tar.gz
kernel-qcow2-util-linux-dd7ba604631ce57f194f56dfb71414e42d914a21.tar.xz
kernel-qcow2-util-linux-dd7ba604631ce57f194f56dfb71414e42d914a21.zip
libfdisk: add partitions reorder operation to label API
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/dos.c')
-rw-r--r--libfdisk/src/dos.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libfdisk/src/dos.c b/libfdisk/src/dos.c
index b68765bb1..645410cbd 100644
--- a/libfdisk/src/dos.c
+++ b/libfdisk/src/dos.c
@@ -1803,7 +1803,7 @@ again:
DBG(LABEL, print_chain_of_logicals(cxt));
}
-int fdisk_dos_fix_order(struct fdisk_context *cxt)
+static int dos_reorder(struct fdisk_context *cxt)
{
struct pte *pei, *pek;
size_t i,k;
@@ -1990,6 +1990,7 @@ static const struct fdisk_label_operations dos_operations =
.create = dos_create_disklabel,
.locate = dos_locate_disklabel,
.list = dos_list_disklabel,
+ .reorder = dos_reorder,
.get_id = dos_get_disklabel_id,
.set_id = dos_set_disklabel_id,