examples/VFS/skel_transparent: call smb_vfs_assert_all_fns()
authorStefan Metzmacher <metze@samba.org>
Mon, 23 Jul 2018 07:02:52 +0000 (09:02 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 24 Jul 2018 22:23:12 +0000 (00:23 +0200)
This template should always include all calls.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
examples/VFS/skel_transparent.c

index 9ed902e..513294f 100644 (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);
 }