diff --git a/conversions.go b/conversions.go index fbcc7bb..71125ea 100644 --- a/conversions.go +++ b/conversions.go @@ -76,6 +76,14 @@ func convertInMessage( o = to valid := fusekernel.SetattrValid(in.Valid) + if valid&fusekernel.SetattrUid != 0 { + to.Uid = &in.Uid + } + + if valid&fusekernel.SetattrGid != 0 { + to.Gid = &in.Gid + } + if valid&fusekernel.SetattrSize != 0 { to.Size = &in.Size } diff --git a/fuseops/ops.go b/fuseops/ops.go index db096f6..a150af5 100644 --- a/fuseops/ops.go +++ b/fuseops/ops.go @@ -161,6 +161,8 @@ type SetInodeAttributesOp struct { Handle *HandleID // The attributes to modify, or nil for attributes that don't need a change. + Uid *uint32 + Gid *uint32 Size *uint64 Mode *os.FileMode Atime *time.Time