Ilya Dryomov 7dd440c9e0 rbd: do not return -ERANGE on auth failures
Trying to map an image out of a pool for which we don't have an 'x'
permission bit fails with -ERANGE from ceph_extract_encoded_string()
due to an unsigned vs signed bug.  Fix it and get rid of the -EINVAL
sink, thus propagating rbd::get_id cls method errors.  (I've seen
a bunch of unexplained -ERANGE reports, I bet this is it).

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
2014-10-14 21:03:26 +04:00
..
2014-03-04 07:55:47 -08:00
2014-08-21 20:42:01 -05:00
2014-08-08 15:57:28 -07:00
2014-08-08 15:57:28 -07:00
2014-01-30 16:56:55 -08:00
2014-01-30 16:56:55 -08:00
2014-06-06 07:57:37 -06:00