freemyipod r899 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r898‎ | r899 | r900 >
Date:22:36, 24 September 2013
Author:user890104
Status:new
Tags:
Comment:
emCOREFS: Lie to FUSE that we support utimens(), in order to get rid of "failed to set times on xxx: Function not implemented" warnings
Modified paths:
  • /emcore/trunk/tools/emcorefs/emcorefs.c (modified) (history)
  • /emcore/trunk/tools/emcorefs/fuse.c (modified) (history)
  • /emcore/trunk/tools/emcorefs/fuse.h (modified) (history)

Diff [purge]

Index: emcore/trunk/tools/emcorefs/fuse.c
@@ -120,6 +120,13 @@
121121 return 0;
122122 }
123123
 124+int32_t emcorefs_utimens(const char *path, const struct timespec tv[2]) {
 125+ (void)path;
 126+ (void)tv;
 127+
 128+ return 0;
 129+}
 130+
124131 int32_t emcorefs_opendir(const char *path, struct fuse_file_info *fi) {
125132 int32_t res;
126133 uint32_t handle;
Index: emcore/trunk/tools/emcorefs/emcorefs.c
@@ -30,6 +30,7 @@
3131
3232 struct fuse_operations emcorefs_oper = {
3333 .getattr = emcorefs_getattr,
 34+ .utimens = emcorefs_utimens,
3435
3536 .opendir = emcorefs_opendir,
3637 .readdir = emcorefs_readdir,
Index: emcore/trunk/tools/emcorefs/fuse.h
@@ -27,6 +27,7 @@
2828
2929 int32_t emcorefs_init(void);
3030 int32_t emcorefs_getattr(const char *path, struct stat *stbuf);
 31+int32_t emcorefs_utimens(const char *path, const struct timespec tv[2]);
3132 int32_t emcorefs_opendir(const char *path, struct fuse_file_info *fi);
3233 int32_t emcorefs_readdir(const char *path, void *buf, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *fi);
3334 int32_t emcorefs_releasedir(const char *path, struct fuse_file_info *fi);