From 88b599c4f3dc923799dc7be268b64d4986ee14fd Mon Sep 17 00:00:00 2001 From: Srigovind Nayak <5201843+konidev20@users.noreply.github.com> Date: Sat, 8 Feb 2025 16:06:03 +0530 Subject: [PATCH] mount: append repository ID to FS name of FUSE mount * update review comments mount: append repository ID to FS name of the FUSE mount --- cmd/restic/cmd_mount.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/restic/cmd_mount.go b/cmd/restic/cmd_mount.go index 15760c6b7..d2c905460 100644 --- a/cmd/restic/cmd_mount.go +++ b/cmd/restic/cmd_mount.go @@ -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), }