1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3: VFS: catia: Implement SMB_VFS_FNTIMES()

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Samuel Cabrero 2021-04-13 16:53:18 +02:00 committed by Samuel Cabrero
parent ee3ea1bc74
commit c7712ec0e6

View File

@ -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,