Merge pull request #1337 from mungomat/fuse_updateRepo

fuse: mount and backup in parallel (#1330)
This commit is contained in:
Alexander Neumann
2017-10-08 09:45:28 +02:00
3 changed files with 378 additions and 101 deletions

View File

@@ -67,6 +67,12 @@ func mount(opts MountOptions, gopts GlobalOptions, mountpoint string) error {
return err
}
lock, err := lockRepo(repo)
defer unlockRepo(lock)
if err != nil {
return err
}
err = repo.LoadIndex(context.TODO())
if err != nil {
return err