mirror of
https://github.com/restic/restic.git
synced 2026-10-24 01:38:54 +00:00
fuse: refactor and add tests for fuse.file
This commit is contained in:
1 parent
55ddd5317d
commit
bd746a0425
3 files changed
+179
-9
No files matched your search
@@ -201,6 +201,11 @@ func (r *Repository) LoadJSONPack(t pack.BlobType, id backend.ID, item interface
|
||||
return nil
|
||||
}
|
||||
|
||||
// LookupBlobSize returns the size of blob id.
|
||||
func (r *Repository) LookupBlobSize(id backend.ID) (uint, error) {
|
||||
return r.Index().LookupSize(id)
|
||||
}
|
||||
|
||||
const minPackSize = 4 * chunker.MiB
|
||||
const maxPackSize = 16 * chunker.MiB
|
||||
const maxPackers = 200
|
||||
|
||||
Reference in new issue
Block a user