From: Alex Elder Date: Thu, 1 Nov 2012 13:39:26 +0000 (-0500) Subject: rbd: don't use ENOTSUPP X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=b8f5c6edca34ff441e1ccdec68828e933a1b905b;p=deliverable%2Flinux.git 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 Reviewed-by: Sage Weil --- diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index ce26b749ede0..4daa400c13aa 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -2456,7 +2456,7 @@ static int _rbd_dev_v2_snap_features(struct rbd_device *rbd_dev, u64 snap_id, incompat = le64_to_cpu(features_buf.incompat); if (incompat & ~RBD_FEATURES_ALL) - return -ENOTSUPP; + return -ENXIO; *snap_features = le64_to_cpu(features_buf.features);