Method
Statfs
(ctx context.Context, req *fuse.StatfsRequest, res *fuse.StatfsResponse)
Source from the content-addressed store, hash-verified
| 324 | var _ fusefs.FSStatfser = (*CamliFileSystem)(nil) |
| 325 | |
| 326 | func (fs *CamliFileSystem) Statfs(ctx context.Context, req *fuse.StatfsRequest, res *fuse.StatfsResponse) error { |
| 327 | // Make some stuff up, just to see if it makes "lsof" happy. |
| 328 | res.Blocks = 1 << 35 |
| 329 | res.Bfree = 1 << 34 |
| 330 | res.Bavail = 1 << 34 |
| 331 | res.Files = 1 << 29 |
| 332 | res.Ffree = 1 << 28 |
| 333 | res.Namelen = 2048 |
| 334 | res.Bsize = 1024 |
| 335 | return nil |
| 336 | } |
| 337 | |
| 338 | // Errors returned are: |
| 339 | // |