fuse: move to top level

This commit is contained in:
Alexander Neumann
2015-07-26 17:20:26 +02:00
parent bd746a0425
commit d1629e1e4e
7 changed files with 2 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
package fuse
import (
"encoding/binary"
"github.com/restic/restic/backend"
)
// inodeFromBackendId returns a unique uint64 from a backend id.
// Endianness has no specific meaning, it is just the simplest way to
// transform a []byte to an uint64
func inodeFromBackendId(id backend.ID) uint64 {
return binary.BigEndian.Uint64(id[:8])
}