From 4af5827d0766ffc5af5d532271f9d4de5c40acbb Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Thu, 6 Nov 2003 17:04:35 +0000 Subject: [PATCH] Don't trigger error if changing PV allocation to the state it already is. --- tools/pvchange.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/pvchange.c b/tools/pvchange.c index bd4b40ab3..f00ff563d 100644 --- a/tools/pvchange.c +++ b/tools/pvchange.c @@ -97,7 +97,7 @@ static int _pvchange_single(struct cmd_context *cmd, struct physical_volume *pv, unlock_vg(cmd, pv->vg_name); else unlock_vg(cmd, ORPHAN); - return 0; + return 1; } if (!allocatable && !(pv->status & ALLOCATABLE_PV)) { @@ -107,7 +107,7 @@ static int _pvchange_single(struct cmd_context *cmd, struct physical_volume *pv, unlock_vg(cmd, pv->vg_name); else unlock_vg(cmd, ORPHAN); - return 0; + return 1; } if (allocatable) { -- 2.43.5