fat16

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 8 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 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