Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bazil/fuse
/ functions
Functions
768 in github.com/bazil/fuse
⨍
Functions
768
◇
Types & classes
378
↓ 173 callers
Method
Close
Close unmounts the filesystem and waits for fs.Serve to return. Any returned error will be stored in Err. It is safe to call Close multiple times.
fs/fstestutil/mounted.go:32
↓ 94 callers
Method
Call
Call a HTTP resource that is expected to return JSON data. If data is not nil, method is POST and the request body is data marshaled into JSON. If da
fs/fstestutil/spawntest/httpjson/client.go:38
↓ 93 callers
Method
JSON
JSON returns a helper to make HTTP requests that pass data as JSON to the resource identified by path. Path should not include scheme or host. Path ca
fs/fstestutil/spawntest/spawntest.go:258
↓ 75 callers
Function
MountedT
MountedT mounts the filesystem at a temporary directory, directing it's debug log to the testing logger. See Mounted for usage. The debug log is not
fs/fstestutil/mounted.go:135
↓ 73 callers
Method
Spawn
Spawn the helper. All errors will be reported via t.Logf and fatal errors result in t.FailNow. The helper is killed after context cancels.
fs/fstestutil/spawntest/spawntest.go:158
↓ 67 callers
Function
maybeParallel
(t *testing.T)
fs/serve_test.go:34
↓ 61 callers
Function
ServePOST
TODO ServeGET ServePOST adapts a function to a http.Handler with easy JSON unmarshal & marshal and error reporting. fn is expected to be of the form
fs/fstestutil/spawntest/httpjson/server.go:21
↓ 50 callers
Method
Register
Register a helper in the registry. This should be called from a top-level variable assignment. Register will panic if the name is already registered
fs/fstestutil/spawntest/spawntest.go:49
↓ 50 callers
Method
Unlock
Unlock releases the lock on a byte range of the node. Locks can be released also implicitly, see HandleFlockLocker and HandlePOSIXLocker.
fs/serve.go:375
↓ 48 callers
Method
Lock
Lock tries to acquire a lock on a byte range of the node. If a conflicting lock is already held, returns syscall.EAGAIN. LockRequest.LockOwner is a f
fs/serve.go:366
↓ 40 callers
Function
newBuffer
(extra uintptr)
buffer.go:31
↓ 38 callers
Method
Respond
Respond replies to the request with the given response.
fuse.go:1445
↓ 37 callers
Method
Header
()
fuse.go:468
↓ 34 callers
Method
respond
(msg []byte)
fuse.go:1186
↓ 27 callers
Method
data
()
fuse.go:456
↓ 27 callers
Method
len
()
fuse.go:452
↓ 25 callers
Method
Count
()
fs/fstestutil/record/record.go:42
↓ 24 callers
Method
Recorded
()
fs/fstestutil/record/record.go:88
↓ 23 callers
Method
alloc
alloc allocates size bytes and returns a pointer to the new segment.
buffer.go:11
↓ 21 callers
Function
run
(prune bool, mountpoints []string)
cmd/fuse-abort/main.go:126
↓ 20 callers
Method
Close
Close closes the FUSE connection.
fuse.go:538
↓ 17 callers
Method
RecordRequest
Record a fuse.Request, after zeroing header fields that are hard to reproduce. Make sure to record a copy, not the original request.
fs/fstestutil/record/record.go:103
↓ 16 callers
Method
Open
Open opens the receiver. After a successful open, a client process has a file descriptor referring to this Handle. Open can also be also called on no
fs/serve.go:196
↓ 15 callers
Method
ServeHTTP
(w http.ResponseWriter, req *http.Request)
fs/serve_test.go:4333
↓ 15 callers
Function
flagString
(f uint32, names []flagName)
fuse_kernel.go:372
↓ 14 callers
Method
bytes
()
fuse.go:464
↓ 11 callers
Method
Hdr
Hdr returns the Header associated with this request.
fuse.go:233
↓ 11 callers
Method
LT
LT returns whether a is less than b.
protocol.go:18
↓ 11 callers
Method
Write
Write requests to write data into the handle at the given offset. Store the amount of data written in resp.Size. There is a writeback page cache in t
fs/serve.go:322
↓ 11 callers
Method
callLock
(req *lockReq)
fs/serve_test.go:4518
↓ 10 callers
Function
HandleRead
HandleRead handles a read request assuming that data is the entire file content. It adjusts the amount returned in resp according to req.Offset and re
fuseutil/fuseutil.go:9
↓ 10 callers
Method
getHandle
Returns nil for invalid handles.
fs/serve.go:672
↓ 9 callers
Method
Add
Add adds the path to the tree, resolving to the given node. If path or a prefix of path has already been added to the tree, Add panics. Add is only s
fs/tree.go:30
↓ 9 callers
Method
Create
Create creates a new directory entry in the receiver, which must be a directory.
fs/serve.go:202
↓ 9 callers
Method
GE
GE returns whether a is greater than or equal to b.
protocol.go:24
↓ 9 callers
Method
Inc
()
fs/fstestutil/record/record.go:38
↓ 8 callers
Method
Error
()
fs/fstestutil/spawntest/httpjson/musteof.go:15
↓ 8 callers
Method
attr
(out *attr, proto Protocol)
fuse.go:1570
↓ 8 callers
Function
maybeParallel
(t *testing.T)
options_test.go:25
↓ 8 callers
Function
putMessage
(m *message)
fuse.go:437
↓ 7 callers
Method
Close
()
cmd/fuse-abort/internal/mountinfo/mountinfo.go:33
↓ 7 callers
Function
fileMode
fileMode returns a Go os.FileMode from a Unix mode.
fuse.go:483
↓ 6 callers
Method
Read
Read requests to read data from the handle. Copy the response bytes to the byte slice resp.Data, slicing it shorter when needed. There is a page cac
fs/serve.go:307
↓ 6 callers
Method
RecordedSetattr
()
fs/fstestutil/record/record.go:130
↓ 6 callers
Method
Remove
Remove removes the entry with the given name from the receiver, which must be a directory. The entry to be removed may correspond to a file (unlink)
fs/serve.go:150
↓ 6 callers
Method
String
()
fuse.go:238
↓ 6 callers
Function
benchmarkSizes
(helper *spawntest.Helper, conf *benchConfig)
fs/bench/bench_readwrite_test.go:144
↓ 6 callers
Method
callUnlock
(req *lockReq)
fs/serve_test.go:4564
↓ 6 callers
Function
entryOutSize
(p Protocol)
fuse_kernel.go:469
↓ 6 callers
Function
errstr
(err error)
fs/serve.go:1729
↓ 6 callers
Function
initLookupResponse
(s *fuse.LookupResponse)
fs/serve.go:905
↓ 6 callers
Method
saveLookup
(ctx context.Context, s *fuse.LookupResponse, snode *serveNode, elem string, n2 Node)
fs/serve.go:1708
↓ 6 callers
Method
sendNotify
sendNotify sends a notification to kernel. A returned ENOENT is translated to a friendlier error.
fuse.go:1216
↓ 6 callers
Function
testMountOptionFSNameEvil
(t *testing.T, evil string)
options_test.go:61
↓ 5 callers
Method
Errno
Errno returns the the error number (errno) for this error.
fuse.go:306
↓ 5 callers
Method
Mode
()
fuse_kernel.go:145
↓ 5 callers
Function
Mount
Mount mounts a new FUSE connection on the named directory and returns a connection for reading and writing FUSE messages. After a successful return,
fuse.go:145
↓ 5 callers
Function
Open
(p string)
cmd/fuse-abort/internal/mountinfo/mountinfo.go:14
↓ 5 callers
Method
RespondError
RespondError responds to the request with the given error.
fuse.go:236
↓ 5 callers
Function
openFlags
(flags uint32)
fuse_kernel_linux.go:3
↓ 5 callers
Method
string
()
fuse.go:1862
↓ 4 callers
Method
AddFlag
AddFlag adds the command-line flag used to communicate between Control and the helper to the flag set. Typically flag.CommandLine is used, and this sh
fs/fstestutil/spawntest/spawntest.go:93
↓ 4 callers
Method
Close
Close kills the helper and frees resources.
fs/fstestutil/spawntest/spawntest.go:228
↓ 4 callers
Method
Error
()
fuse.go:360
↓ 4 callers
Method
Error
()
fs/serve_test.go:126
↓ 4 callers
Function
FSName
FSName sets the file system name (also called source) that is visible in the list of mounted file systems. FreeBSD ignores this option.
options.go:51
↓ 4 callers
Method
Getxattr
Getxattr gets an extended attribute by the given name from the node. If there is no xattr by that name, returns fuse.ErrNoXattr.
fs/serve.go:232
↓ 4 callers
Method
IsReadOnly
Return true if OpenReadOnly is set.
fuse_kernel.go:216
↓ 4 callers
Method
Listxattr
Listxattr lists the extended attributes recorded for the node.
fs/serve.go:237
↓ 4 callers
Method
Mkdir
(ctx context.Context, req *fuse.MkdirRequest)
fs/serve.go:182
↓ 4 callers
Method
Next
()
cmd/fuse-abort/internal/mountinfo/mountinfo.go:61
↓ 4 callers
Method
RecordedSymlink
RecordedSymlink returns information about the Symlink request. If no request was seen, returns a zero value.
fs/fstestutil/record/record.go:201
↓ 4 callers
Method
RecordedWriteData
()
fs/fstestutil/record/record.go:29
↓ 4 callers
Method
RunIfNeeded
RunIfNeeded passes execution to the helper if the right command-line flag was seen. This should be called from TestMain after flag.Parse. If running a
fs/fstestutil/spawntest/spawntest.go:102
↓ 4 callers
Method
Serve
Serve serves the FUSE connection by making calls to the methods of fs and the Nodes and Handles it makes available. It returns only when the connecti
fs/serve.go:487
↓ 4 callers
Method
Set
(s string)
fs/fstestutil/spawntest/spawntest.go:78
↓ 4 callers
Function
Unmount
Unmount tries to unmount the filesystem mounted at dir.
unmount.go:4
↓ 4 callers
Function
lineLogger
(wg *sync.WaitGroup, prefix string, ignore func(line string) bool, r io.ReadCloser)
mount.go:14
↓ 4 callers
Method
recordedLockRequest
()
fs/serve_test.go:4506
↓ 3 callers
Method
ErrnoName
ErrnoName returns the short non-numeric identifier for this errno. For example, "EIO".
fuse.go:366
↓ 3 callers
Function
GetMountInfo
GetMountInfo finds information about the mount at mnt. It is intended for use by tests only, and only fetches information relevant to the current test
fs/fstestutil/mountinfo.go:12
↓ 3 callers
Method
InvalidateNodeData
InvalidateNodeData invalidates the kernel cache of the attributes and data of node. Returns fuse.ErrNotCached if the kernel is not currently caching
fs/serve.go:1780
↓ 3 callers
Method
IsReadWrite
Return true if OpenReadWrite is set.
fuse_kernel.go:226
↓ 3 callers
Method
IsWriteOnly
Return true if OpenWriteOnly is set.
fuse_kernel.go:221
↓ 3 callers
Method
Link
Link creates a new directory entry in the receiver based on an existing Node. Receiver must be a directory.
fs/serve.go:143
↓ 3 callers
Function
LockingPOSIX
LockingPOSIX enables flock-based (BSD) locking. This is mostly useful for distributed filesystems with global locking. Without this, kernel manages lo
options.go:234
↓ 3 callers
Method
Lookup
Lookup looks up a specific entry in the receiver, which must be a directory. Lookup should return a Node corresponding to the entry. If the name doe
fs/serve.go:172
↓ 3 callers
Method
Mark
()
fs/fstestutil/record/record.go:51
↓ 3 callers
Method
Mknod
(ctx context.Context, req *fuse.MknodRequest)
fs/serve.go:219
↓ 3 callers
Function
MountedFuncT
MountedFuncT mounts a filesystem at a temporary directory, directing it's debug log to the testing logger. See MountedFunc for usage. The debug log
fs/fstestutil/mounted.go:115
↓ 3 callers
Function
New
New returns a new FUSE server ready to serve this kernel FUSE connection. Config may be nil.
fs/serve.go:437
↓ 3 callers
Method
Record
Record that we've seen value. A nil value is indistinguishable from no value recorded.
fs/fstestutil/record/record.go:82
↓ 3 callers
Method
Removexattr
Removexattr removes an extended attribute for the name. If there is no xattr by that name, returns fuse.ErrNoXattr.
fs/serve.go:250
↓ 3 callers
Method
Setxattr
Setxattr sets an extended attribute with the given name and value for the node.
fs/serve.go:243
↓ 3 callers
Function
Subtype
Subtype sets the subtype of the mount. The main type is always `fuse`. The type in a list of mounted file systems will look like `fuse.foo`. FreeBSD
options.go:63
↓ 3 callers
Method
Symlink
Symlink creates a new symbolic link in the receiver, which must be a directory. TODO is the above true about directories?
fs/serve.go:131
↓ 3 callers
Function
benchmark
(helper *spawntest.Helper, conf *benchConfig, size int64)
fs/bench/bench_readwrite_test.go:108
↓ 3 callers
Method
callCloseToUnlock
()
fs/serve_test.go:4598
↓ 3 callers
Method
invalidateNode
(node Node, off int64, size int64)
fs/serve.go:1736
↓ 3 callers
Method
noResponse
()
fuse.go:289
next →
1–100 of 768, ranked by callers