Bug 12522 - [PATCH] Send last error messages to sender
Summary: [PATCH] Send last error messages to sender
Status: RESOLVED MOVED
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.1.3
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks: 12525
  Show dependency treegraph
 
Reported: 2017-01-16 21:26 UTC by Ben RUBSON
Modified: 2020-05-26 17:14 UTC (History)
0 users

See Also:


Attachments
Send last error messages to sender (2.19 KB, patch)
2017-01-16 21:26 UTC, Ben RUBSON
no flags Details
Send last error messages to sender (2.11 KB, patch)
2017-01-17 20:15 UTC, Ben RUBSON
no flags Details
Send last error messages to sender (2.30 KB, patch)
2017-01-18 14:00 UTC, Ben RUBSON
no flags Details
Send last error messages to sender (2.30 KB, patch)
2018-02-13 17:06 UTC, Ben RUBSON
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ben RUBSON 2017-01-16 21:26:11 UTC
Created attachment 12832 [details]
Send last error messages to sender

Hello,

Here is a patch which sends last error messages to sender for a file-transfer which failed.

It helps especially with protocol < 31.

This can be useful for example to know that a FS is full.

Thank you !

Ben



### Without :

/repository/mybigfile.iso
        539.26M   6%   11.21MB/s    0:11:01  
rsync: [sender] write error: Broken pipe (32)
rsync error: error in file IO (code 11) at io.c(831) [sender=3.1.2]



### With (of course the interesting message here is the first one) :

/repository/mybigfile.iso
        539.26M   6%   11.21MB/s    0:11:01  
rsync: write failed on "/repository/mybigfile.iso" (in bkp): Disc quota exceeded (69)
rsync error: error in file IO (code 11) at receiver.c(400) [receiver=3.1.2]
rsync error: error in file IO (code 11) at io.c(1633) [generator=3.1.2]
rsync: [sender] write error: Broken pipe (32)
rsync error: error in file IO (code 11) at io.c(831) [sender=3.1.2]
Comment 1 Ben RUBSON 2017-01-17 20:15:13 UTC
Created attachment 12838 [details]
Send last error messages to sender

Nicer / smarter version.
Comment 2 Ben RUBSON 2017-01-18 14:00:08 UTC
Created attachment 12841 [details]
Send last error messages to sender

Error correction on sender side.
Comment 3 Ben RUBSON 2018-02-13 17:06:00 UTC
Created attachment 13959 [details]
Send last error messages to sender

Modified patch to seamlessly suit rsync 3.1.3.
Thx !
Comment 4 Ben RUBSON 2020-05-26 17:14:07 UTC
Patch moved : https://github.com/WayneD/rsync/pull/2