diff options
author | Alex Elder <elder@inktank.com> | 2013-04-25 15:09:42 -0500 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-01 21:19:31 -0700 |
commit | f40eb349e032bee2b6f06e9b6f1dbfae561bd30a (patch) | |
tree | 71d11c256505ef1e529a04ace59968c2069f956b /usr | |
parent | 6e584f5244060edc77141700d814a2af7d697685 (diff) |
rbd: use rbd_obj_method_sync() return value
Now that rbd_obj_method_sync() returns the number of bytes
returned by the method call, that value should be used by
callers to ensure we don't overrun the valid portion of the
buffer.
Fix the two spots that remained that weren't doing that,
rbd_dev_image_name() and rbd_dev_v2_snap_name().
Rearrange the error path slightly in rbd_dev_v2_snap_name().
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions