diff options
Diffstat (limited to 'src/tools/myriadfs.cpp')
-rw-r--r-- | src/tools/myriadfs.cpp | 9 |
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"); |