aboutsummaryrefslogtreecommitdiff
path: root/src/tools/myriadfs.cpp
blob: 66955a59c22ef5c2d8a7a8f02331d0fac250cc4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#define FUSE_USE_VERSION 26

#include <fuse.h>

#include <string.h>

extern "C" {
	static int myriadfs_getattr( const char *sPath, struct stat *stbuf )
	{

	}

	static int myriadfs_readdir( const char *sPath, void *buf,
			fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *fi )
	{
	}

	static int myriadfs_open( const char *sPath, struct fuse_file_info *fi )
	{
	}

	static int myriadfs_read( const char *sPath, char *buf, size_t iSize,
			off_t iOffset, struct fuse_file_info *fi )
	{
	}

	static struct fuse_operations myriadfs_oper;

	int main( int argc, char *argv[] )
	{
		memset( &myriadfs_oper, sizeof(myriadfs_oper), 0 );
		myriadfs_oper.getattr    = myriadfs_getattr;
		myriadfs_oper.readdir    = myriadfs_readdir;
		myriadfs_oper.open       = myriadfs_open;
		myriadfs_oper.read       = myriadfs_read;
		return fuse_main( argc, argv, &myriadfs_oper, NULL );
	}
}