Added a Mode field.
parent
c4de915491
commit
f10dc3e5ee
|
@ -434,6 +434,7 @@ type SetInodeAttributesRequest struct {
|
||||||
|
|
||||||
// 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.
|
||||||
Size *uint64
|
Size *uint64
|
||||||
|
Mode *os.FileMode
|
||||||
}
|
}
|
||||||
|
|
||||||
type SetInodeAttributesResponse struct {
|
type SetInodeAttributesResponse struct {
|
||||||
|
|
|
@ -182,6 +182,10 @@ func (s *server) handleFuseRequest(fuseReq bazilfuse.Request) {
|
||||||
req.Size = &typed.Size
|
req.Size = &typed.Size
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if typed.Valid&bazilfuse.SetattrMode != 0 {
|
||||||
|
req.Mode = &typed.Mode
|
||||||
|
}
|
||||||
|
|
||||||
// Call the file system.
|
// Call the file system.
|
||||||
resp, err := s.fs.SetInodeAttributes(ctx, req)
|
resp, err := s.fs.SetInodeAttributes(ctx, req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue