1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

o read_vg_t compiles

This commit is contained in:
Joe Thornber 2001-10-08 10:20:25 +00:00
parent e0304b58e3
commit 9761650d1f
4 changed files with 8 additions and 6 deletions

View File

@ -68,7 +68,7 @@ static unsigned _hash(const char *str)
return h;
}
struct hash_table *create_hash_table(unsigned size_hint)
struct hash_table *hash_create(unsigned size_hint)
{
size_t len;
unsigned new_size = 16u;
@ -100,7 +100,7 @@ struct hash_table *create_hash_table(unsigned size_hint)
return 0;
}
void destroy_hash_table(struct hash_table *t)
void hash_destroy(struct hash_table *t)
{
struct hash_node *c, *n;
int i;

View File

@ -9,6 +9,6 @@
#include "metadata.h"
struct io_space *create_lvm_v1_format(struct dev_filter *filter);
struct io_space *create_lvm1_format(struct dev_filter *filter);
#endif

View File

@ -30,7 +30,7 @@ struct chunk *_new_chunk(struct pool *p, size_t s);
/* by default things come out aligned for doubles */
#define DEFAULT_ALIGNMENT __alignof__ (double)
struct pool *create_pool(size_t chunk_hint)
struct pool *pool_create(size_t chunk_hint)
{
size_t new_size = 1024;
struct pool *p = dbg_malloc(sizeof(*p));
@ -49,7 +49,7 @@ struct pool *create_pool(size_t chunk_hint)
return p;
}
void destroy_pool(struct pool *p)
void pool_destroy(struct pool *p)
{
struct chunk *c, *pr;
dbg_free(p->spare_chunk);

View File

@ -6,6 +6,8 @@
#include "log.h"
#include "format1.h"
#include "dbg_malloc.h"
#include <stdio.h>
int main(int argc, char **argv)
@ -31,7 +33,7 @@ int main(int argc, char **argv)
exit(1);
}
ios = create_lvm_v1_format(NULL);
ios = create_lvm1_format(NULL);
vg = ios->vg_read(ios, argv[1]);
if (!vg) {