diff options
author | Joe Thornber <thornber@redhat.com> | 2002-01-15 10:24:48 +0000 |
---|---|---|
committer | Joe Thornber <thornber@redhat.com> | 2002-01-15 10:24:48 +0000 |
commit | 6036e5e0f72220645c6e7f1ce49baa3185a4302c (patch) | |
tree | 599e36d6d5c08c4d1f65435eae7202bbadcce4cd /lib/label/label.h | |
parent | c9dbb9efe7538286f9f93151cd477ff6ccd3af68 (diff) | |
download | lvm2-6036e5e0f72220645c6e7f1ce49baa3185a4302c.tar.gz lvm2-6036e5e0f72220645c6e7f1ce49baa3185a4302c.tar.xz lvm2-6036e5e0f72220645c6e7f1ce49baa3185a4302c.zip |
o split the uuid -> device map out from vgcache
o roll vgcache back to agk's implementation, we'll revisit this as part
of the cluster integration.
o change the extra_info field in a label to be a void *
Diffstat (limited to 'lib/label/label.h')
-rw-r--r-- | lib/label/label.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/label/label.h b/lib/label/label.h index cc245238..911fd0b3 100644 --- a/lib/label/label.h +++ b/lib/label/label.h @@ -16,8 +16,9 @@ struct label { char volume_type[32]; uint32_t version[3]; - size_t extra_len; - char *extra_info; + void *extra_info; + + struct labeller *labeller; }; struct labeller; @@ -51,6 +52,11 @@ struct label_ops { int (*verify)(struct labeller *l, struct device *dev); /* + * Destroy a previously read label. + */ + int (*destroy_label)(struct labeller *l, struct label *label); + + /* * Destructor. */ void (*destroy)(struct labeller *l); @@ -72,7 +78,7 @@ struct labeller *label_get_handler(const char *name); int label_remove(struct device *dev); int label_read(struct device *dev, struct label **result); int label_verify(struct device *dev); -void label_free(struct label *l); +void label_destroy(struct label *lab); /* * We'll support two label types: the 'pretend the |