Re: [PATCH v7 00/31] Report NTFS metadata errors and shutdown through FAN_FS_ERROR

From: Namjae Jeon

Date: Sat Dec 05 2026 - 02:26:34 EST


On Fri, Dec 4, 2026 at 4:49 PM Xuewen Wang <wangxuewen_ky@xxxxxxx> wrote:
>
> From: Xuewen Wang <wangxuewen@xxxxxxxxxx>
>
> Report NTFS metadata corruption, failed recovery and shutdown through
> FAN_FS_ERROR. File events identify the affected base file; volume events
> cover errors without a safe file reference. Preserve the volume error bit
> and errors= policy. Before SB_ACTIVE, metadata reporting helpers record
> the volume error state without queuing an event.
>
> Use -EFSCORRUPTED (-EUCLEAN) for confirmed corruption in the updated error
> paths, both in reports and in failing NTFS operations. Preserve genuine
> I/O, allocation and unsupported-format errors. Ordinary EOF and missing
> names or streams are not corruption. Partial-I/O and best-effort
> operations retain their return semantics; independent recovery failures
> can report a different errno from the initiating operation.
>
> Based on ntfs-next commit 660cb7022966 ("ntfs: map a read past the end
> of the runlist as a hole").
Please check Sashiko's review comments:
https://sashiko.dev/#/patchset/20261204074924.3927421-1-wangxuewen_ky%40163.com

Thanks.