mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-25 21:57:45 +03:00
Return ECMD_FAILED for break in process_each_lv() and process_each_segment_in_lv()
This commit is contained in:
parent
154a7af5ee
commit
f80cbe8c33
@ -1,5 +1,6 @@
|
||||
Version 2.02.67 -
|
||||
===============================
|
||||
Return ECMD_FAILED for break in process_each_lv() and process_each_segment_in_lv().
|
||||
|
||||
Version 2.02.66 - 20th May 2010
|
||||
===============================
|
||||
|
@ -329,8 +329,9 @@ int process_each_lv(struct cmd_context *cmd, int argc, char **argv,
|
||||
unlock_and_release_vg(cmd, vg, vgname);
|
||||
if (ret > ret_max)
|
||||
ret_max = ret;
|
||||
/* FIXME: logic for breaking command is not consistent */
|
||||
if (sigint_caught())
|
||||
break;
|
||||
return ECMD_FAILED;
|
||||
}
|
||||
|
||||
return ret_max;
|
||||
@ -408,8 +409,9 @@ int process_each_segment_in_lv(struct cmd_context *cmd,
|
||||
ret = process_single_seg(cmd, seg, handle);
|
||||
if (ret > ret_max)
|
||||
ret_max = ret;
|
||||
/* FIXME: logic for breaking command is not consistent */
|
||||
if (sigint_caught())
|
||||
break;
|
||||
return ECMD_FAILED;
|
||||
}
|
||||
|
||||
return ret_max;
|
||||
|
Loading…
x
Reference in New Issue
Block a user