diff options
author | Yorhel <git@yorhel.nl> | 2009-05-11 19:48:32 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-05-11 20:02:46 +0200 |
commit | 6de0a8ec00cfab1a7664bc5a934a9d4e7207e77d (patch) | |
tree | b75007795a8fc52be1e80c0e2e4402b08524093a /ChangeLog | |
parent | 8209a7efe3908f6935c5cd78f2099bdeb802e784 (diff) |
Use correct hard link information after partial recalculation or deletion
Hard link detection is now done in a separate pass on the in-memory tree,
and duplicates can be 'removed' and 're-added' on the fly. When making any
changes in the tree, all hard links are re-added before the operation and
removed again afterwards.
While this guarantees that all hard link information is correct, it does
have a few drawbacks. I can currently think of two:
1. It's not the most efficient way to do it, and may be quite slow on
large trees. Will have to do some benchmarks later to see whether
it is anything to be concerned about.
2. The first encountered item is considered as 'counted' and all items
encountered after that are considered as 'duplicate'. Because the
order in which we traverse the tree doesn't always have to be the
same, the items that will be considered as 'duplicate' can vary with
each deletion or re-calculation. This might cause confusion for
people who aren't aware of how hard links work.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1,3 +1,6 @@ +git - ? + - Implemented hard link detection + 1.5 - 2009-05-02 - Fixed incorrect apparent size on directory refresh - Browsing keys now work while file info window is displayed |