diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-02-22 14:18:13 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-02-22 14:18:13 +0100 |
commit | a807a45ffd64db60dc69012bef2538eaac3dac0b (patch) | |
tree | 818b73062c8684f9b96fca49d7d6d477c450fc22 /tests/tar/xattr/xattr-libarchive.tar | |
parent | 0b1fce762dca88659b3103783e8852cb7265823e (diff) |
Make hard link detection scale better
Instead of doing a linear search, which scales quadratically, use a
red-black tree with inode numbers as key for finding hard links.
To reiterate: we can't just use a flat table, because the SquashFS
file is potentially untrusted and the inode numbers can be anything,
no matter what the super block says.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/tar/xattr/xattr-libarchive.tar')
0 files changed, 0 insertions, 0 deletions