[PATCH 3/3] Inform kernel of FADV_DONTNEED hint in receiver

2010-11-23 Thread Ben Gamari
Use the FADV_DONTNEED fadvise hint after finishing writing to a destinataion fd in the receiver. --- receiver.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/receiver.c b/receiver.c index 39c5e49..33b21fb 100644 --- a/receiver.c +++ b/receiver.c @@ -721,6 +721,12 @@

[PATCH 2/3] Inform kernel of FADV_DONTNEED hint in sender

2010-11-23 Thread Ben Gamari
Use the FADV_DONTNEED fadvise hint after finishing reading an origin fd in the sender. --- sender.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/sender.c b/sender.c index 59dae7d..a934bfe 100644 --- a/sender.c +++ b/sender.c @@ -338,6 +338,12 @@ void send_files(int

[PATCH 1/3] Add fadvise interface wrapper

2010-11-23 Thread Ben Gamari
With recent discussion on the LKML[1], it seems likely that Linux will finally support posix_fadvise in a useful way with the FADV_DONTNEED flag. This should allow us to minimize the effect of rsync on the system's working set. Add the necessary wrapper to syscall.c. [1] http://lkml.org/lkml/2010/

回覆: �ظ�: How to sync an exact list o f files, Including deletes!?

2010-11-23 Thread (New Plaza F9) Lee, Sam
I'm,Sorry ! -原始郵件- 寄件者: rsync-boun...@lists.samba.org [mailto:rsync-boun...@lists.samba.org] 代理 Robert Holtzman 寄件日期: 2010年11月24日 10:18 收件者: rsync@lists.samba.org 主旨: Re: �ظ�: How to sync an exact list of files, Including deletes!? On Wed,

Re: �ظ� : How to sync an exact list of files, Including deletes!?

2010-11-23 Thread Robert Holtzman
On Wed, Nov 24, 2010 at 08:42:16AM +0800, (New Plaza F9) Lee, Sam wrote: > > 2010/11/23 23:36:52 [444] rsync: connection unexpectedly closed (255 bytes > received so far) [generator] > 2010/11/23 23:36:52 [444] rsync error: error in rsync protocol data stream > (code 12) at io.c(641) [generator=

Re: How to sync an exact list of files, Including deletes!?

2010-11-23 Thread Axel Kittenberger
>> $ /usr/bin/rsync -vP  -d /tmp/ltest.WQS/src//n/c/d/ >> /tmp/ltest.WQS/trg//n/c/d/ >> building file list ... >> rsync: change_dir "/tmp/ltest.WQS/src//n/c/d" failed: No such file or >> directory (2) >> 0 files to consider >> created directory /tmp/ltest.WQS/trg//n/c/d >> >> I expect rsync to ju

回覆: How to sync an exact list of files, In cluding deletes!?

2010-11-23 Thread (New Plaza F9) Lee, Sam
2010/11/23 23:36:52 [444] rsync: connection unexpectedly closed (255 bytes received so far) [generator] 2010/11/23 23:36:52 [444] rsync error: error in rsync protocol data stream (code 12) at io.c(641) [generator=3.0.4] Hello,My Friends,what's mean that? Thanks! -原始�]件--

Re: How to sync an exact list of files, Including deletes!?

2010-11-23 Thread Matt McCutchen
On Tue, 2010-11-23 at 23:35 +0100, Axel Kittenberger wrote: > > You want the --delete-missing-args option of the current development > > rsync. > > Yes, I suppose I want that! :-) I hope this works with --force as well > if there is a dir in --files-from? Yes. > I got another question tough runn

Re: How to sync an exact list of files, Including deletes!?

2010-11-23 Thread Axel Kittenberger
And another case if the parent directory of the target also doesnt exist: /usr/bin/rsync -r /tmp/ltest.Pkr/src//l/w/c/r/a/ /tmp/ltest.Pkr/trg//l/w/c/r/a/ rsync: change_dir "/tmp/ltest.Pkr/src//l/w/c/r/a" failed: No such file or directory (2) rsync: mkdir "/tmp/ltest.Pkr/trg//l/w/c/r/a" failed: No

Re: How to sync an exact list of files, Including deletes!?

2010-11-23 Thread Axel Kittenberger
> You want the --delete-missing-args option of the current development > rsync. Yes, I suppose I want that! :-) I hope this works with --force as well if there is a dir in --files-from? But futher supposing it takes quite a long time until I can suppose every user with medicore updateness has a rs

[RFC PATCH] fadvise support in rsync

2010-11-23 Thread Ben Gamari
Sending the patchset leader to the list again since the first message is being held approval for the unbelievably braindead reason of there being too many recipients. For the patches themselves, see the lkml or prod the moderators to approve the posts. Moderators: Could you please approve the fir

[RFC PATCH] fadvise support in rsync

2010-11-23 Thread Ben Gamari
Warning for kernel folks: I'm not much of an mm person; let me know if I got anything horribly wrong. Many folks use rsync in their nightly backup jobs. In these applications, speed is of minimal concern and should be sacrificed in order to minimize the effect of rsync on the rest of the machine.

DO NOT REPLY [Bug 7120] Variable bandwidth limit .. bwlimit

2010-11-23 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=7120 e...@logtenberg.eu changed: What|Removed |Added CC||e...@logtenberg.eu --- Comment

DO NOT REPLY [Bug 7799] Deletion of NetWare trustees is not propagated

2010-11-23 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=7799 --- Comment #7 from ivan.solo...@gmail.com 2010-11-23 03:38 CST --- Created an attachment (id=6081) --> (https://bugzilla.samba.org/attachment.cgi?id=6081&action=view) Second synchronization I delete 1 trustee from source. On target fi

DO NOT REPLY [Bug 7799] Deletion of NetWare trustees is not propagated

2010-11-23 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=7799 --- Comment #6 from ivan.solo...@gmail.com 2010-11-23 03:36 CST --- Created an attachment (id=6080) --> (https://bugzilla.samba.org/attachment.cgi?id=6080&action=view) First synchronization - 1 trustee are been processed -- Configure