fsinfo

package
v0.0.0-...-bbc9ce3 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package fsinfo describes the FAT32-exclusive FSInfo structure

Index

Constants

View Source
const (

	// UnknownFlag describes a value (such as the next free cluster) which is not known.
	UnknownFlag = 0xFFFFFFFF
)

Variables

This section is empty.

Functions

func ReadHints

func ReadHints(d *thinio.Conductor, offset int64) (freeCount, nextFree uint32, err error)

ReadHints reads FS Info from the device (at the offset) and returns the freeCount of clusters and the nextFree cluster (if they are known). Otherwise, returns an error.

func WriteFreeCount

func WriteFreeCount(d *thinio.Conductor, offset int64, freeCount uint32) error

WriteFreeCount takes the offset of the FS Info structure and updates the on-disk value of the "free cluster count".

func WriteNextFree

func WriteNextFree(d *thinio.Conductor, offset int64, nextFree uint32) error

WriteNextFree takes the offset of the FS Info structure and updates the on-disk value of the "next free cluster".

Types

This section is empty.

Jump to

Keyboard shortcuts

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