summaryrefslogtreecommitdiff
path: root/examples/VFS
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-10-08 09:18:02 +0200
committerStefan Metzmacher <metze@samba.org>2011-10-08 11:29:18 +0200
commitce5b4b3fd97c15188e42199b91bc175e4d123fdd (patch)
treed1d4dcc6106a379fceafbb9e041ddc272f8aa9c5 /examples/VFS
parent9ca88eb10bd21e8cf08c55225ec82b1790162bbf (diff)
downloadsamba-ce5b4b3fd97c15188e42199b91bc175e4d123fdd.tar.gz
samba-ce5b4b3fd97c15188e42199b91bc175e4d123fdd.tar.bz2
samba-ce5b4b3fd97c15188e42199b91bc175e4d123fdd.zip
examples/VFS: add skel_get_dfs_referrals()
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Oct 8 11:29:18 CEST 2011 on sn-devel-104
Diffstat (limited to 'examples/VFS')
-rw-r--r--examples/VFS/skel_opaque.c7
-rw-r--r--examples/VFS/skel_transparent.c7
2 files changed, 14 insertions, 0 deletions
diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c
index 57909e60b7..4b27802dc9 100644
--- a/examples/VFS/skel_opaque.c
+++ b/examples/VFS/skel_opaque.c
@@ -83,6 +83,12 @@ static uint32_t skel_fs_capabilities(struct vfs_handle_struct *handle, enum time
return 0;
}
+static NTSTATUS skel_get_dfs_referrals(struct vfs_handle_struct *handle,
+ struct dfs_GetDFSReferral *r)
+{
+ return NT_STATUS_NOT_IMPLEMENTED;
+}
+
static SMB_STRUCT_DIR *skel_opendir(vfs_handle_struct *handle, const char *fname, const char *mask, uint32 attr)
{
return NULL;
@@ -786,6 +792,7 @@ struct vfs_fn_pointers skel_opaque_fns = {
.get_shadow_copy_data = skel_get_shadow_copy_data,
.statvfs = skel_statvfs,
.fs_capabilities = skel_fs_capabilities,
+ .get_dfs_referrals = skel_get_dfs_referrals,
/* Directory operations */
diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c
index c9fbc793ec..a75b00e25e 100644
--- a/examples/VFS/skel_transparent.c
+++ b/examples/VFS/skel_transparent.c
@@ -80,6 +80,12 @@ static uint32_t skel_fs_capabilities(struct vfs_handle_struct *handle, enum time
return SMB_VFS_NEXT_FS_CAPABILITIES(handle, p_ts_res);
}
+static NTSTATUS skel_get_dfs_referrals(struct vfs_handle_struct *handle,
+ struct dfs_GetDFSReferral *r)
+{
+ return SMB_VFS_NEXT_GET_DFS_REFERRALS(handle, r);
+}
+
static SMB_STRUCT_DIR *skel_opendir(vfs_handle_struct *handle, const char *fname, const char *mask, uint32 attr)
{
return SMB_VFS_NEXT_OPENDIR(handle, fname, mask, attr);
@@ -730,6 +736,7 @@ struct vfs_fn_pointers skel_transparent_fns = {
.get_shadow_copy_data = skel_get_shadow_copy_data,
.statvfs = skel_statvfs,
.fs_capabilities = skel_fs_capabilities,
+ .get_dfs_referrals = skel_get_dfs_referrals,
/* Directory operations */