Re: --partial does not "unhide" the files

2018-12-31 Thread Heiko Schlittermann via rsync
Kevin Korb via rsync  (Mo 31 Dez 2018 20:50:03 CET):
> I can't say I have any idea why rsync would just skip that step and I
> can't duplicate it myself.
> Your only recourse might be to use --inplace on that system.

Hm. receiver.c or rsync.c both contain the debug info string "renaming
%s to %s\n". Which of both files is responsible on the receiving side?

The target systems is built with the buildroot tool (I suppose) and is
basically just a pimped busybox environment.

--
Heiko


signature.asc
Description: PGP signature
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: --partial does not "unhide" the files

2018-12-31 Thread Kevin Korb via rsync
I can't say I have any idea why rsync would just skip that step and I
can't duplicate it myself.

Your only recourse might be to use --inplace on that system.

On 12/31/18 12:33 PM, Heiko Schlittermann via rsync wrote:
> Kevin Korb via rsync  (So 30 Dez 2018 23:56:44 CET):
>> I think --partial might be a red herring here.  It only applies to what
>> happens when rsync is aborted in the middle of a file.  What happens
>> without -P?
> 
> Same happens w/o --partial. I append 2 logs:
> - a from localhost to remote server, exposing the missing "rename"
> - b from localhost to localhost
> 
> In both cases the file itself is empty, and didn't exist on the
> receivers side.
> 
> The unified diff looks like this:
> 
> --- /tmp/a2018-12-31 18:30:38.747209487 +0100
> +++ /tmp/b2018-12-31 18:30:45.623719009 +0100
> @@ -1,6 +1,6 @@
> -cmd= machine=platte user= path=/tmp/y
> -cmd[0]=ssh cmd[1]=platte cmd[2]=rsync cmd[3]=--server 
> cmd[4]=-e.LsfxC cmd[5]=. cmd[6]=/tmp/y
> -opening connection using: ssh platte rsync --server -e.LsfxC . 
> /tmp/y  (7 args)
> +cmd= machine=localhost user= path=/tmp/y
> +cmd[0]=ssh cmd[1]=localhost cmd[2]=rsync cmd[3]=--server 
> cmd[4]=-e.LsfxC cmd[5]=. cmd[6]=/tmp/y
> +opening connection using: ssh localhost rsync --server -e.LsfxC . 
> /tmp/y  (7 args)
>  msg checking charset: UTF-8
>  (Client) Protocol versions: remote=31, negotiated=31
>  [sender] make_file(x,*,0)
> @@ -10,7 +10,7 @@
>  [sender] flist_eof=1
>  file list sent
>  send_files starting
> -server_recv(2) starting pid=16534
> +server_recv(2) starting pid=18896
>  recv_file_name(x)
>  received 1 names
>  [Receiver] flist_eof=1
> @@ -18,7 +18,7 @@
>  [Receiver] i=0 1 x mode=0100644 len=0 flags=1000
>  recv_file_list done
>  get_local_name count=1 /tmp/y
> -generator starting pid=16534
> +generator starting pid=18896
>  delta-transmission enabled
>  recv_generator(y,0)
>  send_files(0, ./x)
> @@ -30,10 +30,11 @@
>  false_alarms=0 hash_hits=0 matches=0
>  sender finished ./x
>  generate_files phase=1
> -recv_files(1) starting
>  send_files phase=1
> +recv_files(1) starting
>  recv_files(y)
>  got file_sum
> *   +renaming .y.Oq45md to y
>  recv_files phase=1
>  generate_files phase=2
>  send_files phase=2
> @@ -43,9 +44,9 @@
>  recv_files finished
>  generate_files phase=3
>  generate_files finished
> -client_run waiting on 18876
> +client_run waiting on 18878
> 
> -sent 75 bytes  received 533 bytes  1,216.00 bytes/sec
> +sent 75 bytes  received 561 bytes  424.00 bytes/sec
>  total size is 0  speedup is 0.00
>  [sender] _exit_cleanup(code=0, file=main.c, line=1196): entered
>  [sender] _exit_cleanup(code=0, file=main.c, line=1196): about to call 
> exit(0)
> 
> 
> Best regards from Dresden/Germany
> Viele Grüße aus Dresden
> Heiko Schlittermann
> --
>  SCHLITTERMANN.de  internet & unix support -
>  Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
>  gnupg encrypted messages are welcome --- key ID: F69376CE -
>  ! key id 7CBF764A and 972EAC9F are revoked since 2015-01  -
> 
> 

-- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
Kevin Korb  Phone:(407) 252-6853
Systems Administrator   Internet:
FutureQuest, Inc.   ke...@futurequest.net  (work)
Orlando, Floridak...@sanitarium.net (personal)
Web page:   https://sanitarium.net/
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,



signature.asc
Description: OpenPGP digital signature
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: --partial does not "unhide" the files

2018-12-31 Thread Heiko Schlittermann via rsync
Kevin Korb via rsync  (So 30 Dez 2018 23:56:44 CET):
> I think --partial might be a red herring here.  It only applies to what
> happens when rsync is aborted in the middle of a file.  What happens
> without -P?

Same happens w/o --partial. I append 2 logs:
- a from localhost to remote server, exposing the missing "rename"
- b from localhost to localhost

In both cases the file itself is empty, and didn't exist on the
receivers side.

The unified diff looks like this:

--- /tmp/a  2018-12-31 18:30:38.747209487 +0100
+++ /tmp/b  2018-12-31 18:30:45.623719009 +0100
@@ -1,6 +1,6 @@
-cmd= machine=platte user= path=/tmp/y
-cmd[0]=ssh cmd[1]=platte cmd[2]=rsync cmd[3]=--server cmd[4]=-e.LsfxC 
cmd[5]=. cmd[6]=/tmp/y
-opening connection using: ssh platte rsync --server -e.LsfxC . /tmp/y  
(7 args)
+cmd= machine=localhost user= path=/tmp/y
+cmd[0]=ssh cmd[1]=localhost cmd[2]=rsync cmd[3]=--server 
cmd[4]=-e.LsfxC cmd[5]=. cmd[6]=/tmp/y
+opening connection using: ssh localhost rsync --server -e.LsfxC . 
/tmp/y  (7 args)
 msg checking charset: UTF-8
 (Client) Protocol versions: remote=31, negotiated=31
 [sender] make_file(x,*,0)
@@ -10,7 +10,7 @@
 [sender] flist_eof=1
 file list sent
 send_files starting
-server_recv(2) starting pid=16534
+server_recv(2) starting pid=18896
 recv_file_name(x)
 received 1 names
 [Receiver] flist_eof=1
@@ -18,7 +18,7 @@
 [Receiver] i=0 1 x mode=0100644 len=0 flags=1000
 recv_file_list done
 get_local_name count=1 /tmp/y
-generator starting pid=16534
+generator starting pid=18896
 delta-transmission enabled
 recv_generator(y,0)
 send_files(0, ./x)
@@ -30,10 +30,11 @@
 false_alarms=0 hash_hits=0 matches=0
 sender finished ./x
 generate_files phase=1
-recv_files(1) starting
 send_files phase=1
+recv_files(1) starting
 recv_files(y)
 got file_sum
*   +renaming .y.Oq45md to y
 recv_files phase=1
 generate_files phase=2
 send_files phase=2
@@ -43,9 +44,9 @@
 recv_files finished
 generate_files phase=3
 generate_files finished
-client_run waiting on 18876
+client_run waiting on 18878

-sent 75 bytes  received 533 bytes  1,216.00 bytes/sec
+sent 75 bytes  received 561 bytes  424.00 bytes/sec
 total size is 0  speedup is 0.00
 [sender] _exit_cleanup(code=0, file=main.c, line=1196): entered
 [sender] _exit_cleanup(code=0, file=main.c, line=1196): about to call 
exit(0)


Best regards from Dresden/Germany
Viele Grüße aus Dresden
Heiko Schlittermann
--
 SCHLITTERMANN.de  internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01  -
cmd= machine=platte user= path=/tmp/y
cmd[0]=ssh cmd[1]=platte cmd[2]=rsync cmd[3]=--server cmd[4]=-e.LsfxC 
cmd[5]=. cmd[6]=/tmp/y 
opening connection using: ssh platte rsync --server -e.LsfxC . /tmp/y  (7 
args)
msg checking charset: UTF-8
(Client) Protocol versions: remote=31, negotiated=31
[sender] make_file(x,*,0)
[sender] flist start=0, used=1, low=0, high=0
[sender] i=0 . x mode=0100644 len=0 flags=1000
send_file_list done
[sender] flist_eof=1
file list sent
send_files starting
server_recv(2) starting pid=16534
recv_file_name(x)
received 1 names
[Receiver] flist_eof=1
[Receiver] flist start=0, used=1, low=0, high=0
[Receiver] i=0 1 x mode=0100644 len=0 flags=1000
recv_file_list done
get_local_name count=1 /tmp/y
generator starting pid=16534
delta-transmission enabled
recv_generator(y,0)
send_files(0, ./x)
count=0 n=0 rem=0
send_files mapped ./x of size 0
calling match_sums ./x
x
sending file_sum
false_alarms=0 hash_hits=0 matches=0
sender finished ./x
generate_files phase=1
recv_files(1) starting
send_files phase=1
recv_files(y)
got file_sum
recv_files phase=1
generate_files phase=2
send_files phase=2
send files finished
total: matches=0  hash_hits=0  false_alarms=0 data=0
recv_files phase=2
recv_files finished
generate_files phase=3
generate_files finished
client_run waiting on 18876

sent 75 bytes  received 533 bytes  1,216.00 bytes/sec
total size is 0  speedup is 0.00
[sender] _exit_cleanup(code=0, file=main.c, line=1196): entered
[sender] _exit_cleanup(code=0, file=main.c, line=1196): about to call exit(0)
cmd= machine=localhost user= path=/tmp/y
cmd[0]=ssh cmd[1]=localhost cmd[2]=rsync cmd[3]=--server cmd[4]=-e.LsfxC 
cmd[5]=. cmd[6]=/tmp/y 
opening connection using: ssh localhost rsync --server -e.LsfxC . /tmp/y  
(7 args)
msg checking charset: UTF-8
(Client) Protocol versions: remote=31, negotiated=31
[sender] make_file(x,*,0)
[sender] flist start=0, used=1, low=0, high=0
[sender] i=0 . x mode=0100644 len=0 flags=1000
send_file_list done
[sender] flist_eof=1
file list sent
send_files starting