stats: fix hardlink tracking in a snapshot

inodes are only unique within a device. Use the HardlinkIndex from the
restorer instead of the custom (broken) hashmap to correctly account for
both inode and deviceID.
This commit is contained in:
Michael Eischer
2023-10-01 23:27:09 +02:00
parent a8fdcf79b7
commit 731b3a4357
2 changed files with 13 additions and 5 deletions

View File

@@ -0,0 +1,7 @@
Bugfix: Correct hardlink handling in `stats` command
If files on different devices had the same inode id, then the `stats` command
did not correctly calculate the snapshot size. This has been fixed.
https://github.com/restic/restic/pull/4503
https://forum.restic.net/t/possible-bug-in-stats/6461/8