diff options
author | Kevin Wolf <kwolf@redhat.com> | 2010-05-21 17:59:36 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-05-28 13:29:11 +0200 |
commit | 1c46efaa0a175e468772405385ca26a1e35dd94c (patch) | |
tree | e4238b6824fd4e1b712f76b44f41601b527b5de0 /linux-user/linuxload.c | |
parent | c63782cbe8bdc2c401ea710cef427de0214c5900 (diff) |
qcow2: Allow qcow2_get_cluster_offset to return errors
qcow2_get_cluster_offset() looks up a given virtual disk offset and returns the
offset of the corresponding cluster in the image file. Errors (e.g. L2 table
can't be read) are currenctly indicated by a return value of 0, which is
unfortuately the same as for any unallocated cluster. So in effect we can't
check for errors.
This makes the old return value a by-reference parameter and returns the usual
0/-errno error code.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'linux-user/linuxload.c')
0 files changed, 0 insertions, 0 deletions