fat16

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package fat16 provides utilities to interact with, manipulate and create a FAT16 filesystem on a block device or disk image.

It builds on the fat12 package, which provides all shared BPB types, the FATTable interface, and the complete set of high-level filesystem methods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystem

type FileSystem struct {
	*fat12.FileSystem
}

FileSystem is a FAT16 filesystem. It embeds *fat12.FileSystem to inherit all high-level methods: OpenFile, ReadDir, Mkdir, Remove, Rename, Label, SetLabel, allocateSpace, etc. Only Type() is overridden here.

func Create

func Create(b backend.Storage, size, start, blocksize int64, volumeLabel string, reproducible bool) (*FileSystem, error)

Create creates a FAT16 filesystem on the given backend.

func Read

func Read(b backend.Storage, size, start, blocksize int64) (*FileSystem, error)

Read reads a FAT16 filesystem from the backend. Returns an error if the image is not a valid FAT16 filesystem so that disk.GetFilesystem() can fall through to the next candidate.

func (*FileSystem) Type

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

Type returns filesystem.TypeFat16, overriding fat12.FileSystem.Type().

Jump to

Keyboard shortcuts

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