ext4

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package ext4 creates ext4 filesystem images.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(path string, size int64, opts ...CreateOpt) error

Create creates a new ext4 filesystem image at the given path with the specified size in bytes (minimum 64 MiB). It writes the structures directly without requiring external tools.

Types

type CreateOpt

type CreateOpt func(*createConfig)

CreateOpt configures filesystem creation.

func WithDir

func WithDir(path string, mode fs.FileMode, uid, gid uint32) CreateOpt

WithDir adds a directory to be created in the filesystem with the specified permissions and ownership. Parent directories are created automatically, inheriting the child's permissions.

Jump to

Keyboard shortcuts

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