aboutsummaryrefslogtreecommitdiff
path: root/sshfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshfs.c')
-rw-r--r--sshfs.c16
1 files changed, 16 insertions, 0 deletions
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,