Re: [Yaffs] Can't open files with O_DIRECT

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: ian@brightstareng.com
Date:  
To: yaffs
Subject: Re: [Yaffs] Can't open files with O_DIRECT
On Tuesday 29 August 2006 23:56, Sam Neubardt wrote:
> Has anyone else experienced this, and/or does anyone have an
> idea for a solution?
> I'm fairly sure this is a yaffs issue; the test has failed on
> two different distros and kernel versions and several mtd
> versions. With O_DIRECT disabled the test runs, and O_DIRECT
> works when used on other filesystems. Does O_DIRECT have to
> be explicitly enabled within yaffs for this to function?


Yaffs (yaffs_fs.c) does not implement linux's aio methods.
See struct file_operations, members aio_read, aio_write etc.
These are relatively new interfaces. Your test is probably
getting the EINVAL from aio_setup_iocb().

-imcd