commit: Fix use of error handling policy
commit1e8fb7f1ee1ba902ab06cb8d54eca006c3b45f42
authorKevin Wolf <kwolf@redhat.com>
Wed, 29 Jun 2016 15:38:57 +0000 (29 17:38 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 13 Jul 2016 11:32:27 +0000 (13 13:32 +0200)
treed91e85db48b8e9d779a0a5bf7c329f90fd49358c
parentf6166a06ffdb1cd5dd80adf2d82c35c3bda88239
commit: Fix use of error handling policy

Commit implemented the 'enospc' policy as 'ignore' if the error was not
ENOSPC. The QAPI documentation promises that it's treated as 'stop'.
Using the common block job error handling function fixes this and also
adds the missing QMP event.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block/commit.c