open command fails in UBIFS when pass O_DIRECT Flag
naveen yadav
yad.naveen at gmail.com
Tue Jul 14 10:25:32 EDT 2009
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
More information about the linux-mtd
mailing list