-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
archive.ChagesDir() - faster and better implementation
This replaces the current version with the latest version from the dm branch. Advantages in this version: We only scan each directory tree once, which means less i/o and less chance of container changes inbetween the two scans causing inconsistencies. We avoid comparing some fields for change detection: * Inode * size-in-blocks These can change during a copy operation (e.g. in the dummy backend) without needing to actually reflect a change in content or metadata. * Ctime Any copy operation will create a new Ctime value, and there is no API to change it to the "source" value. * size for directories The size of a directory doesn't have to be the same just because you recreated the same content as another director. Internal details in the filesystem may make these different with no "real" change.
- Loading branch information
1 parent
948bb29
commit b6ef4bc
Showing
1 changed file
with
130 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters