1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

examples/VFS/skel_transparent: call smb_vfs_assert_all_fns()

This template should always include all calls.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Stefan Metzmacher 2018-07-23 09:02:52 +02:00
parent 829fdf1030
commit 42e99ec331

View File

@ -1253,6 +1253,14 @@ struct vfs_fn_pointers skel_transparent_fns = {
static_decl_vfs;
NTSTATUS vfs_skel_transparent_init(TALLOC_CTX *ctx)
{
/*
* smb_vfs_assert_all_fns() is only needed in
* order to have a complete example.
*
* A transparent vfs module typically don't
* need to implement every calls.
*/
smb_vfs_assert_all_fns(&skel_transparent_fns, "skel_transparent");
return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "skel_transparent",
&skel_transparent_fns);
}