[OpenWrt-Devel] [PATCH] tools/e2fsprogs O_DIRECT fix on Darwin

Hauke Mehrtens hauke at hauke-m.de
Sun Dec 19 12:46:41 CET 2010

On 12/19/2010 05:33 AM, Roback, Joe wrote:
> Hello.
> O_DIRECT is undefined on Darwin. To get direct IO on darwin, one can use fcntl(fd, F_NOCACHE, 1); Below is a patch to e2fsprogs to use fcntl() on system that don't define O_DIRECT and have F_NOCACHE defined.
> Made to go in "tools/e2fsprogs/patches/003-darwin_directio_fix.patch" using Quilt (http://wiki.openwrt.org/doc/devel/patches)
> Signed-off-by: Joe Roback <joe at roback.cc>
Thank you for reporting and fixing this issue. It is now applied. I do
not have a Darwin system so I have not detected this problem. Could you
please report this issue to the e2fsprogs maintainers at
http://sourceforge.net/tracker/?group_id=2406&atid=102406 so they can
fix it in mainline.


More information about the openwrt-devel mailing list