From 8fd6f4b6fbe2c2594887114b17808c941119ec6b Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Thu, 6 Nov 2003 17:06:06 +0000 Subject: [PATCH] Fix pvchange segfault with orphans. --- tools/pvchange.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pvchange.c b/tools/pvchange.c index f00ff563d..980f56603 100644 --- a/tools/pvchange.c +++ b/tools/pvchange.c @@ -131,7 +131,7 @@ static int _pvchange_single(struct cmd_context *cmd, struct physical_volume *pv, backup(vg); unlock_vg(cmd, pv->vg_name); } else { - if (!(pv_write(cmd, pv, &mdas, (int64_t) sector))) { + if (!(pv_write(cmd, pv, NULL, INT64_C(-1)))) { unlock_vg(cmd, ORPHAN); log_error("Failed to store physical volume \"%s\"", pv_name);