Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rbd: new option for specifying the id #415

Merged
merged 1 commit into from May 15, 2018
Merged

Conversation

tjakob
Copy link
Contributor

@tjakob tjakob commented May 8, 2018

Allows differnt ids to connect to the RADOS cluster

Allows differnt ids to connect to the RADOS cluster
@bgly
Copy link
Contributor

bgly commented May 9, 2018

Looks good to me

@@ -423,7 +424,7 @@ static int tcmu_rbd_image_open(struct tcmu_device *dev)
struct tcmu_rbd_state *state = tcmu_get_dev_private(dev);
int ret;

ret = rados_create(&state->cluster, NULL);
ret = rados_create(&state->cluster, state->id);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch.

Did you want to use the rados_create2 full name support instead of the rados_create id where "client" is assumed to be the prefix?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For our current use case, assuming "client" is okay with us, and we don't currently have any plans for setting the cluster name.

@mikechristie
Copy link
Collaborator

Thanks.

@mikechristie mikechristie merged commit 0d0cf7a into open-iscsi:master May 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants