Documentation
¶
Overview ¶
Package fat implements a FAT32 create engine behind image.Filesystem.
FAT is a DOS filesystem: it has no owners, permissions, symlinks or hard links, so those tree attributes are dropped when writing (symlinks are an error). Its primary use in fsforge is EFI System Partitions and boot/data volumes. Long names are stored with VFAT LFN entries plus a generated 8.3 short name; the layout is deterministic for reproducible images.
Only FAT32 is implemented (the variant that matters for ESPs); FAT12/16 can be added later behind the same engine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FAT ¶
type FAT struct {
// contains filtered or unexported fields
}
FAT is the FAT12/16/32 create engine, implementing image.Filesystem. The FAT width is chosen from the volume size unless forced with WithFATBits. It writes ESP/boot/data volumes (long file names with generated 8.3 aliases) whose images pass fsck.fat. Being a DOS-lineage format it has no owners, permissions or links. Open is not yet supported (mutation rebuilds).