ext

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2019 License: GPL-2.0, GPL-2.0-or-later Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MagicOffL = 0x438
	MagicOffM = 0x439

	MagicValL = 0x53
	MagicValM = 0xef

	FeatureCompatOff            = 0x45c
	FeatureCompatExt3HasJournal = 0x4

	FeatureIncompatOff            = 0x460
	FeatureIncompatExt2Filetype   = 0x2
	FeatureIncompatExt3Recover    = 0x4
	FeatureIncompatExt3JournalDev = 0x8
	FeatureIncompatExt2MetaBg     = 0x10
	FeatureIncompatExt4Extents    = 0x40
	FeatureIncompatExt464Bit      = 0x80
	FeatureIncompatExt4MMP        = 0x100
	FeatureIncompatExt4FlexBg     = 0x200

	FeatureIncompatExt2Unsupp = (FeatureIncompatExt2Filetype | FeatureIncompatExt2MetaBg) ^ 0xffff
	FeatureIncompatExt3Unsupp = (FeatureIncompatExt2Filetype | FeatureIncompatExt3Recover | FeatureIncompatExt2MetaBg) ^ 0xffff

	FeatureRoCompatOff             = 0x464
	FeatureRoCompatExt2SparseSuper = 0x1
	FeatureRoCompatExt2LargeFile   = 0x2
	FeatureRoCompatExt2BtreeDir    = 0x4
	FeatureRoCompatExt4HugeFile    = 0x8
	FeatureRoCompatExt4GdtCsum     = 0x10
	FeatureRoCompatExt4DirNlink    = 0x20
	FeatureRoCompatExt4ExtraIsize  = 0x40

	FeatureRoCompatExt2Unsupp = (FeatureRoCompatExt2SparseSuper | FeatureRoCompatExt2LargeFile | FeatureRoCompatExt2BtreeDir) ^ 0xffff
	FeatureRoCompatExt3Unsupp = (FeatureRoCompatExt2SparseSuper | FeatureRoCompatExt2LargeFile | FeatureRoCompatExt2BtreeDir) ^ 0xffff
)

Variables

This section is empty.

Functions

func Compat

func Compat(s []byte) (compat uint32, incompat uint32, roCompat uint32)

func Probe

func Probe(s []byte) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL