diff options
author | Jeremy Allison <jra@samba.org> | 2009-09-25 20:51:50 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-09-25 20:51:50 -0700 |
commit | 0959ae927649ad0ee2c237d4ef8b1eb41866561e (patch) | |
tree | 4969abcaf343f4f38a848381a65312575e119a85 /examples/VFS | |
parent | a6d4eec3a5bef5ed4b388961d5a50309e24ed970 (diff) | |
download | samba-0959ae927649ad0ee2c237d4ef8b1eb41866561e.tar.gz samba-0959ae927649ad0ee2c237d4ef8b1eb41866561e.tar.bz2 samba-0959ae927649ad0ee2c237d4ef8b1eb41866561e.zip |
Fix vfs module sample for new interface.
Jeremy.
Diffstat (limited to 'examples/VFS')
-rw-r--r-- | examples/VFS/shadow_copy_test.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/VFS/shadow_copy_test.c b/examples/VFS/shadow_copy_test.c index 1ba46b7176..fab7007046 100644 --- a/examples/VFS/shadow_copy_test.c +++ b/examples/VFS/shadow_copy_test.c @@ -2,6 +2,7 @@ * TEST implementation of an Shadow Copy module * * Copyright (C) Stefan Metzmacher 2003 + * Copyright (C) Jeremy Allison 2009. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -74,13 +75,11 @@ static int test_get_shadow_copy_data(vfs_handle_struct *handle, files_struct *fs /* VFS operations structure */ -static vfs_op_tuple shadow_copy_test_ops[] = { - {SMB_VFS_OP(test_get_shadow_copy_data), SMB_VFS_OP_GET_SHADOW_COPY_DATA,SMB_VFS_LAYER_OPAQUE}, - - {SMB_VFS_OP(NULL), SMB_VFS_OP_NOOP, SMB_VFS_LAYER_NOOP} +static struct vfs_fn_pointers vfs_test_shadow_copy_fns = { + .get_shadow_copy_data = test_get_shadow_copy_data }; -NTSTATUS init_module(void) +NTSTATUS vfs_shadow_copy_test_init(void) { - return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "shadow_copy_test", shadow_copy_test_ops); + return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "shadow_copy_test", &vfs_test_shadow_copy_fns); } |