From 276905bf14fccd9519dbd8a6025c58a51e945d2b Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Fri, 8 Feb 2013 08:03:02 +0100 Subject: [PATCH] libfuse: remove deprecated fuse_operations.utime() --- ChangeLog | 1 + include/fuse.h | 6 ------ lib/fuse.c | 10 ---------- 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/ChangeLog b/ChangeLog index b102d7e..a8a5434 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22,6 +22,7 @@ - fuse_exited() - fuse_lowlevel_is_lib_option() - fuse_operations.getdir() + - fuse_operations.utime() 2013-02-06 Miklos Szeredi 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 diff --git a/lib/fuse.c b/lib/fuse.c index 6360cb9..72a8bd7 100644 --- a/lib/fuse.c +++ b/lib/fuse.c @@ -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; } -- 2.30.2