open(filename, O_DIRECT) on ntfs fails
Bug #269946 reported by
Agostino Russo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
It is not possible to open files in an ntfs/fuse partition when the O_DIRECT flag is used with the 2.6.27-2 kernel ("invalid argument" is returned). Hardy (2.6.24) is not affected, opening files on other file systems works ok.
To reproduce try to open a file within an ntfs partition using open(filename, O_RDONLY|O_DIRECT)
This also affects Wubi (parted_server strace follows):
8222 read(4, "Retry\n", 4096) = 6
8222 open("/
8222 open("/
8222 write(5, "Error\n", 6) = 6
Can you reproduce with non-swap files too? If the swap is on then the error is correct (protects from crash, system corruption) though I think the errno is indeed misleading (it's a kernel problem).