aboutsummaryrefslogtreecommitdiff
path: root/src/tools/myriadfs.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-02-19 07:15:19 +0000
committerMike Buland <eichlan@xagasoft.com>2011-02-19 07:15:19 +0000
commit401b8383079720fff1264c67f77b6d8dfc8d9b58 (patch)
treec0586ebcbe145816c7e9eef7cb3aba543e23b808 /src/tools/myriadfs.cpp
parent26bb069c535e3fd5b0e0fb28fb54a2a540b60a84 (diff)
downloadlibbu++-401b8383079720fff1264c67f77b6d8dfc8d9b58.tar.gz
libbu++-401b8383079720fff1264c67f77b6d8dfc8d9b58.tar.bz2
libbu++-401b8383079720fff1264c67f77b6d8dfc8d9b58.tar.xz
libbu++-401b8383079720fff1264c67f77b6d8dfc8d9b58.zip
MyriadFs is getting good!
Diffstat (limited to 'src/tools/myriadfs.cpp')
-rw-r--r--src/tools/myriadfs.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tools/myriadfs.cpp b/src/tools/myriadfs.cpp
index 3956311..b54390d 100644
--- a/src/tools/myriadfs.cpp
+++ b/src/tools/myriadfs.cpp
@@ -140,6 +140,13 @@ extern "C" {
140 return 0; 140 return 0;
141 } 141 }
142 142
143 static int myriadfs_utimens( const char *sPath,
144 const struct timespec tv[2] )
145 {
146 pFs->setTimes( sPath, tv[0].tv_sec, tv[1].tv_sec );
147 return 0;
148 }
149
143 static struct fuse_operations myriadfs_oper; 150 static struct fuse_operations myriadfs_oper;
144 151
145 int main( int argc, char *argv[] ) 152 int main( int argc, char *argv[] )
@@ -155,6 +162,8 @@ extern "C" {
155 myriadfs_oper.write = myriadfs_write; 162 myriadfs_oper.write = myriadfs_write;
156 myriadfs_oper.create = myriadfs_create; 163 myriadfs_oper.create = myriadfs_create;
157 myriadfs_oper.mknod = myriadfs_mknod; 164 myriadfs_oper.mknod = myriadfs_mknod;
165 myriadfs_oper.release = myriadfs_release;
166 myriadfs_oper.utimens = myriadfs_utimens;
158 printf("Starting fuse_main.\n"); 167 printf("Starting fuse_main.\n");
159 int iRet = fuse_main( argc, argv, &myriadfs_oper, NULL ); 168 int iRet = fuse_main( argc, argv, &myriadfs_oper, NULL );
160 printf("Done with fuse_main.\n"); 169 printf("Done with fuse_main.\n");