aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/populate/docs/design.md
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/populate/docs/design.md')
-rw-r--r--pkgs/populate/docs/design.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/populate/docs/design.md b/pkgs/populate/docs/design.md
index 4421942..abb85e7 100644
--- a/pkgs/populate/docs/design.md
+++ b/pkgs/populate/docs/design.md
@@ -107,6 +107,21 @@ via `sudo`.
Populate runs rsync, Git, ssh, and Nix as programs, found in `PATH`.
+Each rsync run costs several round trips to the target, and about 45 ms
+of rsync waiting for its own processes, also when there's nothing to
+transfer. So file sources that rsync would find nothing to do for get
+skipped: right after taking the lock, one command lists the target paths
+of the file sources that are directories, compared by size and time, and
+whose lock file the flakes step doesn't rewrite, with find. Each such
+source's turn lists what rsync would transfer, with find if nothing
+excludes or filters anything, else with `rsync --list-only`, the same run
+that checks the `.rsync-filter` files. If both listings have the same
+entries, with mode and path, and for files size and time in whole seconds,
+and for symlinks the target, as far as rsync's quick check goes, neither
+`break_hard_links` nor rsync runs. Entries populate can't compare, e.g.
+paths with control characters, devices, or a source that needs
+`--insecure-links`, make it run rsync.
+
## Development
- `cargo test` in this directory runs the program's unit tests.