Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@stack01:~# ./rados_over_ipv6
- server name not found: �.FՇ (Success)
- rados_connect failed: -22root@stack01:~# c^C
- root@stack01:~# cat rados_over_ipv6.c
- #include <stdio.h>
- #include "rados/librados.h"
- int main(void) {
- rados_t cluster;
- int r;
- r = rados_create(&cluster, "admin");
- if (r < 0) {
- printf("rados_create failed: %d", r);
- return -1;
- }
- //rados_conf_set(cluster, "auth_supported", "cephx");
- rados_conf_set(cluster, "mon_host", "monitor.ceph.widodh.nl");
- //rados_conf_set(cluster, "keyring", "/etc/ceph/keyring.bin");
- r = rados_connect(cluster);
- if (r < 0) {
- printf("rados_connect failed: %d", r);
- return -2;
- }
- rados_shutdown(cluster);
- }
- root@stack01:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement