Stop VM on ENOSPC error. (Gleb Natapov)
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 21 Jan 2009 18:59:04 +0000 (18:59 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 21 Jan 2009 18:59:04 +0000 (18:59 +0000)
commit428c570512c1d9298b52dc9fc1a541b542a5c117
tree2c250b7c913648e5d1cb7cfbece271cbb2c9ea89
parent7da03b1d2622a66b033544e16d82d16d8a49568c
Stop VM on ENOSPC error. (Gleb Natapov)

This version of the patch adds new option "werror" to -drive flag.
Possible values are:

report    - report errors to a guest as IO errors
ignore    - continue as if nothing happened
stop      - stop VM on any error and retry last command on resume
enospc    - stop vm on ENOSPC error and retry last command on resume
            all other errors are reported to a guest.

Default is "report" to maintain current behaviour.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6388 c046a42c-6fe2-441c-8c8c-71466251a162
hw/ide.c
sysemu.h
vl.c