(ctx context.Context, a *fuse.Attr)
| 102 | } |
| 103 | |
| 104 | func (s *stat) Attr(ctx context.Context, a *fuse.Attr) error { |
| 105 | a.Mode = 0400 |
| 106 | a.Uid = uint32(os.Getuid()) |
| 107 | a.Gid = uint32(os.Getgid()) |
| 108 | a.Size = uint64(len(s.content())) |
| 109 | a.Mtime = serverStart |
| 110 | a.Ctime = serverStart |
| 111 | return nil |
| 112 | } |
| 113 | |
| 114 | func (s *stat) Open(ctx context.Context, req *fuse.OpenRequest, res *fuse.OpenResponse) (fs.Handle, error) { |
| 115 | // Set DirectIO to keep this file from being cached in OS X's kernel. |