#include <sys/stat.h>
#include <fcntl.h>
-#ifdef DARWIN
#include <sys/statvfs.h>
-#endif // DARWIN
#include <iostream>
return 0;
}
-#ifdef DARWIN
int Client::statfs(const char *path, struct statvfs *stbuf)
{
bzero (stbuf, sizeof (struct statvfs));
return 0;
}
-#else
-int Client::statfs(const char *path, struct statfs *stbuf)
-{
- assert(0); // implement me
- return 0;
-}
-#endif
int Client::lazyio_propogate(int fd, off_t offset, size_t count)
int unmount();
// these shoud (more or less) mirror the actual system calls.
-#ifdef DARWIN
int statfs(const char *path, struct statvfs *stbuf);
-#else
- int statfs(const char *path, struct statfs *stbuf);
-#endif
// crap
int chdir(const char *s);
#include <fcntl.h>
#include <dirent.h>
#include <errno.h>
-#ifdef DARWIN
#include <sys/statvfs.h>
-#else
-#include <sys/statfs.h>
-#endif // DARWIN
// ceph stuff
*/
-#ifdef DARWIN
static int ceph_statfs(const char *path, struct statvfs *stbuf)
{
return client->statfs(path, stbuf);
}
-#else
-static int ceph_statfs(const char *path, struct statfs *stbuf)
-{
- return client->statfs(path, stbuf);
-}
-#endif