diff options
author | John Snow | 2015-04-29 21:14:03 +0200 |
---|---|---|
committer | Luiz Capitulino | 2015-05-11 14:59:07 +0200 |
commit | 30bd6815efbaf5bae70885feac9a35e149e2f1ad (patch) | |
tree | 0bb09ee67fe09bc4d31d0032b89e1c9166e666de /scripts/shaderinclude.pl | |
parent | scripts: qmp-shell: Expand support for QMP expressions (diff) | |
download | qemu-30bd6815efbaf5bae70885feac9a35e149e2f1ad.tar.gz qemu-30bd6815efbaf5bae70885feac9a35e149e2f1ad.tar.xz qemu-30bd6815efbaf5bae70885feac9a35e149e2f1ad.zip |
scripts: qmp-shell: add transaction subshell
Add a special processing mode to craft transactions.
By entering "transaction(" the shell will enter a special
mode where each subsequent command will be saved as a transaction
instead of executed as an individual command.
The transaction can be submitted by entering ")" on a line by itself.
Examples:
Separate lines:
(QEMU) transaction(
TRANS> block-dirty-bitmap-add node=drive0 name=bitmap1
TRANS> block-dirty-bitmap-clear node=drive0 name=bitmap0
TRANS> )
With a transaction action included on the first line:
(QEMU) transaction( block-dirty-bitmap-add node=drive0 name=bitmap2
TRANS> block-dirty-bitmap-add node=drive0 name=bitmap3
TRANS> )
As a one-liner, with just one transaction action:
(QEMU) transaction( block-dirty-bitmap-add node=drive0 name=bitmap0 )
As a side-effect of this patch, blank lines are now parsed as no-ops,
regardless of which shell mode you are in.
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Tested-by: Kashyap Chamarthy <kchamart@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'scripts/shaderinclude.pl')
0 files changed, 0 insertions, 0 deletions