Commit 76685c77 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

fuse: do not set 0x8000 for LARGEFILE on mips64.

mips64 uses 0x4000 for LARGEFILE. See also issue #514	

Change-Id: I46e83824f412131961318b16767bc05273fa2fbe
parent 4913f462
...@@ -5,13 +5,19 @@ ...@@ -5,13 +5,19 @@
package fuse package fuse
import ( import (
"runtime"
"strings"
"syscall" "syscall"
) )
func init() { func init() {
// syscall.O_LARGEFILE is 0x0 on x86_64, but the // syscall.O_LARGEFILE is 0x0 on x86_64, but the kernel
// kernel supplies 0x8000 anyway. // supplies 0x8000 anyway, except on mips64el, where 0x8000 is
openFlagNames.set(0x8000, "LARGEFILE") // used for O_DIRECT.
if !strings.Contains(runtime.GOARCH, "mips64") {
openFlagNames.set(0x8000, "LARGEFILE")
}
openFlagNames.set(syscall.O_DIRECT, "DIRECT") openFlagNames.set(syscall.O_DIRECT, "DIRECT")
openFlagNames.set(syscall_O_NOATIME, "NOATIME") openFlagNames.set(syscall_O_NOATIME, "NOATIME")
initFlagNames.set(CAP_NO_OPENDIR_SUPPORT, "NO_OPENDIR_SUPPORT") initFlagNames.set(CAP_NO_OPENDIR_SUPPORT, "NO_OPENDIR_SUPPORT")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment