github.com/hanwen/go-fuse@v1.0.0/fuse/constants.go (about)

     1  // Copyright 2016 the Go-FUSE Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package fuse
     6  
     7  import (
     8  	"os"
     9  	"syscall"
    10  )
    11  
    12  const (
    13  	FUSE_ROOT_ID = 1
    14  
    15  	FUSE_UNKNOWN_INO = 0xffffffff
    16  
    17  	CUSE_UNRESTRICTED_IOCTL = (1 << 0)
    18  
    19  	FUSE_LK_FLOCK = (1 << 0)
    20  
    21  	FUSE_IOCTL_MAX_IOV = 256
    22  
    23  	FUSE_POLL_SCHEDULE_NOTIFY = (1 << 0)
    24  
    25  	CUSE_INIT_INFO_MAX = 4096
    26  
    27  	S_IFDIR = syscall.S_IFDIR
    28  	S_IFREG = syscall.S_IFREG
    29  	S_IFLNK = syscall.S_IFLNK
    30  	S_IFIFO = syscall.S_IFIFO
    31  
    32  	CUSE_INIT = 4096
    33  
    34  	O_ANYWRITE = uint32(os.O_WRONLY | os.O_RDWR | os.O_APPEND | os.O_CREATE | os.O_TRUNC)
    35  )