<div dir="ltr"><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Hi Justin</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">No i did a test setup after getting to it in real life. In this test setup:</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">
- rsync (daemonless) is run </pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">- ctrl-c, </pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">- results are checked, </pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">
- dest directory is deleted </pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">and so on.</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">in 50 % the file is left over.</pre>
<pre style="white-space:pre-wrap;color:rgb(0,0,0)"><br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">i can reproduce it on a big fat slow (relative to a small ext4 partition on same lvm) xfs-partition.</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">
<br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">If i do this on root I even if I manage tp ctrl-c at the right time, I don't get a temp file left. The test setup is very "clean"</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">
Greetings</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Lopiuh</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">
> Is it a new tmp file every time ??  Or is the tmpfile leftover from
> some (probably not reproducible) run?  Are you sure there are no
> "stuck" rsync processes running?  To be sure, you might run sudo lsof
> on that tmpfile.
>
> Justin</pre></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 5, 2013 at 12:09 PM, Paul Lopez <span dir="ltr"><<a href="mailto:lopiuh@googlemail.com" target="_blank">lopiuh@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi folks,<div><br></div><div><span style="font-size:13px;font-family:arial,sans-serif">man page says "By default, rsync will delete any partially transferred file if the transfer is interrupted" </span></div>

<div><span style="font-size:13px;font-family:arial,sans-serif"><br></span></div><div><span style="font-size:13px;font-family:arial,sans-serif">I have (</span>reproducible) a partial file left, if I do CTRL-C</div>
<div><br></div><div>source-dir: mounted LVM XFS</div><div>dest-dir: see source-dir</div><div>Ubuntu 12.04.1 (LTS)</div><div>kernel 3.2.0-39-generic</div><div><br></div><div>command:</div><div><div>rsync -a  /mnt/data/\$sortin_linux/rsnapshot_stable/hourly.1/usr/include/c++/4.4/ext/pb_ds/detail/binary_heap_/ /mnt/data/delete/</div>

<div>^Crsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(549) [sender=3.0.9]</div></div><div><br></div><div><br></div><div><b>Source-Dir:</b></div><div><div>root@yaVDR:~# ls -lsa  /mnt/data/\$sortin_linux/rsnapshot_stable/hourly.1/usr/include/c++/4.4/ext/pb_ds/detail/binary_heap_/      total 108</div>

<div> 4 drwxr-xr-x  2 root root 4096 Jul 24  2011 .</div><div> 4 drwxr-xr-x 25 root root 4096 Jul 24  2011 ..</div><div>12 -rw-r--r--  1 root root 8618 Nov 15  2010 binary_heap_.hpp</div><div> 8 -rw-r--r--  1 root root 4373 Nov 15  2010 const_iterator.hpp</div>

<div> 8 -rw-r--r--  1 root root 4458 Nov 15  2010 const_point_iterator.hpp</div><div> 8 -rw-r--r--  1 root root 4555 Nov 15  2010 constructors_destructor_fn_imps.hpp</div><div> 4 -rw-r--r--  1 root root 2509 Nov 15  2010 debug_fn_imps.hpp</div>

<div> 4 -rw-r--r--  1 root root 2636 Nov 15  2010 entry_cmp.hpp</div><div> 4 -rw-r--r--  1 root root 2599 Nov 15  2010 entry_pred.hpp</div><div> 8 -rw-r--r--  1 root root 5837 Nov 15  2010 erase_fn_imps.hpp</div><div> 4 -rw-r--r--  1 root root 2614 Nov 15  2010 find_fn_imps.hpp</div>

<div> 4 -rw-r--r--  1 root root 2068 Nov 15  2010 info_fn_imps.hpp</div><div> 8 -rw-r--r--  1 root root 5379 Nov 15  2010 insert_fn_imps.hpp</div><div> 4 -rw-r--r--  1 root root 2280 Nov 15  2010 iterators_fn_imps.hpp</div>

<div> 4 -rw-r--r--  1 root root 1896 Nov 15  2010 policy_access_fn_imps.hpp</div><div> 8 -rw-r--r--  1 root root 6300 Nov 15  2010 resize_policy.hpp</div><div> 8 -rw-r--r--  1 root root 5311 Nov 15  2010 split_join_fn_imps.hpp</div>

<div> 4 -rw-r--r--  1 root root 2441 Nov 15  2010 trace_fn_imps.hpp</div><div>root@yaVDR:~#</div></div><div><br></div><div><br></div><div><b>Dest-Dir (last File is the partial)</b></div><div><div>root@yaVDR:~# ls /mnt/data/delete/ -lsa</div>

<div>total 44</div><div> 4 drwxr-xr-x 2 root root 4096 Apr  5 12:05 .</div><div> 0 drwxrwxrwx 9 root root  133 Apr  5 12:05 ..</div><div>12 -rw-r--r-- 1 root root 8618 Nov 15  2010 binary_heap_.hpp</div><div> 8 -rw-r--r-- 1 root root 4373 Nov 15  2010 const_iterator.hpp</div>

<div> 8 -rw-r--r-- 1 root root 4458 Nov 15  2010 const_point_iterator.hpp</div><div> 8 -rw-r--r-- 1 root root 4555 Nov 15  2010 constructors_destructor_fn_imps.hpp</div><div> 4 -rw-r--r-- 1 root root 2509 Nov 15  2010 debug_fn_imps.hpp</div>

<div><b> 0 -rw------- 1 root root    0 Apr  5 12:05 .entry_cmp.hpp.543CXr</b></div><div>root@yaVDR:~#</div></div><div><br></div><div>It is reproducible, any ideas?</div><div><br></div><div>Thanks</div><div><br></div><div>

lopiuh</div><div><br></div><div><span style="font-size:13px;font-family:arial,sans-serif"><br></span></div><div><span style="font-size:13px;font-family:arial,sans-serif"><br>
</span></div>
</blockquote></div><br></div>