diff options
author | Samuel Cabrero <scabrero@samba.org> | 2021-04-13 12:07:52 +0200 |
---|---|---|
committer | Samuel Cabrero <scabrero@sn-devel-184> | 2021-04-19 12:28:30 +0000 |
commit | ee3ea1bc745e743d49571b6c4f8465e9b8e9fa09 (patch) | |
tree | 8807f0eb65480da06339cb24b295b8206b3885fd /examples/VFS | |
parent | 4cc06106998e49eaecf704a71ffb5e421ca67ab3 (diff) | |
download | samba-ee3ea1bc745e743d49571b6c4f8465e9b8e9fa09.tar.gz |
VFS: Add SMB_VFS_FNTIMES
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'examples/VFS')
-rw-r--r-- | examples/VFS/skel_opaque.c | 9 | ||||
-rw-r--r-- | examples/VFS/skel_transparent.c | 8 |
2 files changed, 17 insertions, 0 deletions
diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index d0b14aaaae7..a8deb8a6da6 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -407,6 +407,14 @@ static int skel_ntimes(vfs_handle_struct *handle, return -1; } +static int skel_fntimes(vfs_handle_struct *handle, + files_struct *fsp, + struct smb_file_time *ft) +{ + errno = ENOSYS; + return -1; +} + static int skel_ftruncate(vfs_handle_struct *handle, files_struct *fsp, off_t offset) { @@ -1035,6 +1043,7 @@ static struct vfs_fn_pointers skel_opaque_fns = { .chdir_fn = skel_chdir, .getwd_fn = skel_getwd, .ntimes_fn = skel_ntimes, + .fntimes_fn = skel_fntimes, .ftruncate_fn = skel_ftruncate, .fallocate_fn = skel_fallocate, .lock_fn = skel_lock, diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index c73e04fd58b..ba5afad1f3d 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -530,6 +530,13 @@ static int skel_ntimes(vfs_handle_struct *handle, return SMB_VFS_NEXT_NTIMES(handle, smb_fname, ft); } +static int skel_fntimes(vfs_handle_struct *handle, + files_struct *fsp, + struct smb_file_time *ft) +{ + return SMB_VFS_NEXT_FNTIMES(handle, fsp, ft); +} + static int skel_ftruncate(vfs_handle_struct *handle, files_struct *fsp, off_t offset) { @@ -1341,6 +1348,7 @@ static struct vfs_fn_pointers skel_transparent_fns = { .chdir_fn = skel_chdir, .getwd_fn = skel_getwd, .ntimes_fn = skel_ntimes, + .fntimes_fn = skel_fntimes, .ftruncate_fn = skel_ftruncate, .fallocate_fn = skel_fallocate, .lock_fn = skel_lock, |