Versions in this module Expand all Collapse all v1 v1.5.0 Dec 9, 2024 Changes in this version type FileSystem + func (fs *FileSystem) Chmod(name string, mode os.FileMode) error + func (fs *FileSystem) Chown(name string, uid, gid int) error + func (fs *FileSystem) Link(oldpath, newpath string) error + func (fs *FileSystem) Mknod(pathname string, mode uint32, dev int) error + func (fs *FileSystem) Remove(p string) error + func (fs *FileSystem) Rename(oldpath, newpath string) error + func (fs *FileSystem) Symlink(oldpath, newpath string) error v1.4.2 Sep 26, 2024 v1.4.1 Aug 2, 2024 Changes in this version + const BlockGroupFactor + const BootSectorSize + const DefaultInodeRatio + const DefaultInodeSize + const DefaultReservedBlocksPercent + const DefaultVolumeName + const Ext4MinSize + const GB + const HashVersionHalfMD4 + const HashVersionHalfMD4Unsigned + const HashVersionLegacy + const HashVersionLegacyUnsigned + const HashVersionSIP + const HashVersionTEA + const HashVersionTEAUnsigned + const KB + const MB + const PB + const SectorSize512 + const SuperblockSize + const TB + const XB + func TEATransform(buf [4]uint32, in []uint32) [4]uint32 + type BlockSize uint8 + type Directory struct + type FeatureOpt func(*featureFlags) + func WithFeatureBTreeDirectory(enable bool) FeatureOpt + func WithFeatureBigalloc(enable bool) FeatureOpt + func WithFeatureCompression(enable bool) FeatureOpt + func WithFeatureDataInDirectoryEntries(enable bool) FeatureOpt + func WithFeatureDataInInode(enable bool) FeatureOpt + func WithFeatureDirectoryEntriesRecordFileType(enable bool) FeatureOpt + func WithFeatureDirectoryIndices(enable bool) FeatureOpt + func WithFeatureDirectoryPreAllocate(enable bool) FeatureOpt + func WithFeatureEncryptInodes(enable bool) FeatureOpt + func WithFeatureExcludeBitmap(enable bool) FeatureOpt + func WithFeatureExcludeInode(enable bool) FeatureOpt + func WithFeatureExtendedAttributeInodes(enable bool) FeatureOpt + func WithFeatureExtendedAttributes(enable bool) FeatureOpt + func WithFeatureExtents(enable bool) FeatureOpt + func WithFeatureFS64Bit(enable bool) FeatureOpt + func WithFeatureFlexBlockGroups(enable bool) FeatureOpt + func WithFeatureGDTChecksum(enable bool) FeatureOpt + func WithFeatureHasJournal(enable bool) FeatureOpt + func WithFeatureHugeFile(enable bool) FeatureOpt + func WithFeatureImagicInodes(enable bool) FeatureOpt + func WithFeatureLargeDirectory(enable bool) FeatureOpt + func WithFeatureLargeFile(enable bool) FeatureOpt + func WithFeatureLargeInodes(enable bool) FeatureOpt + func WithFeatureLargeSubdirectoryCount(enable bool) FeatureOpt + func WithFeatureLazyBlockGroup(enable bool) FeatureOpt + func WithFeatureMetaBlockGroups(enable bool) FeatureOpt + func WithFeatureMetadataChecksumSeedInSuperblock(enable bool) FeatureOpt + func WithFeatureMetadataChecksums(enable bool) FeatureOpt + func WithFeatureMultipleMountProtection(enable bool) FeatureOpt + func WithFeatureProjectQuotas(enable bool) FeatureOpt + func WithFeatureQuota(enable bool) FeatureOpt + func WithFeatureReadOnly(enable bool) FeatureOpt + func WithFeatureRecoveryNeeded(enable bool) FeatureOpt + func WithFeatureReplicas(enable bool) FeatureOpt + func WithFeatureReservedGDTBlocksForExpansion(enable bool) FeatureOpt + func WithFeatureSeparateJournalDevice(enable bool) FeatureOpt + func WithFeatureSnapshot(enable bool) FeatureOpt + func WithFeatureSparseSuperBlockV2(enable bool) FeatureOpt + func WithFeatureSparseSuperblock(enable bool) FeatureOpt + type File struct + func (fl *File) Close() error + func (fl *File) Read(b []byte) (int, error) + func (fl *File) Seek(offset int64, whence int) (int64, error) + func (fl *File) Write(b []byte) (int, error) + type FileInfo struct + func (fi *FileInfo) IsDir() bool + func (fi *FileInfo) ModTime() time.Time + func (fi *FileInfo) Mode() os.FileMode + func (fi *FileInfo) Name() string + func (fi *FileInfo) Size() int64 + func (fi *FileInfo) Sys() interface{} + type FileSystem struct + func Create(f util.File, size, start, sectorsize int64, p *Params) (*FileSystem, error) + func Read(file util.File, size, start, sectorsize int64) (*FileSystem, error) + func (fs *FileSystem) Equal(a *FileSystem) bool + func (fs *FileSystem) Label() string + func (fs *FileSystem) Mkdir(p string) error + func (fs *FileSystem) OpenFile(p string, flag int) (filesystem.File, error) + func (fs *FileSystem) ReadDir(p string) ([]os.FileInfo, error) + func (fs *FileSystem) Rm(p string) error + func (fs *FileSystem) SetLabel(label string) error + func (fs *FileSystem) Stat(p string) (iofs.FileInfo, error) + func (fs *FileSystem) Truncate(p string, size int64) error + func (fs *FileSystem) Type() filesystem.Type + type MountOpt func(*mountOptions) + func WithDefaultMountOptionBlockValidity(enable bool) MountOpt + func WithDefaultMountOptionDisableDelayedAllocation(enable bool) MountOpt + func WithDefaultMountOptionDisableWriteFlushes(enable bool) MountOpt + func WithDefaultMountOptionDiscardSupport(enable bool) MountOpt + func WithDefaultMountOptionGIDFromDirectory(enable bool) MountOpt + func WithDefaultMountOptionJournalModeData(enable bool) MountOpt + func WithDefaultMountOptionJournalModeOrdered(enable bool) MountOpt + func WithDefaultMountOptionJournalModeWriteback(enable bool) MountOpt + func WithDefaultMountOptionPOSIXACLs(enable bool) MountOpt + func WithDefaultMountOptionPrintDebuggingInfo(enable bool) MountOpt + func WithDefaultMountOptionUID16Bit(enable bool) MountOpt + func WithDefaultMountOptionUserspaceXattrs(enable bool) MountOpt + type Params struct + BlocksPerGroup uint32 + Checksum bool + ClusterSize int64 + DefaultMountOpts []MountOpt + Features []FeatureOpt + InodeCount uint32 + InodeRatio int64 + JournalDevice string + LogFlexBlockGroups int + ReservedBlocksPercent uint8 + SectorsPerBlock uint8 + SparseSuperVersion uint8 + UUID *uuid.UUID + VolumeName string + type SectorSize uint16