In thinking about this some more, you probably want to limit your O_DIRECT to just opens on files -- not sockets.
I think that might be the cause of the error I got. The other stuff may still apply, but may be OS dependent. It doesn't look like it is real easy to tell in the open routine where the O_DIRECT flag is now (w/your patch) if we are operating on a file or on a socket. Ug. -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html