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:
Srigovind Nayak 2025-02-08 16:06:03 +05:30
parent 3d14e92905
commit 88b599c4f3
No known key found for this signature in database
GPG Key ID: 09006810B7263D69

View File

@ -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),
}