mirror of
https://github.com/restic/restic.git
synced 2026-02-03 12:29:37 -05:00
mount: append repository ID to FS name of FUSE mount
* update review comments mount: append repository ID to FS name of the FUSE mount
This commit is contained in:
parent
3d14e92905
commit
88b599c4f3
1 changed files with 4 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ package main
|
|||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
|
|
@ -148,9 +149,11 @@ func runMount(ctx context.Context, opts MountOptions, gopts GlobalOptions, args
|
|||
return err
|
||||
}
|
||||
|
||||
fuseMountName := fmt.Sprintf("restic:%s", repo.Config().ID[:10])
|
||||
|
||||
mountOptions := []systemFuse.MountOption{
|
||||
systemFuse.ReadOnly(),
|
||||
systemFuse.FSName("restic"),
|
||||
systemFuse.FSName(fuseMountName),
|
||||
systemFuse.MaxReadahead(128 * 1024),
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue