From 639646be35c78596777e5d842d14d17457874701 Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Sat, 14 Jun 2025 14:29:00 +0530 Subject: [PATCH] vfs_ceph: Add ctime processing to SMB_VFS_FNTIMES ctime was only missing from the list of timestamps processed for various checks. Signed-off-by: Anoop C S Reviewed-by: Ralph Boehme --- source3/modules/vfs_ceph.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source3/modules/vfs_ceph.c b/source3/modules/vfs_ceph.c index 3913cb01b2c..7b9b2ec3638 100644 --- a/source3/modules/vfs_ceph.c +++ b/source3/modules/vfs_ceph.c @@ -963,6 +963,10 @@ static int cephwrap_fntimes(struct vfs_handle_struct *handle, stx.stx_mtime = ft->mtime; mask |= CEPH_SETATTR_MTIME; } + if (!is_omit_timespec(&ft->ctime)) { + stx.stx_ctime = ft->ctime; + mask |= CEPH_SETATTR_CTIME; + } if (!is_omit_timespec(&ft->create_time)) { stx.stx_btime = ft->create_time; mask |= CEPH_SETATTR_BTIME; -- 2.47.2