1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
mistranslation: 0.882
semantic: 0.725
graphic: 0.641
device: 0.476
instruction: 0.435
socket: 0.400
other: 0.348
network: 0.320
assembly: 0.288
vnc: 0.284
boot: 0.192
KVM: 0.188
[feature request] qemu-img convert should respond to control-T like dd
Since qemu-img convert is a long-running operation, it would be nice if it reported progress in response to control-T (SIGINFO) to show progress information, much like dd, fsck, dump, cp, etc.
That should be simple enough to implement considering we have this behavior already on SIGUSR1. Unfortunately, I wouldn't be able to test it because Linux apparently doesn't implement SIGINFO...
Max
PS: By the way, thanks for the information. I didn't know about SIGINFO at all. Well, now I have mapped Ctrl-T to SIGUSR1 in my terminal emulator so I don't have to feel quite as inferior...
On 02/08/17 00:22, Max Reitz wrote:
> That should be simple enough to implement considering we have this
> behavior already on SIGUSR1. Unfortunately, I wouldn't be able to test
> it because Linux apparently doesn't implement SIGINFO...
>
> Max
>
>
> PS: By the way, thanks for the information. I didn't know about SIGINFO at all. Well, now I have mapped Ctrl-T to SIGUSR1 in my terminal emulator so I don't have to feel quite as inferior...
>
By that you may have lost the following Readline action:
transpose-chars (C-t)
Drag the character before point forward over the charac-
ter at point, moving point forward as well. If point is
at the end of the line, then this transposes the two
characters before point. Negative arguments have no
effect.
I'm sure you've been using that all the time... ;)
Laszlo
On Tue, Feb 07, 2017 at 11:22:26PM -0000, Max Reitz wrote:
> That should be simple enough to implement considering we have this
> behavior already on SIGUSR1. Unfortunately, I wouldn't be able to test
> it because Linux apparently doesn't implement SIGINFO...
>
> Max
>
>
> PS: By the way, thanks for the information. I didn't know about SIGINFO at all. Well, now I have mapped Ctrl-T to SIGUSR1 in my terminal emulator so I don't have to feel quite as inferior...
Christophe: In case you hadn't seen what Max is referring to on the
qemu-img man page:
-p display progress bar (compare, convert and rebase commands
only). If the -p option is not used for a command that supports
it, the progress is reported when the process receives a
"SIGUSR1" signal.
Does this do what you want?
Fix has been included in v2.10.0:
https://git.qemu.org/?p=qemu.git;a=commitdiff;h=262fbae692722d5c8b
|