2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-02 17:10:49 +00:00
restic/src/restic/fuse/fuse.go
Alexander Neumann 4c95d2cfdc wip
2016-09-03 21:10:24 +02:00

17 lines
353 B
Go

// +build !openbsd
// +build !windows
package fuse
import (
"encoding/binary"
"restic"
)
// 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 restic.ID) uint64 {
return binary.BigEndian.Uint64(id[:8])
}