Remove blob size cache from restic mount

This commit is contained in:
greatroar
2020-06-14 12:49:39 +02:00
parent 5d8d70542f
commit 07da61baee
6 changed files with 16 additions and 62 deletions

View File

@@ -156,9 +156,7 @@ func TestFuseFile(t *testing.T) {
Size: filesize,
Content: content,
}
root := NewRoot(context.TODO(), repo, Config{})
t.Logf("blob cache has %d entries", len(root.blobSizeCache.m))
root := NewRoot(repo, Config{})
inode := fs.GenerateDynamicInode(1, "foo")
f, err := newFile(context.TODO(), root, inode, node)
@@ -202,7 +200,7 @@ func testTopUidGid(t *testing.T, cfg Config, repo restic.Repository, uid, gid ui
t.Helper()
ctx := context.Background()
root := NewRoot(ctx, repo, cfg)
root := NewRoot(repo, cfg)
var attr fuse.Attr
err := root.Attr(ctx, &attr)