IMPROVED:
* Removed *BROKEN* dep. lrn2fixurshitk
This commit is contained in:
brent saner
2024-11-07 04:15:45 -05:00
parent 9dbc3a00fe
commit 70a88ca8b4
21 changed files with 430 additions and 166 deletions

View File

@@ -1,11 +1,17 @@
package fsutils
// FsAttrs is a convenience struct around github.com/g0rbe/go-chattr.
import (
`r00t2.io/goutils/bitmask`
)
type fsAttr bitmask.MaskBit
// FsAttrs is a struct representation of filesystem attributes on Linux.
type FsAttrs struct {
SecureDelete bool
UnDelete bool
CompressFile bool
SyncUpdatechattr bool
SyncUpdate bool
Immutable bool
AppendOnly bool
NoDumpFile bool
@@ -23,10 +29,13 @@ type FsAttrs struct {
DirTop bool
ReservedExt4a bool
Extents bool
VerityProtected bool
LargeEaInode bool
ReservedExt4b bool
NoCOWFile bool
DAX bool
ReservedExt4c bool
UseParentProjId bool
CaseInsensitive bool
ReservedExt2 bool
}