Bug 215864 - Unable to fully read some files with ntfs3
Summary: Unable to fully read some files with ntfs3
Status: NEW
Alias: None
Product: File System
Classification: Unclassified
Component: Other (show other bugs)
Hardware: x86-64 Linux
: P1 normal
Assignee: fs_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-19 19:57 UTC by Linus Kardell
Modified: 2022-04-24 14:28 UTC (History)
1 user (show)

See Also:
Kernel Version: 5.17.2
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Linus Kardell 2022-04-19 19:57:37 UTC
I'm trying out the ntfs3 kernel driver on OpenSUSE Tumbleweed, but I'm unable to read some files. I also posted about this here: https://reddit.com/r/openSUSE/comments/u693vm/no_such_file_or_directory_when_reading_some_files/

The files that it happens to are a few GiB in size. It doesn't fail immediately, rather when I read it with dd status=progress the first time it reads a bit into the file (a few MiB or over a hundred MiB, depending on the files, but it seems to always be the same distance for the same file), and then throws "No such file or directory".

On subsequent reads, it gets through the whole file. Only, it doesn't really, because the resulting content is wrong. It's the correct length, but past a certain point the it's all zeroes. So it never truly reads the whole file, but only sometimes throws an error (when it's not in disk cache?). The same file always comes out correct with ntfs-3g.

Also, not sure if related, but after I've mounted and unmounted a few times with ntf3 and ntfs-3g, ntfs3 starts throwing errors saying:

"mount: /windows/d: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error."

and refuses to mount it unless I add -o ro. ntfs-3g still mounts it, and ntfs3 mounts it after rebooting.

The filesystem has compression enabled, in case that matters (though the files should be incompressible, as they're gzipped).

I tried running, chkdsk from Windows, but that did not change anything.
Comment 1 Artem S. Tashkinov 2022-04-20 06:05:45 UTC
Please send to https://www.spinics.net/lists/ntfs3/index.html as well.
Comment 2 Linus Kardell 2022-04-22 19:50:02 UTC
I've now posted it to the mailing list: https://lore.kernel.org/ntfs3/780a74c2-5b01-8b99-6c91-1b64397ce6d3@gmail.com/T/#u, and the openSUSE bugzilla: https://bugzilla.opensuse.org/show_bug.cgi?id=1198669

Note You need to log in before you can comment on or make changes to this bug.