From: Ilya Dryomov Date: Thu, 11 Sep 2014 14:49:18 +0000 (+0400) Subject: rbd: do not return -ERANGE on auth failures X-Git-Tag: fixes-against-v3.18-rc2~71^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7dd440c9e0711d828442c3e129ab8bcb9aeeac23;p=pandora-kernel.git 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 Reviewed-by: Alex Elder --- Reading git-diff-tree failed