ext

package module
v0.0.0-...-49170b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

README

go-ext

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(r io.ReaderAt) (disklayout.ExtType, error)

Types

type FileSystem

type FileSystem struct {
	// contains filtered or unexported fields
}

FileSystem is implemented io/fs interface

func NewFS

func NewFS(r io.ReaderAt) (*FileSystem, error)

NewFS is created io/fs.FS for ext4 filesystem

func (*FileSystem) Open

func (f *FileSystem) Open(name string) (fs.File, error)

func (*FileSystem) ReadDir

func (f *FileSystem) ReadDir(path string) ([]fs.DirEntry, error)

func (*FileSystem) ReadDirInfo

func (f *FileSystem) ReadDirInfo(name string) (fs.FileInfo, error)

func (*FileSystem) Stat

func (f *FileSystem) Stat(name string) (fs.FileInfo, error)

func (*FileSystem) SuperBlock

func (f *FileSystem) SuperBlock() disklayout.SuperBlock

type Statx

type Statx struct {
	Mask      uint32
	Blksize   uint32
	Nlink     uint32
	UID       uint32
	GID       uint32
	Mode      uint16
	Ino       uint64
	Size      uint64
	Blocks    uint64
	Atime     time.Time
	Ctime     time.Time
	Mtime     time.Time
	RdevMajor uint32
	RdevMinor uint32
	DevMajor  uint32
	DevMinor  uint32
}

Directories

Path Synopsis
Package errno holds errno codes for linux
Package errno holds errno codes for linux

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL