Reviewed-by: Josh Durgin <[email protected]>

On 10/09/2012 02:01 PM, Alex Elder wrote:
Now that v2 images support is fully implemented, have
rbd_dev_v2_probe() return 0 to indicate a successful probe.

(Note that an image that implements layering will fail
the probe early because of the feature chekc.)

Signed-off-by: Alex Elder <[email protected]>
---
  drivers/block/rbd.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index 86ab032..6052fff 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -3013,7 +3013,7 @@ static int rbd_dev_v2_probe(struct rbd_device
*rbd_dev)
      dout("discovered version 2 image, header name is %s\n",
          rbd_dev->header_name);

-    return -ENOTSUPP;
+    return 0;
  out_err:
      kfree(rbd_dev->header_name);
      rbd_dev->header_name = NULL;

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to