forked from TrueCloudLab/rclone
cmount: use -o atomic_o_trunc to make sure O_TRUNC is supplied to Open()
This commit is contained in:
parent
57a5c67729
commit
60cdcf784c
1 changed files with 5 additions and 0 deletions
|
@ -40,6 +40,11 @@ func mountOptions(device string, mountpoint string) (options []string) {
|
|||
"-o", "fsname=" + device,
|
||||
"-o", "subtype=rclone",
|
||||
"-o", fmt.Sprintf("max_readahead=%d", mountlib.MaxReadAhead),
|
||||
// This causes FUSE to supply O_TRUNC with the Open
|
||||
// call which is more efficient for cmount. However
|
||||
// it does not work with cgofuse on Windows with
|
||||
// WinFSP so cmount must work with or without it.
|
||||
"-o", "atomic_o_trunc",
|
||||
}
|
||||
if mountlib.DebugFUSE {
|
||||
options = append(options, "-o", "debug")
|
||||
|
|
Loading…
Reference in a new issue