summaryrefslogtreecommitdiffstats
path: root/libfdisk/src/fdiskP.h
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/fdiskP.h
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/fdiskP.h')
-rw-r--r--libfdisk/src/fdiskP.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libfdisk/src/fdiskP.h b/libfdisk/src/fdiskP.h
index f966d0a68..f5b4bb8ed 100644
--- a/libfdisk/src/fdiskP.h
+++ b/libfdisk/src/fdiskP.h
@@ -182,10 +182,12 @@ struct fdisk_label_operations {
int (*verify)(struct fdisk_context *cxt);
/* create new disk label */
int (*create)(struct fdisk_context *cxt);
- /* list partition table */
+ /* list disklabel details */
int (*list)(struct fdisk_context *cxt);
/* returns offset and size of the 'n' part of the PT */
int (*locate)(struct fdisk_context *cxt, int n, const char **name, off_t *offset, size_t *size);
+ /* reorder partitions */
+ int (*reorder)(struct fdisk_context *cxt);
/* get disk label ID */
int (*get_id)(struct fdisk_context *cxt, char **id);