mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-30 17:18:21 +03:00
reporter: correcting failure return value
This function do use ECMD_ return values, so use ECMD_FAILED as initial value - used for internal error paths
This commit is contained in:
parent
f404d8ccb7
commit
9dad6f202c
@ -549,7 +549,7 @@ static int _report_all_in_vg(struct cmd_context *cmd, struct processing_handle *
|
||||
struct volume_group *vg, report_type_t type,
|
||||
int do_lv_info, int do_lv_seg_status)
|
||||
{
|
||||
int r = 0;
|
||||
int r = ECMD_FAILED;
|
||||
|
||||
switch (type) {
|
||||
case VGS:
|
||||
@ -591,7 +591,7 @@ static int _report_all_in_lv(struct cmd_context *cmd, struct processing_handle *
|
||||
struct logical_volume *lv, report_type_t type,
|
||||
int do_lv_info, int do_lv_seg_status)
|
||||
{
|
||||
int r = 0;
|
||||
int r = ECMD_FAILED;
|
||||
|
||||
switch (type) {
|
||||
case LVS:
|
||||
@ -616,7 +616,7 @@ static int _report_all_in_pv(struct cmd_context *cmd, struct processing_handle *
|
||||
struct physical_volume *pv, report_type_t type,
|
||||
int do_lv_info, int do_lv_seg_status)
|
||||
{
|
||||
int r = 0;
|
||||
int r = ECMD_FAILED;
|
||||
|
||||
switch (type) {
|
||||
case PVS:
|
||||
|
Loading…
Reference in New Issue
Block a user