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.
This commit is contained in:
parent
b3e554acc2
commit
9d10dcbd1c
2
mount.go
2
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 " +
|
||||
|
Loading…
Reference in New Issue
Block a user