From 205f9ac27ecdceb6f99fbef806328265e8293bac Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Thu, 8 Sep 2005 15:33:35 +0000 Subject: revert create method --- ChangeLog | 4 ---- cache.c | 1 - sshfs.c | 11 ----------- 3 files changed, 16 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5785b4d..ed75569 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,3 @@ -2005-08-23 Miklos Szeredi - - * Add create() method - 2005-08-17 Miklos Szeredi * Try to calculate approximate disk usage of files from their diff --git a/cache.c b/cache.c index a2cfa3d..733a451 100644 --- a/cache.c +++ b/cache.c @@ -423,7 +423,6 @@ static void cache_unity_fill(struct fuse_cache_operations *oper, cache_oper->chown = oper->oper.chown; cache_oper->truncate = oper->oper.truncate; cache_oper->utime = oper->oper.utime; - cache_oper->create = oper->oper.create; cache_oper->open = oper->oper.open; cache_oper->read = oper->oper.read; cache_oper->write = oper->oper.write; diff --git a/sshfs.c b/sshfs.c index 7491763..53b0ea3 100644 --- a/sshfs.c +++ b/sshfs.c @@ -1326,14 +1326,6 @@ static int sshfs_open_common(const char *path, mode_t mode, return err; } -#if FUSE_VERSION >= 24 -static int sshfs_create(const char *path, mode_t mode, - struct fuse_file_info *fi) -{ - return sshfs_open_common(path, mode, fi); -} -#endif - static int sshfs_open(const char *path, struct fuse_file_info *fi) { return sshfs_open_common(path, 0, fi); @@ -1674,9 +1666,6 @@ static struct fuse_cache_operations sshfs_oper = { .chown = sshfs_chown, .truncate = sshfs_truncate, .utime = sshfs_utime, -#if FUSE_VERSION >= 24 - .create = sshfs_create, -#endif .open = sshfs_open, .flush = sshfs_flush, .fsync = sshfs_fsync, -- cgit v1.2.3