From 2545d1f2a82bc7c23abc0034958b169f9fffe613 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 19 Nov 2010 23:48:03 +0000 Subject: MyriadFs is starting out...but the FUSE system is...akward at best. --- src/tools/myriadfs.cpp | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/tools/myriadfs.cpp (limited to 'src/tools') diff --git a/src/tools/myriadfs.cpp b/src/tools/myriadfs.cpp new file mode 100644 index 0000000..66955a5 --- /dev/null +++ b/src/tools/myriadfs.cpp @@ -0,0 +1,38 @@ +#define FUSE_USE_VERSION 26 + +#include + +#include + +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 ); + } +} -- cgit v1.2.3