DO NOT REPLY [Bug 7876] please implement o_direct

samba-bugs at samba.org samba-bugs at samba.org
Tue Jan 25 13:30:19 MST 2011


https://bugzilla.samba.org/show_bug.cgi?id=7876





------- Comment #3 from wayned at samba.org  2011-01-25 14:30 CST -------
(In reply to comment #2)
> Please note that this is a very amateurish attempt, but I would really like to
> get feedback to improve on this.

See the patch drop-cache.diff in older releases.  There is also a newer version
of the patch that someone else wrote.

This won't be in the official release until OS support is better.  At present
the POSIX_FADV_DONTNEED option in linux does all kinds of weird things (or did
at the time the patch was written by Tobi Oetiker), such as uncaching files
that someone else put into the cache (so, if you copy a file that someone else
is using heavily, it totally vanishes from the disk cache).

I still say that a better solution than modifying various copy programs would
be to have a helper app (ala nice, etc.) that would use a pre-loaded library to
do whatever the current OS needs to do to make the file reading not flood the
cache.  Then it could be used with cp, tar, etc.


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the rsync mailing list