1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-27 10:17:58 +00:00

Moved assignment of device id outside the switch

This commit is contained in:
jgfrm 2017-04-05 11:33:08 +02:00
parent c855d6bb9a
commit 6674b2a70c

View file

@ -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)