Skip to content

Commit

Permalink
rbd: activate v2 image support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alex Elder committed Oct 10, 2012
1 parent d889140 commit 3515297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3515297

Please sign in to comment.