MCPcopy Create free account

hub / github.com/bazil/fuse / functions

Functions768 in github.com/bazil/fuse

↓ 173 callersMethodClose
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 callersMethodCall
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 callersMethodJSON
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 callersFunctionMountedT
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 callersMethodSpawn
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 callersFunctionmaybeParallel
(t *testing.T)
fs/serve_test.go:34
↓ 61 callersFunctionServePOST
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 callersMethodRegister
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 callersMethodUnlock
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 callersMethodLock
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 callersFunctionnewBuffer
(extra uintptr)
buffer.go:31
↓ 38 callersMethodRespond
Respond replies to the request with the given response.
fuse.go:1445
↓ 37 callersMethodHeader
()
fuse.go:468
↓ 34 callersMethodrespond
(msg []byte)
fuse.go:1186
↓ 27 callersMethoddata
()
fuse.go:456
↓ 27 callersMethodlen
()
fuse.go:452
↓ 25 callersMethodCount
()
fs/fstestutil/record/record.go:42
↓ 24 callersMethodRecorded
()
fs/fstestutil/record/record.go:88
↓ 23 callersMethodalloc
alloc allocates size bytes and returns a pointer to the new segment.
buffer.go:11
↓ 21 callersFunctionrun
(prune bool, mountpoints []string)
cmd/fuse-abort/main.go:126
↓ 20 callersMethodClose
Close closes the FUSE connection.
fuse.go:538
↓ 17 callersMethodRecordRequest
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 callersMethodOpen
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 callersMethodServeHTTP
(w http.ResponseWriter, req *http.Request)
fs/serve_test.go:4333
↓ 15 callersFunctionflagString
(f uint32, names []flagName)
fuse_kernel.go:372
↓ 14 callersMethodbytes
()
fuse.go:464
↓ 11 callersMethodHdr
Hdr returns the Header associated with this request.
fuse.go:233
↓ 11 callersMethodLT
LT returns whether a is less than b.
protocol.go:18
↓ 11 callersMethodWrite
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 callersMethodcallLock
(req *lockReq)
fs/serve_test.go:4518
↓ 10 callersFunctionHandleRead
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 callersMethodgetHandle
Returns nil for invalid handles.
fs/serve.go:672
↓ 9 callersMethodAdd
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 callersMethodCreate
Create creates a new directory entry in the receiver, which must be a directory.
fs/serve.go:202
↓ 9 callersMethodGE
GE returns whether a is greater than or equal to b.
protocol.go:24
↓ 9 callersMethodInc
()
fs/fstestutil/record/record.go:38
↓ 8 callersMethodError
()
fs/fstestutil/spawntest/httpjson/musteof.go:15
↓ 8 callersMethodattr
(out *attr, proto Protocol)
fuse.go:1570
↓ 8 callersFunctionmaybeParallel
(t *testing.T)
options_test.go:25
↓ 8 callersFunctionputMessage
(m *message)
fuse.go:437
↓ 7 callersMethodClose
()
cmd/fuse-abort/internal/mountinfo/mountinfo.go:33
↓ 7 callersFunctionfileMode
fileMode returns a Go os.FileMode from a Unix mode.
fuse.go:483
↓ 6 callersMethodRead
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 callersMethodRecordedSetattr
()
fs/fstestutil/record/record.go:130
↓ 6 callersMethodRemove
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 callersMethodString
()
fuse.go:238
↓ 6 callersFunctionbenchmarkSizes
(helper *spawntest.Helper, conf *benchConfig)
fs/bench/bench_readwrite_test.go:144
↓ 6 callersMethodcallUnlock
(req *lockReq)
fs/serve_test.go:4564
↓ 6 callersFunctionentryOutSize
(p Protocol)
fuse_kernel.go:469
↓ 6 callersFunctionerrstr
(err error)
fs/serve.go:1729
↓ 6 callersFunctioninitLookupResponse
(s *fuse.LookupResponse)
fs/serve.go:905
↓ 6 callersMethodsaveLookup
(ctx context.Context, s *fuse.LookupResponse, snode *serveNode, elem string, n2 Node)
fs/serve.go:1708
↓ 6 callersMethodsendNotify
sendNotify sends a notification to kernel. A returned ENOENT is translated to a friendlier error.
fuse.go:1216
↓ 6 callersFunctiontestMountOptionFSNameEvil
(t *testing.T, evil string)
options_test.go:61
↓ 5 callersMethodErrno
Errno returns the the error number (errno) for this error.
fuse.go:306
↓ 5 callersMethodMode
()
fuse_kernel.go:145
↓ 5 callersFunctionMount
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 callersFunctionOpen
(p string)
cmd/fuse-abort/internal/mountinfo/mountinfo.go:14
↓ 5 callersMethodRespondError
RespondError responds to the request with the given error.
fuse.go:236
↓ 5 callersFunctionopenFlags
(flags uint32)
fuse_kernel_linux.go:3
↓ 5 callersMethodstring
()
fuse.go:1862
↓ 4 callersMethodAddFlag
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 callersMethodClose
Close kills the helper and frees resources.
fs/fstestutil/spawntest/spawntest.go:228
↓ 4 callersMethodError
()
fuse.go:360
↓ 4 callersMethodError
()
fs/serve_test.go:126
↓ 4 callersFunctionFSName
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 callersMethodGetxattr
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 callersMethodIsReadOnly
Return true if OpenReadOnly is set.
fuse_kernel.go:216
↓ 4 callersMethodListxattr
Listxattr lists the extended attributes recorded for the node.
fs/serve.go:237
↓ 4 callersMethodMkdir
(ctx context.Context, req *fuse.MkdirRequest)
fs/serve.go:182
↓ 4 callersMethodNext
()
cmd/fuse-abort/internal/mountinfo/mountinfo.go:61
↓ 4 callersMethodRecordedSymlink
RecordedSymlink returns information about the Symlink request. If no request was seen, returns a zero value.
fs/fstestutil/record/record.go:201
↓ 4 callersMethodRecordedWriteData
()
fs/fstestutil/record/record.go:29
↓ 4 callersMethodRunIfNeeded
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 callersMethodServe
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 callersMethodSet
(s string)
fs/fstestutil/spawntest/spawntest.go:78
↓ 4 callersFunctionUnmount
Unmount tries to unmount the filesystem mounted at dir.
unmount.go:4
↓ 4 callersFunctionlineLogger
(wg *sync.WaitGroup, prefix string, ignore func(line string) bool, r io.ReadCloser)
mount.go:14
↓ 4 callersMethodrecordedLockRequest
()
fs/serve_test.go:4506
↓ 3 callersMethodErrnoName
ErrnoName returns the short non-numeric identifier for this errno. For example, "EIO".
fuse.go:366
↓ 3 callersFunctionGetMountInfo
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 callersMethodInvalidateNodeData
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 callersMethodIsReadWrite
Return true if OpenReadWrite is set.
fuse_kernel.go:226
↓ 3 callersMethodIsWriteOnly
Return true if OpenWriteOnly is set.
fuse_kernel.go:221
↓ 3 callersMethodLink
Link creates a new directory entry in the receiver based on an existing Node. Receiver must be a directory.
fs/serve.go:143
↓ 3 callersFunctionLockingPOSIX
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 callersMethodLookup
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 callersMethodMark
()
fs/fstestutil/record/record.go:51
↓ 3 callersMethodMknod
(ctx context.Context, req *fuse.MknodRequest)
fs/serve.go:219
↓ 3 callersFunctionMountedFuncT
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 callersFunctionNew
New returns a new FUSE server ready to serve this kernel FUSE connection. Config may be nil.
fs/serve.go:437
↓ 3 callersMethodRecord
Record that we've seen value. A nil value is indistinguishable from no value recorded.
fs/fstestutil/record/record.go:82
↓ 3 callersMethodRemovexattr
Removexattr removes an extended attribute for the name. If there is no xattr by that name, returns fuse.ErrNoXattr.
fs/serve.go:250
↓ 3 callersMethodSetxattr
Setxattr sets an extended attribute with the given name and value for the node.
fs/serve.go:243
↓ 3 callersFunctionSubtype
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 callersMethodSymlink
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 callersFunctionbenchmark
(helper *spawntest.Helper, conf *benchConfig, size int64)
fs/bench/bench_readwrite_test.go:108
↓ 3 callersMethodcallCloseToUnlock
()
fs/serve_test.go:4598
↓ 3 callersMethodinvalidateNode
(node Node, off int64, size int64)
fs/serve.go:1736
↓ 3 callersMethodnoResponse
()
fuse.go:289
next →1–100 of 768, ranked by callers