Re: [PATCH v1] ntfs: support persistent noatime attribute

From: Namjae Jeon

Date: Fri Oct 16 2026 - 21:34:29 EST


On Fri, Oct 16, 2026 at 12:10 PM Xuewen Wang <wangxuewen@xxxxxxxxxx> wrote:
>
> NTFS currently rejects FS_NOATIME_FL in its fileattr setter. This prevents
> users from disabling automatic access-time updates on individual files or
> directories with chattr +A.
>
> Store noatime in bit 3 of the private $LINUXFLAGS EA and restore S_NOATIME
> when loading an inode. Report and accept FS_NOATIME_FL in the fileattr
> callbacks, updating the in-memory flag only after the EA update succeeds.
> The VFS then suppresses automatic atime updates for the inode, while
> chattr -A restores the mount's atime policy.
>
> Document the new on-disk bit and that newly created children do not inherit
> the attribute.
>
> Suggested-by: Baolin Liu <liubaolin@xxxxxxxxxx>
> Reviewed-by: Baolin Liu <liubaolin@xxxxxxxxxx>
> Signed-off-by: Xuewen Wang <wangxuewen@xxxxxxxxxx>
Applied it to #ntfs-next.
Thanks!