2024-01-26 09:54:46 -05:00
|
|
|
package fsutils
|
|
|
|
|
2024-11-07 04:15:45 -05:00
|
|
|
import (
|
|
|
|
`r00t2.io/goutils/bitmask`
|
|
|
|
)
|
|
|
|
|
|
|
|
type fsAttr bitmask.MaskBit
|
|
|
|
|
|
|
|
// FsAttrs is a struct representation of filesystem attributes on Linux.
|
2024-01-26 09:54:46 -05:00
|
|
|
type FsAttrs struct {
|
|
|
|
SecureDelete bool
|
|
|
|
UnDelete bool
|
|
|
|
CompressFile bool
|
2024-11-07 04:15:45 -05:00
|
|
|
SyncUpdate bool
|
2024-01-26 09:54:46 -05:00
|
|
|
Immutable bool
|
|
|
|
AppendOnly bool
|
|
|
|
NoDumpFile bool
|
|
|
|
NoUpdateAtime bool
|
|
|
|
IsDirty bool
|
|
|
|
CompressedClusters bool
|
|
|
|
NoCompress bool
|
|
|
|
EncFile bool
|
|
|
|
BtreeFmt bool
|
|
|
|
HashIdxDir bool
|
|
|
|
AfsDir bool
|
|
|
|
ReservedExt3 bool
|
|
|
|
NoMergeTail bool
|
|
|
|
DirSync bool
|
|
|
|
DirTop bool
|
|
|
|
ReservedExt4a bool
|
|
|
|
Extents bool
|
2024-11-07 04:15:45 -05:00
|
|
|
VerityProtected bool
|
2024-01-26 09:54:46 -05:00
|
|
|
LargeEaInode bool
|
|
|
|
ReservedExt4b bool
|
|
|
|
NoCOWFile bool
|
2024-11-07 04:15:45 -05:00
|
|
|
DAX bool
|
2024-01-26 09:54:46 -05:00
|
|
|
ReservedExt4c bool
|
|
|
|
UseParentProjId bool
|
2024-11-07 04:15:45 -05:00
|
|
|
CaseInsensitive bool
|
2024-01-26 09:54:46 -05:00
|
|
|
ReservedExt2 bool
|
|
|
|
}
|