diff options
Diffstat (limited to 'sshfs.c')
-rw-r--r-- | sshfs.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -1748,6 +1748,20 @@ static int sshfs_write(const char *path, const char *wbuf, size_t size, return err ? err : (int) size; } +static int sshfs_statfs(const char *path, struct statfs *buf) +{ + (void) path; + + buf->f_namelen = 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; +} + static int processing_init(void) { pthread_mutex_init(&lock, NULL); @@ -1782,6 +1796,7 @@ static struct fuse_cache_operations sshfs_oper = { .release = sshfs_release, .read = sshfs_read, .write = sshfs_write, + .statfs = sshfs_statfs, }, .cache_getdir = sshfs_getdir, }; |