summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2012-08-31 17:29:55 -0500
committerAlex Elder <elder@inktank.com>2012-10-10 07:44:01 -0700
commit35152979e6181b1fbb4b61c3ff641c14df53ad66 (patch)
tree3fa6e0391c7e374646612ff0aa88cab9d5d74837 /drivers/block
parentd889140c4a1c5edb6a7bd90392b9d878bfaccfb6 (diff)
downloadop-kernel-dev-35152979e6181b1fbb4b61c3ff641c14df53ad66.zip
op-kernel-dev-35152979e6181b1fbb4b61c3ff641c14df53ad66.tar.gz
rbd: activate v2 image support
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 <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/rbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index 0f260a6..8f56d37 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -3014,7 +3014,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;
OpenPOWER on IntegriCloud