]> sourceware.org Git - lvm2.git/commitdiff
Don't trigger error if changing PV allocation to the state it already is.
authorAlasdair Kergon <agk@redhat.com>
Thu, 6 Nov 2003 17:04:35 +0000 (17:04 +0000)
committerAlasdair Kergon <agk@redhat.com>
Thu, 6 Nov 2003 17:04:35 +0000 (17:04 +0000)
tools/pvchange.c

index bd4b40ab36cb7600528d25c7231697a2c794bf01..f00ff563de4f3cdbd893a5d9a381f5e819ebf0bb 100644 (file)
@@ -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) {
This page took 0.028116 seconds and 5 git commands to generate.