diff options
| author | Anthony Liguori <aliguori@us.ibm.com> | 2012-08-07 09:46:24 -0500 |
|---|---|---|
| committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-08-07 09:46:24 -0500 |
| commit | b262fce11a7409d71be84f68637cf4005e995822 (patch) | |
| tree | ab8fcdcd608718e38ce9772ccdc4f54cafa15b05 /qemu-io.c | |
| parent | 0b8db8fe15d17a529a5ea90614c11e9f031dfee8 (diff) | |
| parent | 20caf0f766b48fbbf718eb20aaddb7ffa356a21f (diff) | |
| download | focaccia-qemu-b262fce11a7409d71be84f68637cf4005e995822.tar.gz focaccia-qemu-b262fce11a7409d71be84f68637cf4005e995822.zip | |
Merge remote-tracking branch 'kwolf/for-anthony' into staging
* kwolf/for-anthony: qemu-img: use QemuOpts instead of QEMUOptionParameter in resize function qemu-iotests: Be more flexible with image creation options qemu-iotests: add 039 qcow2 lazy refcounts test qemu-io: add "abort" command to simulate program crash qcow2: implement lazy refcounts qemu-iotests: ignore qemu-img create lazy_refcounts output docs: add lazy refcounts bit to qcow2 specification qcow2: introduce dirty bit docs: add dirty bit to qcow2 specification qemu-iotests: add qed.py image manipulation utility qapi: generalize documentation of streaming commands ide scsi: Mess with geometry only for hard disk devices
Diffstat (limited to 'qemu-io.c')
| -rw-r--r-- | qemu-io.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/qemu-io.c b/qemu-io.c index 8f3b94b838..d0f4fb70c7 100644 --- a/qemu-io.c +++ b/qemu-io.c @@ -1652,6 +1652,17 @@ static const cmdinfo_t map_cmd = { .oneline = "prints the allocated areas of a file", }; +static int abort_f(int argc, char **argv) +{ + abort(); +} + +static const cmdinfo_t abort_cmd = { + .name = "abort", + .cfunc = abort_f, + .flags = CMD_NOFILE_OK, + .oneline = "simulate a program crash using abort(3)", +}; static int close_f(int argc, char **argv) { @@ -1905,6 +1916,7 @@ int main(int argc, char **argv) add_command(&discard_cmd); add_command(&alloc_cmd); add_command(&map_cmd); + add_command(&abort_cmd); add_args_command(init_args_command); add_check_command(init_check_command); |