From c7712ec0e61d3fffc56a938ad72d125906af01d2 Mon Sep 17 00:00:00 2001 From: Samuel Cabrero Date: Tue, 13 Apr 2021 16:53:18 +0200 Subject: [PATCH] s3: VFS: catia: Implement SMB_VFS_FNTIMES() Signed-off-by: Samuel Cabrero Reviewed-by: Ralph Boehme --- source3/modules/vfs_catia.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/source3/modules/vfs_catia.c b/source3/modules/vfs_catia.c index 96843095f17..1c69b622ee1 100644 --- a/source3/modules/vfs_catia.c +++ b/source3/modules/vfs_catia.c @@ -850,6 +850,25 @@ static int catia_ntimes(vfs_handle_struct *handle, return ret; } +static int catia_fntimes(vfs_handle_struct *handle, + files_struct *fsp, + struct smb_file_time *ft) +{ + struct catia_cache *cc = NULL; + int ret; + + ret = CATIA_FETCH_FSP_PRE_NEXT(talloc_tos(), handle, fsp, &cc); + if (ret != 0) { + return ret; + } + + ret = SMB_VFS_NEXT_FNTIMES(handle, fsp, ft); + + CATIA_FETCH_FSP_POST_NEXT(&cc, fsp); + + return ret; +} + static struct smb_filename * catia_realpath(vfs_handle_struct *handle, TALLOC_CTX *ctx, @@ -2152,6 +2171,7 @@ static struct vfs_fn_pointers vfs_catia_fns = { .lchown_fn = catia_lchown, .chdir_fn = catia_chdir, .ntimes_fn = catia_ntimes, + .fntimes_fn = catia_fntimes, .ftruncate_fn = catia_ftruncate, .fallocate_fn = catia_fallocate, .lock_fn = catia_lock,