package
0.0.0-20180402235330-b7b9ca407fff
Repository: https://github.com/mitchellh/go-fs.git
Documentation: pkg.go.dev

# Functions

DecodeBootSector takes a BlockDevice and decodes the FAT boot sector from it.
No description provided by the author
DecodeDirectoryClusterEntry decodes a single directory entry in the Directory structure.
DecodeDirectoryEntry takes a list of entries, decodes the next full DirectoryEntry, and returns the newly created entry, the remaining entries, and an error, if there was one.
No description provided by the author
DecodeFAT16RootDirectory decodes the FAT16 root directory structure from the device.
FATEntryCount returns the number of entries per fat for the given boot sector.
Formats an fs.BlockDevice with the "super floppy" format according to the given configuration.
New returns a new FileSystem for accessing a previously created FAT filesystem.
No description provided by the author
NewFAT creates a new FAT data structure, properly initialized.
NewFat16RootDirectory creates a new DirectoryCluster that is meant only to be the root directory of a FAT12/FAT16 filesystem.
NewLongDirectoryClusterEntry returns the series of directory cluster entries that need to be written for a long directory entry.
TypeForDevice determines the usable FAT type based solely on size information about the block device.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The size in bytes of a single directory entry.
No description provided by the author
No description provided by the author
No description provided by the author
The first cluster that can really hold user data is always 2.
Mask applied to the ord of the last long entry.
The standard value for "fixed", non-removable media, directly from the FAT specification.

# Structs

No description provided by the author
BootSectorFat16 is the BootSector for FAT12 and FAT16 filesystems.
No description provided by the author
No description provided by the author
Directory implements fs.Directory and is used to interface with a directory on a FAT filesystem.
DirectoryCluster represents a cluster on the disk that contains entries/contents.
DirectoryClusterEntry is a single 32-byte entry that is part of the chain of entries in a directory cluster.
DirectoryEntry implements fs.DirectoryEntry and represents a single file/folder within a directory in a FAT filesystem.
FAT is the actual file allocation table data structure that is stored on disk to describe the various clusters on the disk.
No description provided by the author
FileSystem is the implementation of fs.FileSystem that can read a FAT filesystem.
SuperFloppyConfig is the configuration for various properties of a new super floppy formatted block device.

# Type aliases

No description provided by the author
FATType is a simple enum of the available FAT filesystem types.
No description provided by the author