fxattrs

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FS_IOC_FSGETXATTR = 0x801c581f
	FS_IOC_FSSETXATTR = 0x401c5820
)

Variables

This section is empty.

Functions

func GetProjectID

func GetProjectID(file *os.File) (uint32, error)

func Set

func Set(file *os.File, attrs *FSXAttrs) error

func SetProjectID

func SetProjectID(file *os.File, projectID uint32) error

Types

type FSXAttrFlags

type FSXAttrFlags uint32
const (
	FlagRealtime          FSXAttrFlags = 0x00000001
	FlagPreallocated      FSXAttrFlags = 0x00000002
	FlagImmutable         FSXAttrFlags = 0x00000008
	FlagAppend            FSXAttrFlags = 0x00000010
	FlagSync              FSXAttrFlags = 0x00000020
	FlagNoATime           FSXAttrFlags = 0x00000040
	FlagNoDump            FSXAttrFlags = 0x00000080
	FlagRealtimeInherit   FSXAttrFlags = 0x00000100
	FlagProjectInherit    FSXAttrFlags = 0x00000200
	FlagNoSymlinks        FSXAttrFlags = 0x00000400
	FlagExtentSize        FSXAttrFlags = 0x00000800
	FlagExtentSizeInherit FSXAttrFlags = 0x00001000
	FlagNoDefragment      FSXAttrFlags = 0x00002000
	FlagFilestream        FSXAttrFlags = 0x00004000
	FlagDAX               FSXAttrFlags = 0x00008000
	FlagCOWExtentSize     FSXAttrFlags = 0x00010000
	FlagHasAttribute      FSXAttrFlags = 0x80000000
)

type FSXAttrs

type FSXAttrs struct {
	Flags         FSXAttrFlags
	ExtentSize    uint32
	ExtentCount   uint32
	ProjectID     uint32
	CoWExtentSize uint32
	// contains filtered or unexported fields
}

func Get

func Get(file *os.File) (*FSXAttrs, error)

Jump to

Keyboard shortcuts

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