Re: [PATCH] ntfs3: prevent operations on NTFS system files

From: Tetsuo Handa

Date: Tue Oct 14 2025 - 10:59:31 EST


On 2025/10/14 23:39, Deepanshu Kartikey wrote:
> NTFS system files (inode numbers below MFT_REC_FREE) should not have
> their size modified by userspace as this can corrupt the filesystem.

Excuse me, but how can truncate operation succeed? As far as I tested,
truncate operation on files in $Extend directory fails even without your patch
( https://lkml.kernel.org/r/842b3b43-0a1c-4fe8-adff-94fdb2cee59b@xxxxxxxxxxxxxxxxxxx ).
Are there other NTFS system files which do not belong to $Extend directory?