summaryrefslogtreecommitdiffstats
path: root/drivers
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
parentd889140c4a1c5edb6a7bd90392b9d878bfaccfb6 (diff)
downloadlinux-stable-35152979e6181b1fbb4b61c3ff641c14df53ad66.tar.gz
linux-stable-35152979e6181b1fbb4b61c3ff641c14df53ad66.tar.bz2
linux-stable-35152979e6181b1fbb4b61c3ff641c14df53ad66.zip
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')
-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 0f260a6e97c4..8f56d37637a7 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;