package
1.5.0
Repository: https://github.com/diskfs/go-diskfs.git
Documentation: pkg.go.dev

# Packages

# Functions

Create creates an ext4 filesystem in a given file or device requires the backend.Storage where to create the filesystem, size is the size of the filesystem in bytes, start is how far in bytes from the beginning of the backend.Storage to create the filesystem, and sectorsize is is the logical sector size to use for creating the filesystem blocksize is the size of the ext4 blocks, and is calculated as sectorsPerBlock * sectorsize.
Read reads a filesystem from a given disk.

# Constants

Ext4MinSize is minimum size for an ext4 filesystem it assumes a single block group with: blocksize = 2 sectors = 1KB 1 block for boot code 1 block for superblock 1 block for block group descriptors 1 block for bock and inode bitmaps and inode table 1 block for data total = 5 blocks.
GB represents one GB.
KB represents one KB.
MB represents one MB.
PB represents one TB.
SectorSize512 is a sector size of 512 bytes, used as the logical size for all ext4 filesystems.
TB represents one TB.
XB represents one Exabyte.

# Structs

Directory represents a single directory in an ext4 filesystem.
File represents a single file in an ext4 filesystem.
FileInfo represents the information for an individual file it fulfills os.FileInfo interface.
FileSystem implememnts the FileSystem interface.

# Type aliases

BlockSize indicates how many sectors are in a block.
SectorSize indicates what the sector size in bytes is.