rbd: don't use ENOTSUPP
authorAlex Elder <elder@dreamhost.com>
Thu, 1 Nov 2012 13:39:26 +0000 (08:39 -0500)
committerAlex Elder <elder@inktank.com>
Mon, 17 Dec 2012 18:07:32 +0000 (12:07 -0600)
commitb8f5c6edca34ff441e1ccdec68828e933a1b905b
tree4c0c7b5f3d61ce897e0cc7b62d9312c59bb43563
parent61c74035626beb25a39b0273ccf7d75510bc36a1
rbd: don't use ENOTSUPP

ENOTSUPP is not a standard errno (it shows up as "Unknown error 524"
in an error message).  This is what was getting produced when the
the local rbd code does not implement features required by a
discovered rbd image.

Change the error code returned in this case to ENXIO.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
drivers/block/rbd.c