fuse: mount and backup in parallel (#1330)

This commit is contained in:
Tobias Klein
2017-10-05 14:55:55 +02:00
parent a5c003acb0
commit 02200acad0
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