mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
o changed dev-manager to a dev_filter
This commit is contained in:
parent
2f15b18f93
commit
74a54dc297
@ -10,6 +10,8 @@
|
|||||||
#ifndef _LVM_METADATA_H
|
#ifndef _LVM_METADATA_H
|
||||||
#define _LVM_METADATA_H
|
#define _LVM_METADATA_H
|
||||||
|
|
||||||
|
#include "dev-cache.h"
|
||||||
|
|
||||||
#define ID_LEN 32
|
#define ID_LEN 32
|
||||||
|
|
||||||
struct id {
|
struct id {
|
||||||
@ -76,22 +78,21 @@ struct io_space {
|
|||||||
struct str_list *(*get_vgs)(struct io_space *is);
|
struct str_list *(*get_vgs)(struct io_space *is);
|
||||||
struct dev_list *(*get_pvs)(struct io_space *is);
|
struct dev_list *(*get_pvs)(struct io_space *is);
|
||||||
|
|
||||||
struct physical_volume *read_pv(struct io_space *is,
|
struct physical_volume *pv_read(struct io_space *is,
|
||||||
struct device *dev);
|
struct device *dev);
|
||||||
int write_pv(struct io_space *is, struct physical_volume *pv);
|
int pv_write(struct io_space *is, struct physical_volume *pv);
|
||||||
|
|
||||||
struct volume_group *(*read_vg)(struct io_space *is,
|
struct volume_group *(*vg_read)(struct io_space *is,
|
||||||
const char *vg_name);
|
const char *vg_name);
|
||||||
int (*write_vg)(struct io_space *is, struct volume_group *vg);
|
int (*vg_write)(struct io_space *is, struct volume_group *vg);
|
||||||
void (*destructor)(struct io_space *is);
|
void (*destructor)(struct io_space *is);
|
||||||
|
|
||||||
struct device_manager *mgr;
|
struct dev_filter *filter;
|
||||||
void *private;
|
void *private;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct io_space *create_text_format(struct device_manager *mgr,
|
struct io_space *create_text_format(struct device_manager *mgr,
|
||||||
const char *text_file);
|
const char *text_file);
|
||||||
struct io_space *create_lvm1_format(struct device_manager *mgr);
|
|
||||||
|
|
||||||
inline struct volume_group *read_vg(struct io_space *f)
|
inline struct volume_group *read_vg(struct io_space *f)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user