2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-07 03:20:49 +00:00

Fix fuse mount

This commit is contained in:
Alexander Neumann 2016-09-03 20:33:28 +02:00
parent 436332d5f2
commit 1fb80bf0e2
2 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ func (f *file) getBlobAt(i int) (blob []byte, err error) {
}
f.blobs[i] = buf[:n]
return blob, nil
return buf[:n], nil
}
func (f *file) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error {

View File

@ -87,7 +87,7 @@ func (r *Repository) LoadAndDecrypt(t restic.FileType, id restic.ID) ([]byte, er
// pack from the backend, the result is stored in plaintextBuf, which must be
// large enough to hold the complete blob.
func (r *Repository) loadBlob(id restic.ID, t restic.BlobType, plaintextBuf []byte) (int, error) {
debug.Log("Repo.loadBlob", "load %v with id %v (buf %d)", t, id.Str(), len(plaintextBuf))
debug.Log("Repo.loadBlob", "load %v with id %v (buf %p, len %d)", t, id.Str(), plaintextBuf, len(plaintextBuf))
// lookup plaintext size of blob
size, err := r.idx.LookupSize(id, t)