summaryrefslogtreecommitdiff
path: root/netfs/fuseFS.cpp
blob: ab27044ca66b401df5e6044f34029ef1f92853eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "fuse.h"
#include "msgtypes.h"

int
NetFS::statfs(const char * p, struct statvfs * vfs)
{
	TypedPayloadReq<StatfsRequest>::Ptr msg = new TypedPayloadReq<StatfsRequest>(fuse_get_context());
	msg->data.path = p;
	TypedPayload<StatfsReply>::Ptr rep = msg->exchange(this);
	*vfs = rep->data.statfs;
	return -rep->data.error;
}