summaryrefslogtreecommitdiffstats
path: root/lib/label/lvm2_label.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/label/lvm2_label.h')
-rw-r--r--lib/label/lvm2_label.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/label/lvm2_label.h b/lib/label/lvm2_label.h
index 8c64a46e..b901a889 100644
--- a/lib/label/lvm2_label.h
+++ b/lib/label/lvm2_label.h
@@ -4,7 +4,7 @@
* This file is released under the GPL.
*/
-struct label
+struct lvm2_label
{
uint32_t magic;
uint32_t crc;
@@ -15,7 +15,7 @@ struct label
char disk_type[32];
uint32_t version[3];
- char *data; /* Should be freed with label_free() */
+ char *data;
};
#define VERSION_MATCH_EQUAL 1
@@ -23,11 +23,5 @@ struct label
#define VERSION_MATCH_LESSEQUAL 3
#define VERSION_MATCH_ANY 4
-extern int label_write(struct device *dev, struct label *label);
-extern int label_read(struct device *dev, struct label *label);
-extern void label_free(struct label *label);
-extern int is_labelled(struct device *dev);
-extern int labels_match(struct device *dev);
-
extern struct dev_filter *label_filter_create();
extern struct dev_filter *label_format_filter_create(char *disk_type, uint32_t version[3], int match_type);