Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/hanwen/go-fuse
/ functions
Functions
1,911 in github.com/hanwen/go-fuse
⨍
Functions
1,911
◇
Types & classes
355
↓ 183 callers
Method
Close
Close releases resources related to this directory stream.
fs/api.go:491
↓ 81 callers
Method
Ok
()
fuse/misc.go:33
↓ 76 callers
Method
WriteFile
WriteFile is a utility wrapper for os.WriteFile, aborting the test if it fails.
fuse/test/loopback_test.go:57
↓ 74 callers
Method
Open
(ctx context.Context, flags uint32)
fs/api.go:368
↓ 67 callers
Function
ToErrno
ToErrno exhumes the syscall.Errno error from wrapped error values.
fs/constants.go:18
↓ 57 callers
Method
Inode
Inode and SetInode are basic getter/setters. They are called by the FileSystemConnector. You get them for free by embedding the result of NewDefaultN
fuse/nodefs/api.go:28
↓ 55 callers
Function
VerboseTest
VerboseTest returns true if the testing framework is run with -v.
internal/testutil/verbose.go:14
↓ 53 callers
Function
ToStatus
ToStatus extracts an errno number from Go error objects. If it fails, it logs an error and returns ENOSYS.
fuse/misc.go:39
↓ 52 callers
Function
errnoToStatus
(errno syscall.Errno)
fs/bridge.go:19
↓ 49 callers
Method
Cleanup
Unmount and del.
fuse/test/loopback_test.go:122
↓ 46 callers
Method
AddChild
AddChild adds a child to this node. If overwrite is false, fail if the destination already exists.
fs/inode.go:502
↓ 43 callers
Method
Unmount
Unmount calls fusermount -u on the mount. This has the effect of shutting down the filesystem. After the Server is unmounted, it should be discarded.
fuse/server.go:121
↓ 40 callers
Method
NewPersistentInode
NewPersistentInode returns an Inode whose lifetime is not in control of the kernel. When the kernel is short on memory, it will forget cached file sy
fs/inode.go:354
↓ 38 callers
Function
NewTestCase
Create and mount filesystem.
fuse/test/loopback_test.go:68
↓ 38 callers
Method
Serve
Serve initiates the FUSE loop. Normally, callers should run Serve() and wait for it to exit, but tests will want to run this in a goroutine. Each fil
fuse/server.go:450
↓ 38 callers
Method
inode
(id uint64, fh uint64)
fs/bridge.go:348
↓ 37 callers
Method
Wait
Wait waits for the serve loop to exit. This should only be called after Serve has been called, or it will hang indefinitely.
fuse/server.go:488
↓ 37 callers
Method
inData
()
fuse/request.go:204
↓ 35 callers
Method
toInode
(nodeid uint64)
fuse/nodefs/fsconnector.go:119
↓ 33 callers
Method
WaitMount
WaitMount waits for the first request to be served. Use this to avoid racing between accessing the (empty or not yet mounted) mountpoint, and the OS t
fuse/server.go:947
↓ 32 callers
Function
Mount
Mount mounts the given NodeFS on the directory, and starts serving requests. This is a convenience wrapper around NewNodeFS and fuse.NewServer. If ni
fs/mount.go:15
↓ 32 callers
Method
inHeader
()
fuse/request.go:74
↓ 30 callers
Method
Unmount
UnmountNode unmounts the node filesystem with the given root.
fuse/pathfs/pathfs.go:94
↓ 30 callers
Method
outData
()
fuse/request.go:259
↓ 30 callers
Function
testMount
(t *testing.T, root InodeEmbedder, opts *Options)
fs/mem_test.go:24
↓ 29 callers
Method
Done
Done() is called after sending the data to the kernel.
fuse/api.go:154
↓ 29 callers
Method
String
The String method is for debug printing.
fuse/nodefs/api.go:141
↓ 28 callers
Method
Size
Size returns how many bytes this return value takes at most.
fuse/api.go:151
↓ 27 callers
Method
GetPath
GetPath returns the path relative to the mount governing this inode. It returns nil for mount if the file was deleted or the filesystem unmounted.
fuse/pathfs/pathfs.go:268
↓ 26 callers
Function
newTestCase
newTestCase creates the directories `orig` and `mnt` inside a temporary directory and mounts a loopback filesystem, backed by `orig`, on `mnt`.
fs/simple_test.go:71
↓ 25 callers
Method
Mkdir
(ctx context.Context, name string, mode uint32, out *fuse.EntryOut)
fs/api.go:572
↓ 25 callers
Method
NewInode
NewInode returns an inode for the given InodeEmbedder. The mode should be standard mode argument (eg. S_IFDIR). The inode number in id.Ino argument is
fs/inode.go:372
↓ 25 callers
Method
locked
()
fuse/pathfs/locking.go:45
↓ 25 callers
Method
path
path returns the absolute path to the node
fs/loopback.go:123
↓ 24 callers
Method
GetPath
(relPath string)
fuse/pathfs/loopback.go:57
↓ 24 callers
Method
Open
Open opens a file, and returns a File which is associated with a file handle. It is OK to return (nil, OK) here. In that case, the Node should impleme
fuse/nodefs/api.go:98
↓ 24 callers
Method
prefixed
(n string)
fuse/pathfs/prefixfs.go:30
↓ 23 callers
Method
Mkdir
Mkdir should create the directory Inode, add it to the receiver's Inode, and return it
fuse/nodefs/api.go:76
↓ 23 callers
Function
flagString
(names *flagNames, fl int64, def string)
fuse/print.go:143
↓ 22 callers
Method
set
set associates flag value with name.
fuse/print.go:131
↓ 21 callers
Method
FromStat
(s *syscall.Stat_t)
fuse/attr_unix.go:13
↓ 21 callers
Method
Inode
()
fuse/pathfs/pathfs.go:249
↓ 21 callers
Method
Mode
Mode returns the filetype
fs/inode.go:147
↓ 21 callers
Function
MountRoot
MountRoot is like Mount but uses default fuse mount options.
fuse/nodefs/fuse.go:23
↓ 21 callers
Function
NewDefaultNode
NewDefaultNode returns an implementation of Node that returns ENOSYS for all operations.
fuse/nodefs/defaultnode.go:15
↓ 20 callers
Method
Read
(ctx context.Context, f FileHandle, dest []byte, off int64)
fs/api.go:377
↓ 20 callers
Method
Write
(ctx context.Context, f FileHandle, data []byte, off int64)
fs/api.go:384
↓ 19 callers
Method
EmbeddedInode
EmbeddedInode returns a pointer to the embedded inode.
fs/api.go:278
↓ 19 callers
Method
GetAttr
Attributes
fuse/nodefs/api.go:121
↓ 18 callers
Method
Add
(name string, dt time.Duration)
fuse/server.go:102
↓ 18 callers
Function
ReadResultData
(b []byte)
fuse/read.go:29
↓ 17 callers
Method
Unlink
(ctx context.Context, name string)
fs/api.go:605
↓ 16 callers
Method
Create
(ctx context.Context, name string, flags uint32, mode uint32, out *fuse.EntryOut)
fs/api.go:598
↓ 16 callers
Method
GetChild
GetChild returns a child node with the given name, or nil if the directory has no child by that name.
fs/inode.go:494
↓ 16 callers
Method
NewChild
NewChild adds a new child inode to this inode.
fuse/nodefs/inode.go:148
↓ 16 callers
Function
NewServer
NewServer creates a FUSE server and attaches ("mounts") it to the `mountPoint` directory. See the "Mount styles" section in the package documentation
fuse/server.go:164
↓ 16 callers
Method
Node
Node returns the file-system specific node.
fuse/nodefs/inode.go:125
↓ 15 callers
Method
Parse
Parse reads an entry from getdents(2) buffer. It returns the number of bytes consumed.
fuse/direntry.go:39
↓ 15 callers
Method
Register
Register stores "obj" and returns a unique (NodeId, generation) tuple.
fuse/nodefs/handle.go:23
↓ 15 callers
Method
Root
Root returns the root node for the path filesystem.
fuse/pathfs/pathfs.go:212
↓ 14 callers
Method
Handle
Handle gets the object's NodeId.
fuse/nodefs/handle.go:32
↓ 14 callers
Function
NewOptions
NewOptions generates FUSE options that correspond to libfuse's defaults.
fuse/nodefs/fsconnector.go:53
↓ 14 callers
Function
NewPathNodeFs
NewPathNodeFs returns a file system that translates from inodes to path names.
fuse/pathfs/pathfs.go:193
↓ 13 callers
Method
Clean
()
newunionfs/unionfs_test.go:30
↓ 13 callers
Method
KernelSettings
KernelSettings returns the Init message from the kernel, so filesystems can adapt to availability of features of the kernel driver. The message should
fuse/server.go:91
↓ 13 callers
Method
Read
(file File, dest []byte, off int64, context *fuse.Context)
fuse/nodefs/api.go:100
↓ 13 callers
Method
Rename
(ctx context.Context, name string, newParent InodeEmbedder, newName string, flags uint32)
fs/api.go:618
↓ 13 callers
Method
root
()
newunionfs/unionfs.go:102
↓ 13 callers
Function
unlockNodes
unlockNodes releases locks taken by lockNodes.
fs/inode.go:247
↓ 12 callers
Function
NewLoopbackFileSystem
A FUSE filesystem that shunts all request to an underlying file system. Its main purpose is to provide test coverage without having to build a synthe
fuse/pathfs/loopback.go:28
↓ 12 callers
Method
RmChild
RmChild removes an inode by name, and returns it. It returns nil if child does not exist.
fuse/nodefs/inode.go:187
↓ 12 callers
Method
Truncate
(file File, size uint64, context *fuse.Context)
fuse/nodefs/api.go:124
↓ 12 callers
Method
filename
()
fuse/request.go:263
↓ 12 callers
Method
get
get returns the most recent parent or nil if there is no parent at all.
fs/inode_parents.go:43
↓ 12 callers
Method
getOpenedFile
(h uint64)
fuse/nodefs/fsmount.go:83
↓ 12 callers
Function
newFlagNames
newFlagNames creates flagNames from flag->name map.
fuse/print.go:122
↓ 12 callers
Method
writeOrig
writeOrig writes a file into the backing directory of the loopback mount
fs/simple_test.go:44
↓ 11 callers
Function
NewLoopbackDirStream
NewLoopbackDirStream opens a directory for reading as a DirStream
fs/dirstream.go:58
↓ 11 callers
Method
Path
Path returns a path string to the inode relative to `root`. Pass nil to walk the hierarchy as far up as possible. If you set `root`, Path() warns if
fs/inode.go:288
↓ 11 callers
Method
Symlink
Symlink should create a child inode to the receiver, and return it.
fuse/nodefs/api.go:82
↓ 11 callers
Function
ToStatT
(f os.FileInfo)
fuse/attr.go:60
↓ 10 callers
Method
Getxattr
(ctx context.Context, attr string, dest []byte)
fs/api.go:336
↓ 10 callers
Method
IsDir
IsDir reports whether the FileInfo describes a directory.
fuse/attr.go:19
↓ 10 callers
Function
NewLoopbackRoot
NewLoopbackRoot returns a root node for a loopback file system whose root is at the given root. This node implements all NodeXxxxer operations availab
fs/loopback.go:534
↓ 10 callers
Method
Node
Node looks up the Inode that corresponds to the given path name, or returns nil if not found.
fuse/pathfs/pathfs.go:120
↓ 10 callers
Method
ReadDir
(cancel <-chan struct{}, input *ReadIn, out *DirEntryList)
fuse/api.go:469
↓ 10 callers
Function
newTestCase
(t *testing.T, populate bool)
newunionfs/unionfs_test.go:37
↓ 9 callers
Method
Chmod
(file File, perms uint32, context *fuse.Context)
fuse/nodefs/api.go:122
↓ 9 callers
Method
EmbeddedInode
()
fs/inode.go:119
↓ 9 callers
Method
Mount
Mount mounts a another node filesystem with the given root on the path. The last component of the path should not exist yet.
fuse/pathfs/pathfs.go:56
↓ 9 callers
Method
SetTimes
(access *time.Time, mod *time.Time, chstatus *time.Time)
fuse/attr.go:33
↓ 9 callers
Method
Write
(file File, data []byte, off int64, context *fuse.Context)
fuse/nodefs/api.go:101
↓ 8 callers
Method
Forget
Forget decrements the reference counter for "handle" by "count" and drops the object if the refcount reaches zero. Returns a boolean whether the objec
fuse/nodefs/handle.go:30
↓ 8 callers
Method
GetAttr
Attributes. This function is the main entry point, through which FUSE discovers which files and directories exist. If the filesystem wants to implem
fuse/pathfs/api.go:38
↓ 8 callers
Method
IsDir
IsDir returns true if this is a directory.
fuse/nodefs/inode.go:143
↓ 8 callers
Function
NewNodeFS
NewNodeFS creates a node based filesystem based on the InodeEmbedder instance for the root of the tree. If nil is given as opts, default settings are
fs/bridge.go:291
↓ 8 callers
Method
Next
Next retrieves the next entry. It is only called if HasNext has previously returned true. The Errno return may be used to indicate I/O errors
fs/api.go:487
↓ 8 callers
Method
Rmdir
(ctx context.Context, name string)
fs/api.go:611
↓ 8 callers
Method
StableAttr
StableAttr returns the (Ino, Gen) tuple for this node.
fs/inode.go:142
↓ 8 callers
Method
Statfs
(ctx context.Context, out *fuse.StatfsOut)
fs/api.go:286
next →
1–100 of 1,911, ranked by callers