hfsplus

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: MIT, MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package hfsplus reads HFS+ volumes ("Mac OS Extended", signatures "H+" and the case-sensitive "HX"): the filesystem every classic macOS disk image and DMG carries. Read-only: volume header, catalog B-tree, extents-overflow lookup and fork reads.

The B-tree field offsets were verified against images written by hdiutil (UDZO/UDBZ/ULMO/ULFO/UDCO/UDRO, GPT/MBR/APM/no-partition layouts); see hfsplus_test.go for the differential checks against mounted volumes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Volume

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

Volume is an opened HFS+ volume.

func Open

func Open(ra io.ReaderAt, start, size int64) (*Volume, error)

Open reads the volume header at start and builds the catalog index. The volume occupies [start, start+size) of ra.

func (*Volume) Close

func (v *Volume) Close() error

func (*Volume) Open

func (v *Volume) Open(name string) (fs.File, error)

func (*Volume) ReadDir

func (v *Volume) ReadDir(name string) ([]fs.DirEntry, error)
func (v *Volume) Readlink(name string) (string, error)

func (*Volume) Stat

func (v *Volume) Stat(name string) (fs.FileInfo, error)

Stat has lstat semantics: a symlink reports itself, not its target.

Jump to

Keyboard shortcuts

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