io: add ability to associate an error with a task
commit1a447e4f0266d757687b38146795b95525d37d94
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 11 Aug 2016 13:40:44 +0000 (11 14:40 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 23 Jan 2017 15:32:18 +0000 (23 15:32 +0000)
tree1b6ab08b71abc4b393739b1d8198087da97e6413
parent52dd99e8a4df8ace2fdf8cd173a3338357776bff
io: add ability to associate an error with a task

Currently when a task fails, the error is never explicitly
associated with the task object, it is just passed along
through the completion callback. This adds the ability to
explicitly associate an error with the task.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
include/io/task.h
io/task.c