From 11d9c9f2a5d06d9d3b8e52dd526d59cd0f08e8a8 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Tue, 9 Oct 2001 17:44:58 +0000 Subject: [PATCH] o stub pv_write to stop tools crashing --- lib/format1/format1.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/format1/format1.c b/lib/format1/format1.c index c252ec918..ad3ef41d5 100644 --- a/lib/format1/format1.c +++ b/lib/format1/format1.c @@ -323,6 +323,13 @@ static struct list_head *_get_vgs(struct io_space *is) 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) { 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_pvs = _get_pvs; ios->pv_read = _pv_read; - ios->pv_write = NULL; + ios->pv_write = _pv_write; ios->vg_read = _vg_read; ios->vg_write = _vg_write; ios->destroy = _destroy;