MCPcopy
hub / github.com/google/gvisor / fileDescription

Struct fileDescription

pkg/sentry/fsimpl/fuse/file.go:31–51  ·  view source on GitHub ↗

fileDescription implements vfs.FileDescriptionImpl for fuse. +stateify savable

Source from the content-addressed store, hash-verified

29//
30// +stateify savable
31type fileDescription struct {
32 vfsfd vfs.FileDescription
33 vfs.FileDescriptionDefaultImpl
34 vfs.DentryMetadataFileDescriptionImpl
35 vfs.LockFD
36
37 // the file handle used in userspace.
38 Fh uint64
39
40 // Nonseekable indicates we cannot perform seek on a file.
41 Nonseekable bool
42
43 // DirectIO suggests that fuse use direct IO operations.
44 DirectIO bool
45
46 // OpenFlag is the flag returned by open.
47 OpenFlag uint32
48
49 // off is the file offset.
50 off atomicbitops.Int64
51}
52
53func (fd *fileDescription) dentry() *kernfs.Dentry {
54 return fd.vfsfd.Dentry().Impl().(*kernfs.Dentry)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected