summaryrefslogtreecommitdiff
path: root/examples/VFS
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2018-07-23 09:02:52 +0200
committerStefan Metzmacher <metze@samba.org>2018-07-25 00:23:12 +0200
commit42e99ec331dd667f145389683d7a0d8d310a8275 (patch)
treeb600f4ecd16b9620b16ec1564bb58af8e3bed97c /examples/VFS
parent829fdf10303fed8ed0e972cc2391bc88eebb3bb6 (diff)
downloadsamba-42e99ec331dd667f145389683d7a0d8d310a8275.tar.gz
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>
Diffstat (limited to 'examples/VFS')
-rw-r--r--examples/VFS/skel_transparent.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c
index 9ed902ed8cd..513294f867f 100644
--- a/examples/VFS/skel_transparent.c
+++ b/examples/VFS/skel_transparent.c
@@ -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);
}