diff options
author | Noel Power <noel.power@suse.com> | 2021-05-07 16:11:46 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2021-05-11 15:49:28 +0000 |
commit | 64af0aeb23ded0917d972701577a18d30fc9df61 (patch) | |
tree | 0b856a94827803067d0d836f57a6420841d4f52d /examples/VFS | |
parent | 556b114f11c9fbe806d960417e2777560a163793 (diff) | |
download | samba-64af0aeb23ded0917d972701577a18d30fc9df61.tar.gz |
VFS: Add SMB_VFS_FSTREAMINFO
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'examples/VFS')
-rw-r--r-- | examples/VFS/skel_opaque.c | 10 | ||||
-rw-r--r-- | examples/VFS/skel_transparent.c | 14 |
2 files changed, 24 insertions, 0 deletions
diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index 56d2e42d160..ce3672c752f 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -638,6 +638,15 @@ static NTSTATUS skel_streaminfo(struct vfs_handle_struct *handle, return NT_STATUS_NOT_IMPLEMENTED; } +static NTSTATUS skel_fstreaminfo(struct vfs_handle_struct *handle, + struct files_struct *fsp, + TALLOC_CTX *mem_ctx, + unsigned int *num_streams, + struct stream_struct **streams) +{ + return NT_STATUS_NOT_IMPLEMENTED; +} + static int skel_get_real_filename(struct vfs_handle_struct *handle, const struct smb_filename *path, const char *name, @@ -1058,6 +1067,7 @@ static struct vfs_fn_pointers skel_opaque_fns = { .set_compression_fn = skel_set_compression, .streaminfo_fn = skel_streaminfo, + .fstreaminfo_fn = skel_fstreaminfo, .get_real_filename_fn = skel_get_real_filename, .connectpath_fn = skel_connectpath, .brl_lock_windows_fn = skel_brl_lock_windows, diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index c5bcc5314d8..02b3c75969f 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -855,6 +855,19 @@ static NTSTATUS skel_streaminfo(struct vfs_handle_struct *handle, streams); } +static NTSTATUS skel_fstreaminfo(struct vfs_handle_struct *handle, + struct files_struct *fsp, + TALLOC_CTX *mem_ctx, + unsigned int *num_streams, + struct stream_struct **streams) +{ + return SMB_VFS_NEXT_FSTREAMINFO(handle, + fsp, + mem_ctx, + num_streams, + streams); +} + static int skel_get_real_filename(struct vfs_handle_struct *handle, const struct smb_filename *path, const char *name, @@ -1364,6 +1377,7 @@ static struct vfs_fn_pointers skel_transparent_fns = { .set_compression_fn = skel_set_compression, .streaminfo_fn = skel_streaminfo, + .fstreaminfo_fn = skel_fstreaminfo, .get_real_filename_fn = skel_get_real_filename, .connectpath_fn = skel_connectpath, .brl_lock_windows_fn = skel_brl_lock_windows, |