Re: [PATCH v1 v1] ntfs: do not update ctime when setxattr fails

Namjae Jeon <[email protected]>
Newsgroups org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel
Message-ID <CAKYAXd_xgHT=xDQMEGkKASZTtWU=Dv9k8r6zV-r0doiWcxt7Mg@mail.gmail.com>
On Tue, Aug 18, 2026 at 5:28 PM Baolin Liu <[email protected]> wrote:
>
> From: Baolin Liu <[email protected]>
>
> ntfs_setxattr() updates ctime and marks the inode dirty even when
> the operation fails. A failed setxattr(2) must not change file
> metadata.
>
> Update ctime only on success.
>
> Fixes: fc053f05ca28 ("ntfs: add reparse and ea operations")
> Signed-off-by: Baolin Liu <[email protected]>
Applied it to #ntfs-next.
Thanks!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.