diff options
author | Max Reitz <mreitz@redhat.com> | 2014-04-29 19:03:16 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2014-04-30 14:46:17 +0200 |
commit | 0549ea8b6d3ed4eba9a3bd0abfaed3af5de69873 (patch) | |
tree | c17db1fa56ca19c240ccd5cda7196d2f231460ca /target-openrisc | |
parent | e1b42f456fad6e797eaf795ed2e400c4e47d5eb4 (diff) |
block/vdi: Error out immediately in vdi_create()
Currently, if an error occurs during the part of vdi_create() which
actually writes the image, the function stores -errno, but continues
anyway.
Instead of trying to write data which (if it can be written at all) does
not make any sense without the operations before succeeding (e.g.,
writing the image header), just error out immediately.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'target-openrisc')
0 files changed, 0 insertions, 0 deletions