Re: [PATCH] ntfs: not change 0-byte $DATA attribute to non-resident
From: Namjae Jeon
Date: Fri May 29 2026 - 20:23:07 EST
On Thu, May 28, 2026 at 11:15 AM Hyunchul Lee <hyc.lee@xxxxxxxxx> wrote:
>
> When ntfs_resident_attr_resize() cannot grow a resident attribute in
> place, it retries after converting other resident attributes to
> non-resident to free space in the MFT recrord.
>
> Do not select zero-length resident $DATA attributes for this conversion.
> fsck treats 0-byte non-resident $DATA attribute as corruptions.
>
> Signed-off-by: Hyunchul Lee <hyc.lee@xxxxxxxxx>
Applied it to #ntfs-next.
Thanks!