diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | include/fuse.h | 6 | ||||
-rw-r--r-- | lib/fuse.c | 10 |
3 files changed, 1 insertions, 16 deletions
@@ -22,6 +22,7 @@ - fuse_exited() - fuse_lowlevel_is_lib_option() - fuse_operations.getdir() + - fuse_operations.utime() 2013-02-06 Miklos Szeredi <miklos@szeredi.hu> diff --git a/include/fuse.h b/include/fuse.h index dfad371..34498ca 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -156,12 +156,6 @@ struct fuse_operations { /** Change the size of a file */ int (*truncate) (const char *, off_t); - /** Change the access and/or modification times of a file - * - * Deprecated, use utimens() instead. - */ - int (*utime) (const char *, struct utimbuf *); - /** File open operation * * No creation (O_CREAT, O_EXCL) and by default also no @@ -1996,16 +1996,6 @@ int fuse_fs_utimens(struct fuse_fs *fs, const char *path, tv[1].tv_sec, tv[1].tv_nsec); return fs->op.utimens(path, tv); - } else if(fs->op.utime) { - struct utimbuf buf; - - if (fs->debug) - fprintf(stderr, "utime %s %li %li\n", path, - tv[0].tv_sec, tv[1].tv_sec); - - buf.actime = tv[0].tv_sec; - buf.modtime = tv[1].tv_sec; - return fs->op.utime(path, &buf); } else { return -ENOSYS; } |