fileDescription implements vfs.FileDescriptionImpl for fuse. +stateify savable
| 29 | // |
| 30 | // +stateify savable |
| 31 | type 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 | |
| 53 | func (fd *fileDescription) dentry() *kernfs.Dentry { |
| 54 | return fd.vfsfd.Dentry().Impl().(*kernfs.Dentry) |
nothing calls this directly
no outgoing calls
no test coverage detected