summaryrefslogtreecommitdiff
path: root/examples/VFS
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-10-11 09:18:46 -0700
committerJeremy Allison <jra@samba.org>2011-10-11 19:49:22 +0200
commit2ecfa0c1aaf59256a25360cd54ea60122caa2b93 (patch)
tree64cce20c36c64b2f8353f5718b39b02cb5fb3a0d /examples/VFS
parente425a17cb4d05d7f98dac9d9ab868bab76eced98 (diff)
downloadsamba-2ecfa0c1aaf59256a25360cd54ea60122caa2b93.tar.gz
samba-2ecfa0c1aaf59256a25360cd54ea60122caa2b93.tar.bz2
samba-2ecfa0c1aaf59256a25360cd54ea60122caa2b93.zip
Fix the VFS for fsctl.
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Oct 11 19:49:22 CEST 2011 on sn-devel-104
Diffstat (limited to 'examples/VFS')
-rw-r--r--examples/VFS/skel_opaque.c15
-rw-r--r--examples/VFS/skel_transparent.c24
2 files changed, 39 insertions, 0 deletions
diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c
index 4b27802dc9..7c63dd2eb5 100644
--- a/examples/VFS/skel_opaque.c
+++ b/examples/VFS/skel_opaque.c
@@ -483,6 +483,20 @@ static NTSTATUS skel_translate_name(struct vfs_handle_struct *handle,
return NT_STATUS_NOT_IMPLEMENTED;
}
+static NTSTATUS skel_fsctl(struct vfs_handle_struct *handle,
+ struct files_struct *fsp,
+ TALLOC_CTX *ctx,
+ uint32_t function,
+ uint16_t req_flags, /* Needed for UNICODE ... */
+ const uint8_t *_in_data,
+ uint32_t in_len,
+ uint8_t **_out_data,
+ uint32_t max_out_len,
+ uint32_t *out_len)
+{
+ return NT_STATUS_NOT_IMPLEMENTED;
+}
+
static NTSTATUS skel_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
uint32 security_info, struct security_descriptor **ppdesc)
{
@@ -858,6 +872,7 @@ struct vfs_fn_pointers skel_opaque_fns = {
.strict_lock = skel_strict_lock,
.strict_unlock = skel_strict_unlock,
.translate_name = skel_translate_name,
+ .fsctl = skel_fsctl,
/* NT ACL operations. */
diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c
index a75b00e25e..4804d93322 100644
--- a/examples/VFS/skel_transparent.c
+++ b/examples/VFS/skel_transparent.c
@@ -474,6 +474,29 @@ static NTSTATUS skel_translate_name(struct vfs_handle_struct *handle,
mem_ctx, pmapped_name);
}
+static NTSTATUS skel_fsctl(struct vfs_handle_struct *handle,
+ struct files_struct *fsp,
+ TALLOC_CTX *ctx,
+ uint32_t function,
+ uint16_t req_flags, /* Needed for UNICODE ... */
+ const uint8_t *_in_data,
+ uint32_t in_len,
+ uint8_t **_out_data,
+ uint32_t max_out_len,
+ uint32_t *out_len)
+{
+ return SMB_VFS_NEXT_FSCTL(handle,
+ fsp,
+ ctx,
+ function,
+ req_flags,
+ _in_data,
+ in_len,
+ _out_data,
+ max_out_len,
+ out_len);
+}
+
static NTSTATUS skel_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
uint32 security_info, struct security_descriptor **ppdesc)
{
@@ -802,6 +825,7 @@ struct vfs_fn_pointers skel_transparent_fns = {
.strict_lock = skel_strict_lock,
.strict_unlock = skel_strict_unlock,
.translate_name = skel_translate_name,
+ .fsctl = skel_fsctl,
/* NT ACL operations. */