O_DIRECT

Carson Gaspar carson at taltos.org
Tue Jul 25 23:07:30 GMT 2006


--On Sunday, July 23, 2006 9:35 PM -0700 Tom Limoncelli 
<yesthattom at gmail.com> wrote:

> On 7/23/06, Dan Stromberg <strombrg at dcs.nac.uci.edu> wrote:
>>
>> It'd be pretty cool if rsync supported use of O_DIRECT on platforms that
>> support it, with or without my odirect package:
>
> It would be great benefit for Linux and FreeBSD users.
>
> I know there are equivalents for Solaris (but I don't see it in a quick
> review of open(2) ) and Mac OS X must support something like it since
> "ditto" has a "--nocache" option that is similar.

For Solaris, see directio(3C). You call directio(fd, advice) after open().

-- 
Carson


More information about the rsync mailing list