aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-11-07 15:49:24 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2005-11-07 15:49:24 +0000
commit5377a9a5710d8386cfb36da89523295fe8f4942e (patch)
tree52219bf84408c370d0db1c7932d16c0fb4150996
parentcea6b546d1326beb755df4b0578881f418306dbd (diff)
downloadsshfs-5377a9a5710d8386cfb36da89523295fe8f4942e.tar
sshfs-5377a9a5710d8386cfb36da89523295fe8f4942e.tar.gz
sshfs-5377a9a5710d8386cfb36da89523295fe8f4942e.tar.bz2
sshfs-5377a9a5710d8386cfb36da89523295fe8f4942e.zip
fix
-rw-r--r--ChangeLog4
-rw-r--r--Makefile.am2
-rw-r--r--sshfs.c16
3 files changed, 21 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 09c727c..6a660a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2005-10-29 Miklos Szeredi <miklos@szeredi.hu>
+ * Use FUSE version 25 if available
+
+2005-10-29 Miklos Szeredi <miklos@szeredi.hu>
+
* Released 1.3
2005-10-28 Miklos Szeredi <miklos@szeredi.hu>
diff --git a/Makefile.am b/Makefile.am
index 8b4384a..1192634 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,4 +2,4 @@
bin_PROGRAMS = sshfs
sshfs_SOURCES = sshfs.c cache.c opts.c cache.h opts.h
-sshfs_CPPFLAGS = -DFUSE_USE_VERSION=22
+sshfs_CPPFLAGS = -DFUSE_USE_VERSION=25
diff --git a/sshfs.c b/sshfs.c
index c512f76..2876a21 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -1767,6 +1767,21 @@ static int sshfs_write(const char *path, const char *wbuf, size_t size,
return err ? err : (int) size;
}
+#if FUSE_VERSION >= 25
+static int sshfs_statfs(const char *path, struct statvfs *buf)
+{
+ (void) path;
+
+ buf->f_namemax = 255;
+ buf->f_bsize = 512;
+ buf->f_blocks = 999999999 * 2;
+ buf->f_bfree = 999999999 * 2;
+ buf->f_bavail = 999999999 * 2;
+ buf->f_files = 999999999;
+ buf->f_ffree = 999999999;
+ return 0;
+}
+#else
static int sshfs_statfs(const char *path, struct statfs *buf)
{
(void) path;
@@ -1780,6 +1795,7 @@ static int sshfs_statfs(const char *path, struct statfs *buf)
buf->f_ffree = 999999999;
return 0;
}
+#endif
#if FUSE_VERSION >= 25
static int sshfs_create(const char *path, mode_t mode,