aboutsummaryrefslogtreecommitdiff
path: root/mount.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-07-01 11:32:17 +0200
committerJakob Unterwurzacher2017-07-01 11:32:17 +0200
commit9d10dcbd1c502645a01553d34c7a6ce24d060a2a (patch)
tree33da93c3e4be76037446db2d8e6f6add8e431fa4 /mount.go
parentb3e554acc22afd9a5884e24496ea1d066889a3a4 (diff)
main: get rid of magic "MaxWrite: 1048576" constant
go-fuse caps MaxWrite at MAX_KERNEL_WRITE anyway, and we actually depend on this behavoir now as the byte pools are sized according to MAX_KERNEL_WRITE. So let's use MAX_KERNEL_WRITE explicitely.
Diffstat (limited to 'mount.go')
-rw-r--r--mount.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/mount.go b/mount.go
index e19f2c8..3a5902a 100644
--- a/mount.go
+++ b/mount.go
@@ -286,7 +286,7 @@ func initFuseFrontend(key []byte, args *argContainer, confFile *configfile.ConfF
mOpts := fuse.MountOptions{
// Bigger writes mean fewer calls and better throughput.
// Capped to 128KiB on Linux.
- MaxWrite: 1048576,
+ MaxWrite: fuse.MAX_KERNEL_WRITE,
}
if args.allow_other {
tlog.Info.Printf(tlog.ColorYellow + "The option \"-allow_other\" is set. Make sure the file " +