We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fa64b3 commit bdc361aCopy full SHA for bdc361a
rbd.c
@@ -1210,10 +1210,12 @@ static int tcmu_rbd_open(struct tcmu_device *dev, bool reopen)
1210
#ifdef LIBRADOS_SUPPORTS_GETADDRS
1211
/* Get current entry address for the image */
1212
ret = rados_getaddrs(state->cluster, &state->addrs);
1213
- tcmu_dev_info(dev, "address: {%s}\n", state->addrs);
+ if (ret < 0) {
1214
+ tcmu_dev_err(dev, "failed getting the address\n");
1215
+ goto stop_image;
1216
+ }
1217
+ tcmu_dev_info(dev, "opened, the address: {%s}\n", state->addrs);
1218
pthread_mutex_unlock(&rdev->priv_lock);
- if (ret < 0)
- return ret;
1219
#endif
1220
1221
free(dev_cfg_dup);
0 commit comments