summaryrefslogtreecommitdiffstats
path: root/tools/pvchange.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2003-11-06 17:06:06 +0000
committerAlasdair Kergon <agk@redhat.com>2003-11-06 17:06:06 +0000
commit8fd6f4b6fbe2c2594887114b17808c941119ec6b (patch)
tree85b144a8dcc9e3608573a7a1977257e2e0c0d045 /tools/pvchange.c
parent4af5827d0766ffc5af5d532271f9d4de5c40acbb (diff)
downloadlvm2-8fd6f4b6fbe2c2594887114b17808c941119ec6b.tar.gz
lvm2-8fd6f4b6fbe2c2594887114b17808c941119ec6b.tar.xz
lvm2-8fd6f4b6fbe2c2594887114b17808c941119ec6b.zip
Fix pvchange segfault with orphans.
Diffstat (limited to 'tools/pvchange.c')
-rw-r--r--tools/pvchange.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pvchange.c b/tools/pvchange.c
index f00ff563..980f5660 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);