static SimpleMessenger *rank = NULL;
extern "C" int ceph_initialize(int argc, const char **argv)
-{
- ceph_client_mutex.Lock();
+{ ceph_client_mutex.Lock();
if (!client_initialized) {
//create everything to start a client
vector<const char*> args;
return client->sync_fs();
}
+extern "C" int ceph_get_stripe_unit(int fh)
+{
+ return client->get_stripe_unit(fh);
+}
+
int ceph_getdir(const char *relpath, std::list<std::string>& names)
{
return client->getdir(relpath, names);
int ceph_fstat(int fd, struct stat *stbuf);
int ceph_sync_fs();
+int ceph_get_stripe_unit(int fh);
#ifdef __cplusplus
int ceph_getdir(const char *relpath, std::list<std::string>& names); //not for C, sorry!
}