summaryrefslogtreecommitdiff
path: root/client/gvfsfusedaemon.c
diff options
context:
space:
mode:
authorRoss Lagerwall <rosslagerwall@gmail.com>2013-10-08 08:21:47 +0200
committerAlexander Larsson <alexl@redhat.com>2013-10-08 11:16:20 +0200
commit8835238a5d0049e7639f792bf82d2105ad54cc11 (patch)
tree052ce3ffb417cfe54c6e90ec445c84d48cf98a98 /client/gvfsfusedaemon.c
parent1474a61207aa33362a674abe674c822691a57331 (diff)
downloadgvfs-8835238a5d0049e7639f792bf82d2105ad54cc11.tar.gz
fuse: Use the big_writes option to speed up writes
Without the big_writes option, fuse uses a block size of 4096 bytes which results in poor write performance. So use the big_writes option to write blocks up to 64KiB in size. https://bugzilla.gnome.org/show_bug.cgi?id=652540
Diffstat (limited to 'client/gvfsfusedaemon.c')
-rw-r--r--client/gvfsfusedaemon.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/gvfsfusedaemon.c b/client/gvfsfusedaemon.c
index 3f92a1d6..e2a59b05 100644
--- a/client/gvfsfusedaemon.c
+++ b/client/gvfsfusedaemon.c
@@ -2397,6 +2397,10 @@ vfs_init (struct fuse_conn_info *conn)
/* Prevent out-of-order readahead */
conn->async_read = 0;
+ /* Use up to a 64KiB write block size. Only has an effect if -o big_writes
+ * is given on the command-line. */
+ conn->max_write = 65536;
+
return NULL;
}