add support for UID and GID in SetInodeAttributes

notifications
Eric Gouyer 2019-08-03 02:58:56 +02:00 committed by Michael Stapelberg
parent 63437da750
commit 2681cd5156
2 changed files with 10 additions and 0 deletions

View File

@ -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
}

View File

@ -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