rbd: activate v2 image support
authorAlex Elder <elder@inktank.com>
Fri, 31 Aug 2012 22:29:55 +0000 (17:29 -0500)
committerAlex Elder <elder@inktank.com>
Wed, 10 Oct 2012 14:44:01 +0000 (07:44 -0700)
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>
drivers/block/rbd.c

index 0f260a6e97c44addbf8120d131e4afb1fb3cabb9..8f56d37637a7a402158c664f6f88aab31a1820ae 100644 (file)
@@ -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;