linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* open command fails in UBIFS when pass O_DIRECT Flag
@ 2009-07-14 14:25 naveen yadav
  2009-07-15  8:05 ` Adrian Hunter
  0 siblings, 1 reply; 4+ messages in thread
From: naveen yadav @ 2009-07-14 14:25 UTC (permalink / raw)
  To: Linux-MTD Mailing List

Hi all,

I am using UBIFS file system, and i am able to read/write.
But when i use O_DIRECT flag it fails in open command. will you pls
let me know is it issue with UBIFS.
If i use jffs2 or other file system there is no problem.

Here is my test program

#define _GNU_SOURCE
#include <stdio.h>
#include <fcntl.h>
#include <sys/stat.h>

int main()
{
int w_fd=0;
if ((w_fd = open("temp.tmp", O_RDWR | O_CREAT |O_DIRECT , 0666)) < 0)
        {

                perror("fopen");

                return 0;
        }


}

Best Regards
Naveen

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: open command fails in UBIFS when pass O_DIRECT Flag
  2009-07-14 14:25 open command fails in UBIFS when pass O_DIRECT Flag naveen yadav
@ 2009-07-15  8:05 ` Adrian Hunter
  2009-07-15 19:27   ` Jon Fraser
  0 siblings, 1 reply; 4+ messages in thread
From: Adrian Hunter @ 2009-07-15  8:05 UTC (permalink / raw)
  To: naveen yadav; +Cc: Linux-MTD Mailing List

naveen yadav wrote:
> I am using UBIFS file system, and i am able to read/write.
> But when i use O_DIRECT flag it fails in open command. will you pls
> let me know is it issue with UBIFS.

UBIFS does not support direct I/O, sorry.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: open command fails in UBIFS when pass O_DIRECT Flag
  2009-07-15  8:05 ` Adrian Hunter
@ 2009-07-15 19:27   ` Jon Fraser
  2009-07-16  5:55     ` Adrian Hunter
  0 siblings, 1 reply; 4+ messages in thread
From: Jon Fraser @ 2009-07-15 19:27 UTC (permalink / raw)
  To: Adrian Hunter; +Cc: jfraser, Linux-MTD Mailing List, naveen yadav

Is this planned for the future?
Is there any technical reason that prevents implementing direct IO?

Jon Fraser
Broadcom

On Wed, 2009-07-15 at 01:05 -0700, Adrian Hunter wrote:
> naveen yadav wrote:
> > I am using UBIFS file system, and i am able to read/write.
> > But when i use O_DIRECT flag it fails in open command. will you pls
> > let me know is it issue with UBIFS.
> 
> UBIFS does not support direct I/O, sorry.
> 
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: open command fails in UBIFS when pass O_DIRECT Flag
  2009-07-15 19:27   ` Jon Fraser
@ 2009-07-16  5:55     ` Adrian Hunter
  0 siblings, 0 replies; 4+ messages in thread
From: Adrian Hunter @ 2009-07-16  5:55 UTC (permalink / raw)
  To: jfraser@broadcom.com; +Cc: Linux-MTD Mailing List, naveen yadav

Jon Fraser wrote:
> Is this planned for the future?

Not at the moment.

> Is there any technical reason that prevents implementing direct IO?

Not that I can think of.  But memory mapping is probably better and
that is supported.

> 
> Jon Fraser
> Broadcom
> 
> On Wed, 2009-07-15 at 01:05 -0700, Adrian Hunter wrote:
>> naveen yadav wrote:
>>> I am using UBIFS file system, and i am able to read/write.
>>> But when i use O_DIRECT flag it fails in open command. will you pls
>>> let me know is it issue with UBIFS.
>> UBIFS does not support direct I/O, sorry.
>>
>> ______________________________________________________
>> Linux MTD discussion mailing list
>> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>>
> 
> 
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-07-16  5:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-14 14:25 open command fails in UBIFS when pass O_DIRECT Flag naveen yadav
2009-07-15  8:05 ` Adrian Hunter
2009-07-15 19:27   ` Jon Fraser
2009-07-16  5:55     ` Adrian Hunter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).