MCPcopy Index your code
hub / github.com/perkeep/perkeep / Statfs

Method Statfs

pkg/fs/fs.go:326–336  ·  view source on GitHub ↗
(ctx context.Context, req *fuse.StatfsRequest, res *fuse.StatfsResponse)

Source from the content-addressed store, hash-verified

324var _ fusefs.FSStatfser = (*CamliFileSystem)(nil)
325
326func (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//

Callers 1

dirToBeFUSEFunction · 0.80

Calls

no outgoing calls

Tested by 1

dirToBeFUSEFunction · 0.64