diff options
author | Mike Buland <eichlan@xagasoft.com> | 2010-11-19 23:48:03 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2010-11-19 23:48:03 +0000 |
commit | 2545d1f2a82bc7c23abc0034958b169f9fffe613 (patch) | |
tree | f0240aea48e98d3515b0ee7d49904fe8fe4744de /src/tools | |
parent | d013208dd0cbd42b4f46279772d02ec85c47735f (diff) | |
download | libbu++-2545d1f2a82bc7c23abc0034958b169f9fffe613.tar.gz libbu++-2545d1f2a82bc7c23abc0034958b169f9fffe613.tar.bz2 libbu++-2545d1f2a82bc7c23abc0034958b169f9fffe613.tar.xz libbu++-2545d1f2a82bc7c23abc0034958b169f9fffe613.zip |
MyriadFs is starting out...but the FUSE system is...akward at best.
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/myriadfs.cpp | 38 |
1 files changed, 38 insertions, 0 deletions
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 @@ | |||
1 | #define FUSE_USE_VERSION 26 | ||
2 | |||
3 | #include <fuse.h> | ||
4 | |||
5 | #include <string.h> | ||
6 | |||
7 | extern "C" { | ||
8 | static int myriadfs_getattr( const char *sPath, struct stat *stbuf ) | ||
9 | { | ||
10 | |||
11 | } | ||
12 | |||
13 | static int myriadfs_readdir( const char *sPath, void *buf, | ||
14 | fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *fi ) | ||
15 | { | ||
16 | } | ||
17 | |||
18 | static int myriadfs_open( const char *sPath, struct fuse_file_info *fi ) | ||
19 | { | ||
20 | } | ||
21 | |||
22 | static int myriadfs_read( const char *sPath, char *buf, size_t iSize, | ||
23 | off_t iOffset, struct fuse_file_info *fi ) | ||
24 | { | ||
25 | } | ||
26 | |||
27 | static struct fuse_operations myriadfs_oper; | ||
28 | |||
29 | int main( int argc, char *argv[] ) | ||
30 | { | ||
31 | memset( &myriadfs_oper, sizeof(myriadfs_oper), 0 ); | ||
32 | myriadfs_oper.getattr = myriadfs_getattr; | ||
33 | myriadfs_oper.readdir = myriadfs_readdir; | ||
34 | myriadfs_oper.open = myriadfs_open; | ||
35 | myriadfs_oper.read = myriadfs_read; | ||
36 | return fuse_main( argc, argv, &myriadfs_oper, NULL ); | ||
37 | } | ||
38 | } | ||