1
0
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:
Zdenek Kabelac 2010-05-21 12:19:22 +00:00
parent 154a7af5ee
commit f80cbe8c33
2 changed files with 5 additions and 2 deletions

View File

@ -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
===============================

View File

@ -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;