to be re-written following fuse virtual file system

This commit is contained in:
chrislu
2022-02-11 03:09:30 -08:00
parent 9a913457dd
commit f87da798a4
7 changed files with 147 additions and 26 deletions

View File

@@ -15,14 +15,16 @@ import (
const blockSize = 512
var _ = fs.NodeStatfser(&WFS{})
var _ = fs.NodeStatfser(&Directory{})
type statsCache struct {
filer_pb.StatisticsResponse
lastChecked int64 // unix time in seconds
}
func (wfs *WFS) Statfs(ctx context.Context, out *fuse.StatfsOut) syscall.Errno {
func (dir *Directory) Statfs(ctx context.Context, out *fuse.StatfsOut) syscall.Errno {
wfs := dir.wfs
glog.V(4).Infof("reading fs stats")