Documentation ¶
Overview ¶
Package fsutil contains filesystem utilities that can be shared between the sentry and other sandbox components.
Index ¶
Constants ¶
This section is empty.
Variables ¶
UnixDirentMaxSize is the maximum size of unix.Dirent in bytes.
Functions ¶
func ParseDirents ¶
func ParseDirents(buf []byte, handleDirent func(ino uint64, off int64, ftype uint8, name string, reclen uint16) bool)
ParseDirents parses dirents from buf. buf must have been populated by getdents64(2) syscall. It calls the handleDirent callback for each dirent.
func RenameAt ¶
RenameAt is a convenience wrapper to make the renameat(2) syscall. It additionally handles empty names.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.