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)