ext4

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package ext4 provides functions for working with the ext filesystems.

Index

Constants

View Source
const (
	// Magic is the ext magic signature.
	Magic = 0xef53
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SuperBlock

type SuperBlock struct {
	Magic [2]uint8

	Label [0x10]uint8
	// contains filtered or unexported fields
}

SuperBlock represents the ext filesystem super block.

See https://ext4.wiki.kernel.org/index.php/Ext4_Disk_Layout#The_Super_Block for the reference.

func (*SuperBlock) Encrypted

func (sb *SuperBlock) Encrypted() bool

Encrypted implements the SuperBlocker interface.

func (*SuperBlock) Is

func (sb *SuperBlock) Is() bool

Is implements the SuperBlocker interface.

func (*SuperBlock) Offset

func (sb *SuperBlock) Offset() int64

Offset implements the SuperBlocker interface.

func (*SuperBlock) Type

func (sb *SuperBlock) Type() string

Type implements the SuperBlocker interface.

Jump to

Keyboard shortcuts

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