disk

package
v0.0.0-...-48cda87 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: UPL-1.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetXfsFilesystem

func GetXfsFilesystem(rdr io.ReaderAt, size int64) (filesystem.FileSystem, error)

Types

type Qcow2Disk

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

func OpenQcow2

func OpenQcow2(path string) (*Qcow2Disk, error)

func (*Qcow2Disk) Close

func (qd *Qcow2Disk) Close() error

func (*Qcow2Disk) GetDisk

func (qd *Qcow2Disk) GetDisk() *disk.Disk

func (*Qcow2Disk) GetFilesystem

func (qd *Qcow2Disk) GetFilesystem(part int) (filesystem.FileSystem, error)

func (*Qcow2Disk) GetPartitionTable

func (qd *Qcow2Disk) GetPartitionTable() (partition.Table, error)

func (*Qcow2Disk) Info

func (qd *Qcow2Disk) Info() string

func (*Qcow2Disk) Read

func (qd *Qcow2Disk) Read(out []byte) (int, error)

func (*Qcow2Disk) ReadAt

func (qd *Qcow2Disk) ReadAt(out []byte, at int64) (int, error)

func (*Qcow2Disk) Seek

func (qd *Qcow2Disk) Seek(offset int64, whence int) (int64, error)

func (*Qcow2Disk) Stat

func (qd *Qcow2Disk) Stat() (fs.FileInfo, error)

func (*Qcow2Disk) Sys

func (qd *Qcow2Disk) Sys() (*os.File, error)

func (*Qcow2Disk) Writable

func (qd *Qcow2Disk) Writable() (backend.WritableFile, error)

func (*Qcow2Disk) WriteAt

func (qd *Qcow2Disk) WriteAt(in []byte, off int64) (int, error)

type XfsFilesystem

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

func (*XfsFilesystem) Chmod

func (fs *XfsFilesystem) Chmod(name string, mode os.FileMode) error

func (*XfsFilesystem) Chown

func (fs *XfsFilesystem) Chown(name string, uid, gid int) error

func (*XfsFilesystem) Close

func (fs *XfsFilesystem) Close() error

func (*XfsFilesystem) Label

func (fs *XfsFilesystem) Label() string
func (fs *XfsFilesystem) Link(oldpath, newpath string) error

func (*XfsFilesystem) Mkdir

func (fs *XfsFilesystem) Mkdir(pathname string) error

func (*XfsFilesystem) Mknod

func (fs *XfsFilesystem) Mknod(pathname string, mode uint32, dev int) error

func (*XfsFilesystem) OpenFile

func (fs *XfsFilesystem) OpenFile(pathname string, flag int) (filesystem.File, error)

func (*XfsFilesystem) ReadDir

func (fs *XfsFilesystem) ReadDir(pathname string) ([]os.FileInfo, error)

func (*XfsFilesystem) Remove

func (fs *XfsFilesystem) Remove(pathname string) error

func (*XfsFilesystem) Rename

func (fs *XfsFilesystem) Rename(oldpath, newpath string) error

func (*XfsFilesystem) SetLabel

func (fs *XfsFilesystem) SetLabel(label string) error
func (fs *XfsFilesystem) Symlink(oldpath, newpath string) error

func (*XfsFilesystem) Type

func (fs *XfsFilesystem) Type() filesystem.Type

Jump to

Keyboard shortcuts

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