From c855d6bb9a716582f4ceddd0c61096b3cdabafa1 Mon Sep 17 00:00:00 2001 From: jgfrm Date: Tue, 4 Apr 2017 21:28:25 +0200 Subject: [PATCH] storage of device id of files --- src/restic/node.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/restic/node.go b/src/restic/node.go index b634ed34b..baa40576c 100644 --- a/src/restic/node.go +++ b/src/restic/node.go @@ -581,6 +581,7 @@ 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)