Added a Mode field.

geesefs-0-30-9
Aaron Jacobs 2015-03-06 05:59:47 +11:00
parent c4de915491
commit f10dc3e5ee
2 changed files with 5 additions and 0 deletions

View File

@ -434,6 +434,7 @@ type SetInodeAttributesRequest struct {
// The attributes to modify, or nil for attributes that don't need a change.
Size *uint64
Mode *os.FileMode
}
type SetInodeAttributesResponse struct {

View File

@ -182,6 +182,10 @@ func (s *server) handleFuseRequest(fuseReq bazilfuse.Request) {
req.Size = &typed.Size
}
if typed.Valid&bazilfuse.SetattrMode != 0 {
req.Mode = &typed.Mode
}
// Call the file system.
resp, err := s.fs.SetInodeAttributes(ctx, req)
if err != nil {