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:
parent
e0304b58e3
commit
9761650d1f
@ -68,7 +68,7 @@ static unsigned _hash(const char *str)
|
|||||||
return h;
|
return h;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct hash_table *create_hash_table(unsigned size_hint)
|
struct hash_table *hash_create(unsigned size_hint)
|
||||||
{
|
{
|
||||||
size_t len;
|
size_t len;
|
||||||
unsigned new_size = 16u;
|
unsigned new_size = 16u;
|
||||||
@ -100,7 +100,7 @@ struct hash_table *create_hash_table(unsigned size_hint)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void destroy_hash_table(struct hash_table *t)
|
void hash_destroy(struct hash_table *t)
|
||||||
{
|
{
|
||||||
struct hash_node *c, *n;
|
struct hash_node *c, *n;
|
||||||
int i;
|
int i;
|
||||||
|
@ -9,6 +9,6 @@
|
|||||||
|
|
||||||
#include "metadata.h"
|
#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
|
#endif
|
||||||
|
@ -30,7 +30,7 @@ struct chunk *_new_chunk(struct pool *p, size_t s);
|
|||||||
/* by default things come out aligned for doubles */
|
/* by default things come out aligned for doubles */
|
||||||
#define DEFAULT_ALIGNMENT __alignof__ (double)
|
#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;
|
size_t new_size = 1024;
|
||||||
struct pool *p = dbg_malloc(sizeof(*p));
|
struct pool *p = dbg_malloc(sizeof(*p));
|
||||||
@ -49,7 +49,7 @@ struct pool *create_pool(size_t chunk_hint)
|
|||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
void destroy_pool(struct pool *p)
|
void pool_destroy(struct pool *p)
|
||||||
{
|
{
|
||||||
struct chunk *c, *pr;
|
struct chunk *c, *pr;
|
||||||
dbg_free(p->spare_chunk);
|
dbg_free(p->spare_chunk);
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "format1.h"
|
#include "format1.h"
|
||||||
|
#include "dbg_malloc.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
@ -31,7 +33,7 @@ int main(int argc, char **argv)
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
ios = create_lvm_v1_format(NULL);
|
ios = create_lvm1_format(NULL);
|
||||||
vg = ios->vg_read(ios, argv[1]);
|
vg = ios->vg_read(ios, argv[1]);
|
||||||
|
|
||||||
if (!vg) {
|
if (!vg) {
|
||||||
|
Loading…
Reference in New Issue
Block a user