Initial commit
Proof-of-concept implementation. Bugs will occur.
This commit is contained in:
44
vendor/github.com/hanwen/go-fuse/v2/fuse/constants.go
generated
vendored
Normal file
44
vendor/github.com/hanwen/go-fuse/v2/fuse/constants.go
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
// Copyright 2016 the Go-FUSE Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package fuse
|
||||
|
||||
import (
|
||||
"os"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
const (
|
||||
FUSE_ROOT_ID = 1
|
||||
|
||||
FUSE_UNKNOWN_INO = 0xffffffff
|
||||
|
||||
CUSE_UNRESTRICTED_IOCTL = (1 << 0)
|
||||
|
||||
FUSE_LK_FLOCK = (1 << 0)
|
||||
|
||||
FUSE_RELEASE_FLUSH = (1 << 0)
|
||||
FUSE_RELEASE_FLOCK_UNLOCK = (1 << 1)
|
||||
|
||||
FUSE_IOCTL_MAX_IOV = 256
|
||||
|
||||
FUSE_POLL_SCHEDULE_NOTIFY = (1 << 0)
|
||||
|
||||
CUSE_INIT_INFO_MAX = 4096
|
||||
|
||||
S_IFDIR = syscall.S_IFDIR
|
||||
S_IFREG = syscall.S_IFREG
|
||||
S_IFLNK = syscall.S_IFLNK
|
||||
S_IFIFO = syscall.S_IFIFO
|
||||
|
||||
CUSE_INIT = 4096
|
||||
|
||||
O_ANYWRITE = uint32(os.O_WRONLY | os.O_RDWR | os.O_APPEND | os.O_CREATE | os.O_TRUNC)
|
||||
|
||||
// FMODE_EXEC is a passed to OPEN requests if the file is
|
||||
// being executed.
|
||||
FMODE_EXEC = 0x20
|
||||
|
||||
logicalBlockSize = 512
|
||||
)
|
||||
Reference in New Issue
Block a user