diff options
author | Alasdair Kergon <agk@redhat.com> | 2006-05-11 17:58:58 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2006-05-11 17:58:58 +0000 |
commit | 898e6f8e419c6d0a86d1a0fd12073fed05f6319c (patch) | |
tree | e288c49555a84a19f5db7798bfffaed38fb5eaca /lib/format_text/text_label.c | |
parent | a54b98e5efc84265c1eb3e1b4165e8863b52f645 (diff) | |
download | lvm2-898e6f8e419c6d0a86d1a0fd12073fed05f6319c.tar.gz lvm2-898e6f8e419c6d0a86d1a0fd12073fed05f6319c.tar.xz lvm2-898e6f8e419c6d0a86d1a0fd12073fed05f6319c.zip |
Add mirror_library description to example.conf.
More compile-time cleanup.
Diffstat (limited to 'lib/format_text/text_label.c')
-rw-r--r-- | lib/format_text/text_label.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/format_text/text_label.c b/lib/format_text/text_label.c index 92f9e415..11758b15 100644 --- a/lib/format_text/text_label.c +++ b/lib/format_text/text_label.c @@ -23,7 +23,9 @@ #include <sys/stat.h> #include <fcntl.h> -static int _text_can_handle(struct labeller *l, char *buf, uint64_t sector) +static int _text_can_handle(struct labeller *l __attribute((unused)), + char *buf, + uint64_t sector __attribute((unused))) { struct label_header *lh = (struct label_header *) buf; @@ -86,7 +88,7 @@ static int _text_write(struct label *label, char *buf) return 1; } -int add_da(const struct format_type *fmt, struct dm_pool *mem, struct list *das, +int add_da(struct dm_pool *mem, struct list *das, uint64_t start, uint64_t size) { struct data_area_list *dal; @@ -179,7 +181,8 @@ void del_mdas(struct list *mdas) } } -static int _text_initialise_label(struct labeller *l, struct label *label) +static int _text_initialise_label(struct labeller *l __attribute((unused)), + struct label *label) { strncpy(label->type, LVM2_LABEL, sizeof(label->type)); @@ -220,7 +223,7 @@ static int _text_read(struct labeller *l, struct device *dev, char *buf, /* Data areas holding the PEs */ dlocn_xl = pvhdr->disk_areas_xl; while ((offset = xlate64(dlocn_xl->offset))) { - add_da(info->fmt, NULL, &info->das, offset, + add_da(NULL, &info->das, offset, xlate64(dlocn_xl->size)); dlocn_xl++; } @@ -248,7 +251,8 @@ static int _text_read(struct labeller *l, struct device *dev, char *buf, return 1; } -static void _text_destroy_label(struct labeller *l, struct label *label) +static void _text_destroy_label(struct labeller *l __attribute((unused)), + struct label *label) { struct lvmcache_info *info = (struct lvmcache_info *) label->info; |