mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
o random little fixes
This commit is contained in:
parent
0fc8bab82a
commit
b892f8ecb6
@ -72,7 +72,7 @@ static int _tok_match(const char *str, const char *b, const char *e);
|
|||||||
/*
|
/*
|
||||||
* public interface
|
* public interface
|
||||||
*/
|
*/
|
||||||
struct config_file *create_config_file()
|
struct config_file *create_config_file(void)
|
||||||
{
|
{
|
||||||
struct cs *c;
|
struct cs *c;
|
||||||
struct pool *mem = pool_create(10 * 1024);
|
struct pool *mem = pool_create(10 * 1024);
|
||||||
|
@ -34,7 +34,7 @@ struct config_file {
|
|||||||
struct config_node *root;
|
struct config_node *root;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct config_file *create_config_file();
|
struct config_file *create_config_file(void);
|
||||||
void destroy_config_file(struct config_file *cf);
|
void destroy_config_file(struct config_file *cf);
|
||||||
|
|
||||||
int read_config(struct config_file *cf, const char *file);
|
int read_config(struct config_file *cf, const char *file);
|
||||||
|
@ -451,6 +451,11 @@ struct io_space *create_lvm1_format(const char *prefix, struct pool *mem,
|
|||||||
{
|
{
|
||||||
struct io_space *ios = dbg_malloc(sizeof(*ios));
|
struct io_space *ios = dbg_malloc(sizeof(*ios));
|
||||||
|
|
||||||
|
if (!ios) {
|
||||||
|
stack;
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
ios->get_vgs = _get_vgs;
|
ios->get_vgs = _get_vgs;
|
||||||
ios->get_pvs = _get_pvs;
|
ios->get_pvs = _get_pvs;
|
||||||
ios->pv_read = _pv_read;
|
ios->pv_read = _pv_read;
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
* This file is released under the GPL.
|
* This file is released under the GPL.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LVM_FORMAT1_H
|
#ifndef _LVM_FORMAT1_H
|
||||||
#define LVM_FORMAT1_H
|
#define _LVM_FORMAT1_H
|
||||||
|
|
||||||
#include "metadata.h"
|
#include "metadata.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user