add support for UID and GID in SetInodeAttributes
parent
63437da750
commit
2681cd5156
|
@ -76,6 +76,14 @@ func convertInMessage(
|
||||||
o = to
|
o = to
|
||||||
|
|
||||||
valid := fusekernel.SetattrValid(in.Valid)
|
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 {
|
if valid&fusekernel.SetattrSize != 0 {
|
||||||
to.Size = &in.Size
|
to.Size = &in.Size
|
||||||
}
|
}
|
||||||
|
|
|
@ -161,6 +161,8 @@ type SetInodeAttributesOp struct {
|
||||||
Handle *HandleID
|
Handle *HandleID
|
||||||
|
|
||||||
// The attributes to modify, or nil for attributes that don't need a change.
|
// The attributes to modify, or nil for attributes that don't need a change.
|
||||||
|
Uid *uint32
|
||||||
|
Gid *uint32
|
||||||
Size *uint64
|
Size *uint64
|
||||||
Mode *os.FileMode
|
Mode *os.FileMode
|
||||||
Atime *time.Time
|
Atime *time.Time
|
||||||
|
|
Loading…
Reference in New Issue