samba-bugs at samba.org
2017-Oct-12 14:28 UTC
[Bug 13083] New: [PATCH] Use both partial file + basis file
https://bugzilla.samba.org/show_bug.cgi?id=13083
Bug ID: 13083
Summary: [PATCH] Use both partial file + basis file
Product: rsync
Version: 3.1.3
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5
Component: core
Assignee: wayned at samba.org
Reporter: ben.rubson at gmail.com
QA Contact: rsync-qa at samba.org
Created attachment 13681
--> https://bugzilla.samba.org/attachment.cgi?id=13681&action=edit
Use both partial file + basis file
Hi,
In case of a transfer restart, if a partial file has been kept on receiving
side, this patch makes rsync to use the usual basis file (if found) in addition
to the partial file to speed-up the transfer.
Technically :
- if generator founds a partial file and a basis file, it will symlink the
basis file next the the partial file ;
- generator will send checksums to the sender from both files, as if there were
only one big basis file ;
- between the checksums of the 2 files, generator will send some dummy 0
checksums so that sender will see the second file's blocks as if they were
after the end of the final file, thus sender will be able to fully use them,
especially useful using --inplace ;
- receiver, if working on a partial file as basis file, will try to open the
second basis file thanks to the symlink ;
- receiver, if asked to handle a checksum with an offset greater than the
partial file's length, will take the corresponding block from the second
basis
file.
Compatible with all sender's versions, as modification only takes place on
receiver side.
Fully compatible with the "allow --partial-dir with --inplace" patch :
https://bugzilla.samba.org/show_bug.cgi?id=13071
Hope to see both in 3.1.3 :)
Of course feel free to comment !
Thx !
Ben
--
You are receiving this mail because:
You are the QA Contact for the bug.
samba-bugs at samba.org
2018-Feb-13 16:59 UTC
[Bug 13083] [PATCH] Use both partial file + basis file
https://bugzilla.samba.org/show_bug.cgi?id=13083
Ben RUBSON <ben.rubson at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #13681|0 |1
is obsolete| |
--- Comment #1 from Ben RUBSON <ben.rubson at gmail.com> ---
Created attachment 13958
--> https://bugzilla.samba.org/attachment.cgi?id=13958&action=edit
Use both partial file + basis file
Slightly modified patch to seamlessly suit rsync 3.1.3.
Thx !
--
You are receiving this mail because:
You are the QA Contact for the bug.
samba-bugs at samba.org
2020-Apr-09 16:21 UTC
[Bug 13083] [PATCH] Use both partial file + basis file
https://bugzilla.samba.org/show_bug.cgi?id=13083
Ben RUBSON <ben.rubson at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |LATER
Status|NEW |RESOLVED
--- Comment #2 from Ben RUBSON <ben.rubson at gmx.com> ---
Closing this for now.
At least the following patch would be nice, as a first step :
https://bugzilla.samba.org/show_bug.cgi?id=13071
Many thx !
--
You are receiving this mail because:
You are the QA Contact for the bug.
Apparently Analagous Threads
- [Bug 13071] New: [PATCH] Allow --partial-dir with --inplace
- DO NOT REPLY [Bug 7123] New: Use both old dest file and partial file as basis data
- rsync of a reflink from OCFS2
- [Bug 12527] New: Sender waits for timeout when fuzzy basis file found
- [Bug 13082] New: [REQ] Hardware / SSE based MD5 operations