mirror of
https://github.com/octoleo/restic.git
synced 2025-02-03 12:28:30 +00:00
storage of device id of files
This commit is contained in:
parent
6935f82389
commit
c855d6bb9a
@ -581,6 +581,7 @@ func (node *Node) fillExtra(path string, fi os.FileInfo) error {
|
|||||||
case "file":
|
case "file":
|
||||||
node.Size = uint64(stat.size())
|
node.Size = uint64(stat.size())
|
||||||
node.Links = uint64(stat.nlink())
|
node.Links = uint64(stat.nlink())
|
||||||
|
node.Device = uint64(stat.dev())
|
||||||
case "dir":
|
case "dir":
|
||||||
case "symlink":
|
case "symlink":
|
||||||
node.LinkTarget, err = fs.Readlink(path)
|
node.LinkTarget, err = fs.Readlink(path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user