Re: [regression] WOF compressed files broken in ntfs3 since 7.0-rc1; fixes exists, but are ignored
From: Senjin
Date: Sat Dec 05 2026 - 17:53:43 EST
(Resending as plain text, my first reply was rejected by the lists
for containing HTML. Sorry for the duplicate.)
Hi Thorsten, all,
Thanks for picking this up. Marcin's patch is the better fix of the
two: it is smaller, handles the case in ntfs_llseek() by falling back
to generic_file_llseek_size() as before the regression, and also
covers deduplicated files, which mine does not. Please consider my
patch [1] superseded by his.
I tested it on 7.3.7 against WOF compressed files on an NTFS data
volume: without a fix SEEK_DATA returns -ENXIO and cp produces
all-zero copies; with Marcin's patch SEEK_DATA/SEEK_HOLE return 0 and
i_size, and cp copies match a plain read byte for byte. A regular
uncompressed file behaves the same either way.
Tested-by: Senjin <senjin@xxxxxxxxxxxxx>
[1] https://lore.kernel.org/ntfs3/6adc95fc26efdd1658b01fc5@xxxxxxxxxxxxxx/
Thanks,
Senjin