1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

o stub pv_write to stop tools crashing

This commit is contained in:
Joe Thornber 2001-10-09 17:44:58 +00:00
parent 39b3b91755
commit 11d9c9f2a5

View File

@ -323,6 +323,13 @@ static struct list_head *_get_vgs(struct io_space *is)
return NULL; return NULL;
} }
static int _pv_write(struct io_space *is, struct physical_volume *pv)
{
log_err("format1:pv_write not implemented.");
return 1;
}
void _destroy(struct io_space *ios) void _destroy(struct io_space *ios)
{ {
dbg_free(ios->prefix); dbg_free(ios->prefix);
@ -337,7 +344,7 @@ struct io_space *create_lvm1_format(const char *prefix, struct pool *mem,
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;
ios->pv_write = NULL; ios->pv_write = _pv_write;
ios->vg_read = _vg_read; ios->vg_read = _vg_read;
ios->vg_write = _vg_write; ios->vg_write = _vg_write;
ios->destroy = _destroy; ios->destroy = _destroy;