aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/populate/src
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-13 20:33:24 +0000
committertv <tv@krebsco.de>2026-11-13 22:00:50 +0100
commita39ddee552a3955d1655fe89620daa31d9875d16 (patch)
treec1d7302ab595e6f83354d6485d6d79cc76be11f9 /pkgs/populate/src
parentcc12e29147939aab27d44c8bd41ac7fde190e6af (diff)
populate: give sizes in rsync's log in units of 1024
rsync gives sizes in units of 1000 for two apostrophes, and in units of 1024 for three, which the shell implementation asks for. rsync-units checks it.
Diffstat (limited to 'pkgs/populate/src')
-rw-r--r--pkgs/populate/src/rsync.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/populate/src/rsync.rs b/pkgs/populate/src/rsync.rs
index dd61b03..78022ab 100644
--- a/pkgs/populate/src/rsync.rs
+++ b/pkgs/populate/src/rsync.rs
@@ -108,10 +108,11 @@ pub fn transfer(context: &Context, config: &Config, source_path: &str, path: &st
command.arg("--insecure-links");
}
// Each item gets logged with what changed about it, and its size, as
- // transferred and in total.
+ // transferred and in total, in units of 1024, which three apostrophes
+ // ask for.
command
.arg("--itemize-changes")
- .arg("--out-format=%i %n%L %''b/%''l")
+ .arg("--out-format=%i %n%L %'''b/%'''l")
.arg("--info=backup,del,copy,misc,mount,name,nonreg,remove,skip,symsafe")
// Nothing relies on the times of directories and symlinks, and
// keeping them would log a line for each directory changed.