Added Atime and Mtime fields.
parent
76ac5cc264
commit
1698f1604a
|
@ -433,8 +433,10 @@ type SetInodeAttributesRequest struct {
|
|||
Inode InodeID
|
||||
|
||||
// The attributes to modify, or nil for attributes that don't need a change.
|
||||
Size *uint64
|
||||
Mode *os.FileMode
|
||||
Size *uint64
|
||||
Mode *os.FileMode
|
||||
Atime *time.Time
|
||||
Mtime *time.Time
|
||||
}
|
||||
|
||||
type SetInodeAttributesResponse struct {
|
||||
|
|
|
@ -186,6 +186,14 @@ func (s *server) handleFuseRequest(fuseReq bazilfuse.Request) {
|
|||
req.Mode = &typed.Mode
|
||||
}
|
||||
|
||||
if typed.Valid&bazilfuse.SetattrAtime != 0 {
|
||||
req.Atime = &typed.Atime
|
||||
}
|
||||
|
||||
if typed.Valid&bazilfuse.SetattrMtime != 0 {
|
||||
req.Mtime = &typed.Mtime
|
||||
}
|
||||
|
||||
// Call the file system.
|
||||
resp, err := s.fs.SetInodeAttributes(ctx, req)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue