All of lore.kernel.org
 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

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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.