From d1629e1e4e1b176ee792212f327140d65c6528fa Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 26 Jul 2015 17:20:26 +0200 Subject: [PATCH] fuse: move to top level --- cmd/restic/cmd_mount.go | 2 +- {cmd/restic/fuse => fuse}/dir.go | 0 {cmd/restic/fuse => fuse}/file.go | 0 {cmd/restic/fuse => fuse}/file_test.go | 0 {cmd/restic/fuse => fuse}/fuse.go | 0 {cmd/restic/fuse => fuse}/link.go | 0 {cmd/restic/fuse => fuse}/snapshot.go | 1 + 7 files changed, 2 insertions(+), 1 deletion(-) rename {cmd/restic/fuse => fuse}/dir.go (100%) rename {cmd/restic/fuse => fuse}/file.go (100%) rename {cmd/restic/fuse => fuse}/file_test.go (100%) rename {cmd/restic/fuse => fuse}/fuse.go (100%) rename {cmd/restic/fuse => fuse}/link.go (100%) rename {cmd/restic/fuse => fuse}/snapshot.go (99%) diff --git a/cmd/restic/cmd_mount.go b/cmd/restic/cmd_mount.go index d685af98a..290ae4056 100644 --- a/cmd/restic/cmd_mount.go +++ b/cmd/restic/cmd_mount.go @@ -6,7 +6,7 @@ import ( "fmt" "os" - "github.com/restic/restic/cmd/restic/fuse" + "github.com/restic/restic/fuse" systemFuse "bazil.org/fuse" "bazil.org/fuse/fs" diff --git a/cmd/restic/fuse/dir.go b/fuse/dir.go similarity index 100% rename from cmd/restic/fuse/dir.go rename to fuse/dir.go diff --git a/cmd/restic/fuse/file.go b/fuse/file.go similarity index 100% rename from cmd/restic/fuse/file.go rename to fuse/file.go diff --git a/cmd/restic/fuse/file_test.go b/fuse/file_test.go similarity index 100% rename from cmd/restic/fuse/file_test.go rename to fuse/file_test.go diff --git a/cmd/restic/fuse/fuse.go b/fuse/fuse.go similarity index 100% rename from cmd/restic/fuse/fuse.go rename to fuse/fuse.go diff --git a/cmd/restic/fuse/link.go b/fuse/link.go similarity index 100% rename from cmd/restic/fuse/link.go rename to fuse/link.go diff --git a/cmd/restic/fuse/snapshot.go b/fuse/snapshot.go similarity index 99% rename from cmd/restic/fuse/snapshot.go rename to fuse/snapshot.go index f288615d1..6f82998c4 100644 --- a/cmd/restic/fuse/snapshot.go +++ b/fuse/snapshot.go @@ -60,6 +60,7 @@ func (sn *SnapshotsDir) updateCache(ctx context.Context) error { } return nil } + func (sn *SnapshotsDir) get(name string) (snapshot SnapshotWithId, ok bool) { sn.RLock() snapshot, ok = sn.knownSnapshots[name]