From d7046e8dec845ba0c0c94f873170f7daab39e845 Mon Sep 17 00:00:00 2001 From: guilhem Date: Sat, 9 Mar 2013 03:39:04 +0000 Subject: [PATCH] --- ..._t_honour_Rsync__39__s_bwlimit_option.mdwn | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 doc/bugs/git-annex-shell_doesn__39__t_honour_Rsync__39__s_bwlimit_option.mdwn diff --git a/doc/bugs/git-annex-shell_doesn__39__t_honour_Rsync__39__s_bwlimit_option.mdwn b/doc/bugs/git-annex-shell_doesn__39__t_honour_Rsync__39__s_bwlimit_option.mdwn new file mode 100644 index 0000000000..fa23108ea6 --- /dev/null +++ b/doc/bugs/git-annex-shell_doesn__39__t_honour_Rsync__39__s_bwlimit_option.mdwn @@ -0,0 +1,35 @@ +

What steps will reproduce the problem?

+ +On host1.example.tld: +
    git init /tmp/annex
+    cd /tmp/annex
+    git annex init
+    git config annex.rsync-options '--bwlimit=100'
+    dd if=/dev/urandom of=bigfile bs=1024 count=102400
+    git annex add bigfile
+    git commit -am bigfile
+
+ +On host2.example.tld: +
    git clone ssh://host1.example.tld/tmp/annex /tmp/annex
+    cd /tmp/annex
+    git annex init
+    git config annex.rsync-options '--bwlimit=100'
+    git annex get --from=origin bigfile
+
+ +

What is the expected output? What do you see instead?

+bigfile is retrieved full speed, despite the bwlimit option. In fact on the origin host1.example.tld, ps x | grep rsync shows: +

+    21386 ?        Ssl    0:00 git-annex-shell sendkey /tmp/annex SHA256E-s104857600--3e87b769b88db67c56f8c8a0245203a1c22cdb027f0a1230dac8309b1a9fded0 --uuid 7002cb3d-2205-4
+f8d-892b-5c35c693d76c -- remoteuuid=67263f47-7a5f-4a75-937b-7cffafa85f56 direct= associatedfile=bigfile -- dummy rsync --server --sender -ve.Lsf --bwlimit=100 --inplace .
+    21390 ?        S      0:01 rsync --server -t --inplace -e.Lsf . --sender /tmp/annex/.git/annex/objects/jX/3W/SHA256E-s104857600--3e87b769b88db67c56f8c8a0245203a1c22cdb02
+7f0a1230dac8309b1a9fded0/SHA256E-s104857600--3e87b769b88db67c56f8c8a0245203a1c22cdb027f0a1230dac8309b1a9fded0
+
+ +On the first line the option is indeed there, but it's somehow not forwarded to the actual rsync command. (On the client host2.example.tld the option shows up, but the sender's bandwidth seems to take precedence.) + +

What version of git-annex are you using? On what operating system?

+ +git-annex 4.20130227, on Debian GNU/Linux (sid, i386). +