From 533c9e097154395bf0644b81f7c3f14953d56176 Mon Sep 17 00:00:00 2001 From: marcel Date: Sun, 27 Oct 2002 03:23:05 +0000 Subject: o Add functionality to add a GPT partition, o Use DCE compliant UUID functions and provide local implementations if they don't exist, o Move dumping of the map to show.c and print the partition type, o Some cleanups and rearrangements. The default GPT partition type is UFS. When no starting block or size are specified, the tool will create a partition in the first free space it find (or that fits, depending on the size). --- sbin/gpt/map.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sbin/gpt/map.h') diff --git a/sbin/gpt/map.h b/sbin/gpt/map.h index ac726e1..4bdc94a 100644 --- a/sbin/gpt/map.h +++ b/sbin/gpt/map.h @@ -46,14 +46,16 @@ typedef struct map { void *map_data; } map_t; +extern int lbawidth; + map_t *map_add(off_t, off_t, int, void*); +map_t *map_alloc(off_t, off_t); map_t *map_find(int); map_t *map_first(void); map_t *map_last(void); -off_t map_unused(off_t, off_t); +off_t map_free(off_t, off_t); -void map_dump(void); void map_init(off_t); #endif /* _MAP_H_ */ -- cgit v1.1