diff options
author | Alasdair Kergon <agk@redhat.com> | 2003-10-21 22:06:07 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2003-10-21 22:06:07 +0000 |
commit | cfb7bfc7d9610da7498b7f0df2035c13361007a8 (patch) | |
tree | 6a87739c8f0530a1bd1e1a5b4ee2cb1c8516e7e9 /tools/lvremove.c | |
parent | 0cf96f33ea3c7979f1d525d026b67dcfc15330c0 (diff) | |
download | lvm2-cfb7bfc7d9610da7498b7f0df2035c13361007a8.tar.gz |
More consistent error code usage.
Diffstat (limited to 'tools/lvremove.c')
-rw-r--r-- | tools/lvremove.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lvremove.c b/tools/lvremove.c index cc5dc72bd..102188417 100644 --- a/tools/lvremove.c +++ b/tools/lvremove.c @@ -59,7 +59,7 @@ static int lvremove_single(struct cmd_context *cmd, struct logical_volume *lv, lv->name) == 'n') { log_print("Logical volume \"%s\" not removed", lv->name); - return 0; + return ECMD_FAILED; } } } @@ -97,7 +97,7 @@ static int lvremove_single(struct cmd_context *cmd, struct logical_volume *lv, return ECMD_FAILED; log_print("Logical volume \"%s\" successfully removed", lv->name); - return 0; + return ECMD_PROCESSED; } int lvremove(struct cmd_context *cmd, int argc, char **argv) |