Documentation
¶
Overview ¶
Package ffs reads the Berkeley Fast File System (FFS).
FFS is the same on-disk format that FreeBSD calls UFS: FFSv1 = UFS1 and FFSv2 = UFS2, shared across FreeBSD, NetBSD and OpenBSD. Rather than duplicate the parser, this package is a thin re-export of github.com/go-filesystems/ufs, which reads (and writes) the format. It exists so callers that think in "FFS" terms have a matching import path.
fs, err := ffs.OpenFile("disk.ffs")
data, err := fs.ReadFile("/etc/rc.conf")
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
FS is an opened FFS/UFS filesystem. It is an alias of the ufs driver's FS.
func Open ¶
Open parses the FFS/UFS superblock from rs (FFSv1/UFS1 or FFSv2/UFS2) and returns a read-only handle. size is the backing image size, or -1 if unknown.
Click to show internal directories.
Click to hide internal directories.
