1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

Don't return non-zero status if there aren't any volume groups

This commit is contained in:
Alasdair Kergon 2004-05-20 16:18:58 +00:00
parent a0a23eff4b
commit 29e94d9531
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
Version 2.00.16 - Version 2.00.16 -
============================= =============================
Don't return non-zero status if there aren't any volume groups.
Add --alloc argument to tools. Add --alloc argument to tools.
Rename allocation policies to contiguous, normal, anywhere, inherit. Rename allocation policies to contiguous, normal, anywhere, inherit.
nextfree becomes normal; anywhere isn't implemented yet. nextfree becomes normal; anywhere isn't implemented yet.

View File

@ -235,7 +235,7 @@ int process_each_lv(struct cmd_context *cmd, int argc, char **argv,
log_verbose("Finding all logical volumes"); log_verbose("Finding all logical volumes");
if (!(vgnames = get_vgs(cmd, 0)) || list_empty(vgnames)) { if (!(vgnames = get_vgs(cmd, 0)) || list_empty(vgnames)) {
log_error("No volume groups found"); log_error("No volume groups found");
return ECMD_FAILED; return ret_max;
} }
} }
@ -424,7 +424,7 @@ int process_each_vg(struct cmd_context *cmd, int argc, char **argv,
log_verbose("Finding all volume groups"); log_verbose("Finding all volume groups");
if (!(vgnames = get_vgs(cmd, 0)) || list_empty(vgnames)) { if (!(vgnames = get_vgs(cmd, 0)) || list_empty(vgnames)) {
log_error("No volume groups found"); log_error("No volume groups found");
return ECMD_FAILED; return ret_max;
} }
} }