From dd7ba604631ce57f194f56dfb71414e42d914a21 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 18 Apr 2014 13:26:08 +0200 Subject: libfdisk: add partitions reorder operation to label API Signed-off-by: Karel Zak --- libfdisk/src/fdiskP.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libfdisk/src/fdiskP.h') 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); -- cgit v1.2.3-55-g7522