From 6674b2a70c8351f23fc499542090f1a7bed1fc6a Mon Sep 17 00:00:00 2001 From: jgfrm Date: Wed, 5 Apr 2017 11:33:08 +0200 Subject: [PATCH] Moved assignment of device id outside the switch --- src/restic/node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/restic/node.go b/src/restic/node.go index baa40576c..b85bfee80 100644 --- a/src/restic/node.go +++ b/src/restic/node.go @@ -568,6 +568,7 @@ func (node *Node) fillExtra(path string, fi os.FileInfo) error { } node.Inode = uint64(stat.ino()) + node.Device = uint64(stat.dev()) node.fillTimes(stat) @@ -581,7 +582,6 @@ func (node *Node) fillExtra(path string, fi os.FileInfo) error { case "file": node.Size = uint64(stat.size()) node.Links = uint64(stat.nlink()) - node.Device = uint64(stat.dev()) case "dir": case "symlink": node.LinkTarget, err = fs.Readlink(path)