]>
Commit | Line | Data |
---|---|---|
224ce89b WB |
1 | // -*- mode:C++; tab-width:2; c-basic-offset:2; indent-tabs-mode:t -*- |
2 | // vim: ts=2 sw=2 smarttab | |
3 | ||
4 | #include <stdlib.h> | |
7c673cae FG |
5 | #include "include/cephfs/libcephfs.h" |
6 | #include "include/rados/librados.h" | |
7 | ||
8 | #ifdef __cplusplus | |
9 | #error "test invalid: only use C mode" | |
10 | #endif | |
11 | ||
12 | int main(int argc, char **argv) | |
13 | { | |
14 | int ret; | |
7c673cae FG |
15 | |
16 | /* librados.h */ | |
17 | rados_t cluster; | |
18 | ret = rados_create(&cluster, NULL); | |
224ce89b WB |
19 | if (ret < 0) { |
20 | return EXIT_FAILURE; | |
21 | } | |
7c673cae FG |
22 | /* libcephfs.h */ |
23 | struct ceph_mount_info *cmount; | |
24 | ret = ceph_create(&cmount, NULL); | |
224ce89b WB |
25 | if (ret < 0) { |
26 | return EXIT_FAILURE; | |
27 | } | |
7c673cae FG |
28 | |
29 | return 0; | |
30 | } |