squashfs

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package squashfs probes Squash filesystems.

Index

Constants

View Source
const SUPERBLOCK_SIZE = 96

SUPERBLOCK_SIZE is the size of the SuperBlock struct.

Variables

This section is empty.

Functions

This section is empty.

Types

type Probe

type Probe struct{}

Probe for the filesystem.

func (*Probe) Magic

func (p *Probe) Magic() []*magic.Magic

Magic returns the magic value for the filesystem.

func (*Probe) Name

func (p *Probe) Name() string

Name returns the name of the filesystem.

func (*Probe) Probe

func (p *Probe) Probe(r probe.Reader, _ magic.Magic) (*probe.Result, error)

Probe runs the further inspection and returns the result if successful.

type SuperBlock

type SuperBlock []byte

SuperBlock is a byte slice representing the superblock.h C header.

func (SuperBlock) Get_block_log

func (s SuperBlock) Get_block_log() uint16

Get_block_log returns block_log.

func (SuperBlock) Get_block_size

func (s SuperBlock) Get_block_size() uint32

Get_block_size returns block_size.

func (SuperBlock) Get_bytes_used

func (s SuperBlock) Get_bytes_used() uint64

Get_bytes_used returns bytes_used.

func (SuperBlock) Get_compressor

func (s SuperBlock) Get_compressor() uint16

Get_compressor returns compressor.

func (SuperBlock) Get_dir_table

func (s SuperBlock) Get_dir_table() uint64

Get_dir_table returns dir_table.

func (SuperBlock) Get_export_table

func (s SuperBlock) Get_export_table() uint64

Get_export_table returns export_table.

func (SuperBlock) Get_flags

func (s SuperBlock) Get_flags() uint16

Get_flags returns flags.

func (SuperBlock) Get_frag_count

func (s SuperBlock) Get_frag_count() uint32

Get_frag_count returns frag_count.

func (SuperBlock) Get_frag_table

func (s SuperBlock) Get_frag_table() uint64

Get_frag_table returns frag_table.

func (SuperBlock) Get_id_count

func (s SuperBlock) Get_id_count() uint16

Get_id_count returns id_count.

func (SuperBlock) Get_id_table

func (s SuperBlock) Get_id_table() uint64

Get_id_table returns id_table.

func (SuperBlock) Get_inode_count

func (s SuperBlock) Get_inode_count() uint32

Get_inode_count returns inode_count.

func (SuperBlock) Get_inode_table

func (s SuperBlock) Get_inode_table() uint64

Get_inode_table returns inode_table.

func (SuperBlock) Get_magic

func (s SuperBlock) Get_magic() uint32

Get_magic returns magic.

func (SuperBlock) Get_mod_time

func (s SuperBlock) Get_mod_time() uint32

Get_mod_time returns mod_time.

func (SuperBlock) Get_root_inode

func (s SuperBlock) Get_root_inode() uint64

Get_root_inode returns root_inode.

func (SuperBlock) Get_version_major

func (s SuperBlock) Get_version_major() uint16

Get_version_major returns version_major.

func (SuperBlock) Get_version_minor

func (s SuperBlock) Get_version_minor() uint16

Get_version_minor returns version_minor.

func (SuperBlock) Get_xattr_table

func (s SuperBlock) Get_xattr_table() uint64

Get_xattr_table returns xattr_table.

func (SuperBlock) Put_block_log

func (s SuperBlock) Put_block_log(v uint16)

Put_block_log sets block_log.

func (SuperBlock) Put_block_size

func (s SuperBlock) Put_block_size(v uint32)

Put_block_size sets block_size.

func (SuperBlock) Put_bytes_used

func (s SuperBlock) Put_bytes_used(v uint64)

Put_bytes_used sets bytes_used.

func (SuperBlock) Put_compressor

func (s SuperBlock) Put_compressor(v uint16)

Put_compressor sets compressor.

func (SuperBlock) Put_dir_table

func (s SuperBlock) Put_dir_table(v uint64)

Put_dir_table sets dir_table.

func (SuperBlock) Put_export_table

func (s SuperBlock) Put_export_table(v uint64)

Put_export_table sets export_table.

func (SuperBlock) Put_flags

func (s SuperBlock) Put_flags(v uint16)

Put_flags sets flags.

func (SuperBlock) Put_frag_count

func (s SuperBlock) Put_frag_count(v uint32)

Put_frag_count sets frag_count.

func (SuperBlock) Put_frag_table

func (s SuperBlock) Put_frag_table(v uint64)

Put_frag_table sets frag_table.

func (SuperBlock) Put_id_count

func (s SuperBlock) Put_id_count(v uint16)

Put_id_count sets id_count.

func (SuperBlock) Put_id_table

func (s SuperBlock) Put_id_table(v uint64)

Put_id_table sets id_table.

func (SuperBlock) Put_inode_count

func (s SuperBlock) Put_inode_count(v uint32)

Put_inode_count sets inode_count.

func (SuperBlock) Put_inode_table

func (s SuperBlock) Put_inode_table(v uint64)

Put_inode_table sets inode_table.

func (SuperBlock) Put_magic

func (s SuperBlock) Put_magic(v uint32)

Put_magic sets magic.

func (SuperBlock) Put_mod_time

func (s SuperBlock) Put_mod_time(v uint32)

Put_mod_time sets mod_time.

func (SuperBlock) Put_root_inode

func (s SuperBlock) Put_root_inode(v uint64)

Put_root_inode sets root_inode.

func (SuperBlock) Put_version_major

func (s SuperBlock) Put_version_major(v uint16)

Put_version_major sets version_major.

func (SuperBlock) Put_version_minor

func (s SuperBlock) Put_version_minor(v uint16)

Put_version_minor sets version_minor.

func (SuperBlock) Put_xattr_table

func (s SuperBlock) Put_xattr_table(v uint64)

Put_xattr_table sets xattr_table.

Jump to

Keyboard shortcuts

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