Yes szaka, that seems to happen with any file in an ntfs filesystem. At least when using the 2.6.27-2 kernel. I just happened to discover it while parted_server was trying to open the swap.disk file.
On Sat, Sep 13, 2008 at 9:44 PM, Szabolcs Szakacsits <[EMAIL PROTECTED]> wrote: > 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). > > -- > open(filename, O_DIRECT) on ntfs fails > https://bugs.launchpad.net/bugs/269946 > You received this bug notification because you are a direct subscriber > of the bug. > > Status in "linux" source package in Ubuntu: New > > 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 (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 > ** 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 within an ntfs partition using open(filename, O_RDONLY|O_DIRECT) - This also affects Wubi (partman_server strace follows): + This also affects Wubi (parted_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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs