Public bug reported:

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 (partman_server strace follows):

8222  read(4, "Retry\n", 4096)          = 6
8222  open("/host/ubuntu/disks/swap.disk", O_RDWR|O_DIRECT|O_LARGEFILE) = -1 
EINVAL (Invalid argument)
8222  open("/host/ubuntu/disks/swap.disk", O_RDONLY|O_DIRECT|O_LARGEFILE) = -1 
EINVAL (Invalid argument)
8222  write(5, "Error\n", 6)            = 6

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  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 with an ntfs partition using
+ To reproduce try to open a file within an ntfs partition using
  open(filename, O_RDONLY|O_DIRECT)
  
  This also affects Wubi (partman_server strace follows):
  
  8222  read(4, "Retry\n", 4096)          = 6
  8222  open("/host/ubuntu/disks/swap.disk", O_RDWR|O_DIRECT|O_LARGEFILE) = -1 
EINVAL (Invalid argument)
  8222  open("/host/ubuntu/disks/swap.disk", O_RDONLY|O_DIRECT|O_LARGEFILE) = 
-1 EINVAL (Invalid argument)
  8222  write(5, "Error\n", 6)            = 6

-- 
open(filename, O_DIRECT) on ntfs fails
https://bugs.launchpad.net/bugs/269946
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to