summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Baumbach <bb@sernet.de>2011-06-29 16:53:57 +0200
committerMichael Adam <obnox@samba.org>2011-06-30 15:41:23 +0200
commit6930afc9f4e613a660bbe716e849f5db7276491c (patch)
tree7554ec9dac22db914121ec73db11d8e90f3a7868
parent1f72088633c2215a23e086c8627f35621b47ffec (diff)
downloadsamba-6930afc9f4e613a660bbe716e849f5db7276491c.tar.gz
samba-6930afc9f4e613a660bbe716e849f5db7276491c.tar.bz2
samba-6930afc9f4e613a660bbe716e849f5db7276491c.zip
examples/VFS: fix shadow_copy_test.c in reference to shadow_copy changes
Signed-off-by: Michael Adam <obnox@samba.org>
-rw-r--r--examples/VFS/shadow_copy_test.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/examples/VFS/shadow_copy_test.c b/examples/VFS/shadow_copy_test.c
index d4da23846f..a47d2ee19b 100644
--- a/examples/VFS/shadow_copy_test.c
+++ b/examples/VFS/shadow_copy_test.c
@@ -19,6 +19,8 @@
*/
#include "includes.h"
+#include "ntioctl.h"
+#include "smbd/proto.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_VFS
@@ -50,7 +52,10 @@
Directories are always displayed...
*/
-static int test_get_shadow_copy_data(vfs_handle_struct *handle, files_struct *fsp, SHADOW_COPY_DATA *shadow_copy_data, bool labels)
+static int test_get_shadow_copy_data(vfs_handle_struct *handle,
+ files_struct *fsp,
+ struct shadow_copy_data *shadow_copy_data,
+ bool labels)
{
uint32 num = 3;
uint32 i;
@@ -59,7 +64,7 @@ static int test_get_shadow_copy_data(vfs_handle_struct *handle, files_struct *fs
if (labels) {
if (num) {
- shadow_copy_data->labels = talloc_zero_array(shadow_copy_data->mem_ctx,SHADOW_COPY_LABEL,num);
+ shadow_copy_data->labels = talloc_zero_array(shadow_copy_data,SHADOW_COPY_LABEL,num);
} else {
shadow_copy_data->labels = NULL;
}
@@ -81,5 +86,7 @@ static struct vfs_fn_pointers vfs_test_shadow_copy_fns = {
NTSTATUS vfs_shadow_copy_test_init(void)
{
- return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "shadow_copy_test", &vfs_test_shadow_copy_fns);
+ return smb_register_vfs(SMB_VFS_INTERFACE_VERSION,
+ "shadow_copy_test",
+ &vfs_test_shadow_copy_fns);
}