Documentation ¶
Overview ¶
Package posixtest file systems for generic posix conformance.
Index ¶
- Variables
- func AppendWrite(t *testing.T, mnt string)
- func DirSeek(t *testing.T, mnt string)
- func DirectIO(t *testing.T, mnt string)
- func Fallocate(t *testing.T, mnt string)
- func FcntlFlockLocksFile(t *testing.T, mnt string)
- func FcntlFlockSetLk(t *testing.T, mnt string)
- func FdLeak(t *testing.T, mnt string)
- func FileBasic(t *testing.T, mnt string)
- func FstatDeleted(t *testing.T, mnt string)
- func Link(t *testing.T, mnt string)
- func LinkUnlinkRename(t *testing.T, mnt string)
- func LseekEnxioCheck(t *testing.T, mnt string)
- func LseekHoleSeeksToEOF(t *testing.T, mnt string)
- func MkdirRmdir(t *testing.T, mnt string)
- func NlinkZero(t *testing.T, mnt string)
- func OpenAt(t *testing.T, mnt string)
- func ParallelFileOpen(t *testing.T, mnt string)
- func ReadDir(t *testing.T, mnt string)
- func ReadDirConsistency(t *testing.T, mnt string)
- func RenameOpenDir(t *testing.T, mnt string)
- func RenameOverwrite(t *testing.T, mnt string, destExists bool)
- func RenameOverwriteDestExist(t *testing.T, mnt string)
- func RenameOverwriteDestNoExist(t *testing.T, mnt string)
- func SetattrSymlink(t *testing.T, mnt string)
- func SymlinkReadlink(t *testing.T, mnt string)
- func TruncateFile(t *testing.T, mnt string)
- func TruncateNoFile(t *testing.T, mnt string)
- func XAttr(t *testing.T, mntDir string)
Constants ¶
This section is empty.
Variables ¶
var All = map[string]func(*testing.T, string){ "AppendWrite": AppendWrite, "SymlinkReadlink": SymlinkReadlink, "FileBasic": FileBasic, "TruncateFile": TruncateFile, "TruncateNoFile": TruncateNoFile, "FdLeak": FdLeak, "MkdirRmdir": MkdirRmdir, "NlinkZero": NlinkZero, "FstatDeleted": FstatDeleted, "ParallelFileOpen": ParallelFileOpen, "Link": Link, "LinkUnlinkRename": LinkUnlinkRename, "LseekHoleSeeksToEOF": LseekHoleSeeksToEOF, "LseekEnxioCheck": LseekEnxioCheck, "RenameOverwriteDestNoExist": RenameOverwriteDestNoExist, "RenameOverwriteDestExist": RenameOverwriteDestExist, "RenameOpenDir": RenameOpenDir, "ReadDir": ReadDir, "ReadDirConsistency": ReadDirConsistency, "DirectIO": DirectIO, "OpenAt": OpenAt, "Fallocate": Fallocate, "DirSeek": DirSeek, "FcntlFlockSetLk": FcntlFlockSetLk, "FcntlFlockLocksFile": FcntlFlockLocksFile, "SetattrSymlink": SetattrSymlink, "XAttr": XAttr, }
All holds a map of all test functions
Functions ¶
func AppendWrite ¶ added in v2.0.3
test open with O_APPEND
func DirSeek ¶ added in v2.1.0
DirSeek tests that seeking on a directory works for https://github.com/hanwen/go-fuse/issues/344 .
Go port of xfstests generic/257.
Hint: $ go test ./fs -run TestPosix/DirSeek -v
func FcntlFlockLocksFile ¶ added in v2.3.0
func FcntlFlockSetLk ¶ added in v2.3.0
func FstatDeleted ¶ added in v2.0.3
FstatDeleted is similar to NlinkZero, but Fstat()s multiple deleted files in random order and checks that the results match an earlier Stat().
Excercises the fd-finding logic in rawBridge.GetAttr.
func LinkUnlinkRename ¶ added in v2.0.3
LinkUnlinkRename implements rename with a link/unlink sequence
func LseekEnxioCheck ¶ added in v2.4.1
func LseekHoleSeeksToEOF ¶ added in v2.3.0
func MkdirRmdir ¶
func OpenAt ¶ added in v2.0.3
OpenAt tests syscall.Openat().
Hint: $ go test ./fs -run TestPosix/OpenAt -v
func ParallelFileOpen ¶
func ReadDir ¶
ReadDir creates 110 files one by one, checking that we get the expected entries after each file creation.
func ReadDirConsistency ¶ added in v2.6.0
Creates files, read them back using readdir
func RenameOpenDir ¶ added in v2.0.3
func SetattrSymlink ¶ added in v2.6.0
func SymlinkReadlink ¶
SymlinkReadlink tests basic symlink functionality
func TruncateFile ¶
func TruncateNoFile ¶
Types ¶
This section is empty.