Re: [PATCH] exfat: preserve creation times during rename
From: Namjae Jeon
Date: Tue Oct 27 2026 - 18:16:15 EST
On Tue, Oct 27, 2026 at 6:14 PM Hungyu Lin <dennylin0707@xxxxxxxxx> wrote:
>
> exfat_rename() resets the destination parent directory's i_crtime after
> every successful rename. A normal mv within that directory therefore
> changes its STATX_BTIME, and the new creation time is also written to
> disk. Moving a child does not recreate its parent directory.
>
> The function also resets i_crtime on an overwritten target inode. An
> application holding an open file descriptor can observe its birth time
> change even though it still refers to the same inode.
>
> Remove both creation-time updates. simple_rename_timestamp() already
> updates the modification and change times required by rename, while
> creation times should remain unchanged. Jeff Layton questioned these
> updates during the timestamp accessor conversion, but they remain in
> the current implementation.
>
> Fixes: 5f2aa075070c ("exfat: add inode operations")
> Suggested-by: Jeff Layton <jlayton@xxxxxxxxxx>
> Link: https://lore.kernel.org/r/bb698e294b0d4dbbbad4b94048693360010b8010.camel@xxxxxxxxxx
> Signed-off-by: Hungyu Lin <dennylin0707@xxxxxxxxx>
Applied it to #dev.
Thanks!