diff options
author | Alasdair G Kergon <agk@redhat.com> | 2014-04-29 08:16:28 +0100 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2014-04-29 08:16:28 +0100 |
commit | b1f765d72aa56dab547a819447371b5315e78455 (patch) | |
tree | d451f716cbeb82103be4b38dc81f75bc507ec012 | |
parent | 26989e0cd7fab4768f46803cd25bfc7499ab488e (diff) | |
download | lvm2-b1f765d72aa56dab547a819447371b5315e78455.tar.gz |
pvremove: Catch CTRL-c during prompts.
-rw-r--r-- | WHATS_NEW | 1 | ||||
-rw-r--r-- | tools/pvremove.c | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -1,5 +1,6 @@ Version 2.02.107 - ================================== + Catch CTRL-c during pvremove prompts. Show correct availability status for snapshot origin in lvscan. Move segment thin pool/volume info into segment display 'lvdisplay --maps'. Display thin pool usage even when just thin volume is available. diff --git a/tools/pvremove.c b/tools/pvremove.c index 7048b972f..dfd600741 100644 --- a/tools/pvremove.c +++ b/tools/pvremove.c @@ -37,6 +37,8 @@ int pvremove(struct cmd_context *cmd, int argc, char **argv) stack; ret = ECMD_FAILED; } + if (sigint_caught()) + return_ECMD_FAILED; } return ret; |