2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-02 11:46:36 +00:00

storage of device id of files

This commit is contained in:
jgfrm 2017-04-04 21:28:25 +02:00
parent 6935f82389
commit c855d6bb9a

View File

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