in reply to [Ceph::RADOS] Help Debugging Inline C
What does it print? A reasonable positive size? (I assume your C compiler is C99 capable; if not, you can rewrite the char buf[buf_sz]; as char *buf = alloca(buf_sz);).
Now, if rados_pool_list() returned a negative (error) value, try passing it "" in stead of NULL.
A quick glance at librados.cc makes me think there may be a bug there.
Oooomh, a quick update: another thing you should do is replace
int buf_sz;with a
size_t buf_sz;This, unfortunately will not improve the situation, since rados_pool_list() is prototyped as int, where it really ought to be ssize_t rados_pool_list(). File a ticket with the project?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: [Ceph::RADOS] Help Debugging Inline C
by three18ti (Monk) on Nov 09, 2013 at 22:36 UTC | |
by oiskuu (Hermit) on Nov 11, 2013 at 09:33 UTC | |
by Anonymous Monk on Feb 25, 2014 at 05:44 UTC | |
by mlsorensen (Initiate) on May 21, 2014 at 05:49 UTC | |
|
Re^2: [Ceph::RADOS] Help Debugging Inline C
by syphilis (Archbishop) on Nov 07, 2013 at 22:17 UTC | |
by oiskuu (Hermit) on Nov 08, 2013 at 02:35 UTC | |
by syphilis (Archbishop) on Nov 08, 2013 at 03:06 UTC |