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:
parent
a0a23eff4b
commit
29e94d9531
@ -1,5 +1,6 @@
|
||||
Version 2.00.16 -
|
||||
=============================
|
||||
Don't return non-zero status if there aren't any volume groups.
|
||||
Add --alloc argument to tools.
|
||||
Rename allocation policies to contiguous, normal, anywhere, inherit.
|
||||
nextfree becomes normal; anywhere isn't implemented yet.
|
||||
|
@ -235,7 +235,7 @@ int process_each_lv(struct cmd_context *cmd, int argc, char **argv,
|
||||
log_verbose("Finding all logical volumes");
|
||||
if (!(vgnames = get_vgs(cmd, 0)) || list_empty(vgnames)) {
|
||||
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");
|
||||
if (!(vgnames = get_vgs(cmd, 0)) || list_empty(vgnames)) {
|
||||
log_error("No volume groups found");
|
||||
return ECMD_FAILED;
|
||||
return ret_max;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user