]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_ceph: Add ctime processing to SMB_VFS_FNTIMES
authorAnoop C S <anoopcs@samba.org>
Sat, 14 Jun 2025 08:59:00 +0000 (14:29 +0530)
committerRalph Boehme <slow@samba.org>
Mon, 30 Jun 2025 13:15:37 +0000 (13:15 +0000)
ctime was only missing from the list of timestamps processed for various
checks.

Signed-off-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_ceph.c

index 3913cb01b2c1e62579530151bcf92d15e9d42198..7b9b2ec363867829fd9ea601426bed1cee44f7c7 100644 (file)
@@ -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;