summaryrefslogtreecommitdiffstats
path: root/examples/VFS/skel_transparent.c
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2007-03-08 17:06:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:29 -0500
commit1106db7ea148253e3b5f0806b2d5efcd094b202e (patch)
treed3cd771704d81064ca19d75c245e9721ec9a2e09 /examples/VFS/skel_transparent.c
parent321a136dbce1a0532f123ea79ecb91f987b9a286 (diff)
downloadsamba-1106db7ea148253e3b5f0806b2d5efcd094b202e.tar.gz
samba-1106db7ea148253e3b5f0806b2d5efcd094b202e.tar.xz
samba-1106db7ea148253e3b5f0806b2d5efcd094b202e.zip
r21762: Fix the build by enabling shared modules and adding the config.*
files. Add norify_watch and chflags operations. Fix a bunch of warnings.
Diffstat (limited to 'examples/VFS/skel_transparent.c')
-rw-r--r--examples/VFS/skel_transparent.c30
1 files changed, 25 insertions, 5 deletions
diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c
index b967a337ebc..2efb3d54a78 100644
--- a/examples/VFS/skel_transparent.c
+++ b/examples/VFS/skel_transparent.c
@@ -212,7 +212,7 @@ static char *skel_getwd(vfs_handle_struct *handle, char *buf)
static int skel_ntimes(vfs_handle_struct *handle, const char *path, const struct timespec ts[2])
{
- return SMB_VFS_NEXT_NTIMES(handle, path, ts[2]);
+ return SMB_VFS_NEXT_NTIMES(handle, path, ts);
}
static int skel_ftruncate(vfs_handle_struct *handle, files_struct *fsp, int fd, SMB_OFF_T offset)
@@ -255,22 +255,40 @@ static char *skel_realpath(vfs_handle_struct *handle, const char *path, char *r
return SMB_VFS_NEXT_REALPATH(handle, path, resolved_path);
}
-static size_t skel_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp, int fd, uint32 security_info, struct security_descriptor_info **ppdesc)
+static NTSTATUS skel_notify_watch(struct vfs_handle_struct *handle,
+ struct sys_notify_context *ctx, struct notify_entry *e,
+ void (*callback)(struct sys_notify_context *ctx, void *private_data, struct notify_event *ev),
+ void *private_data, void *handle_p)
+{
+ return SMB_VFS_NEXT_NOTIFY_WATCH(handle, ctx, e, callback,
+ private_data, handle_p);
+}
+
+static int skel_chflags(vfs_handle_struct *handle, const char *path, uint flags)
+{
+ return SMB_VFS_NEXT_CHFLAGS(handle, path, flags);
+}
+
+static size_t skel_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
+ int fd, uint32 security_info, SEC_DESC **ppdesc)
{
return SMB_VFS_NEXT_FGET_NT_ACL(handle, fsp, fd, security_info, ppdesc);
}
-static size_t skel_get_nt_acl(vfs_handle_struct *handle, files_struct *fsp, const char *name, uint32 security_info, struct security_descriptor_info **ppdesc)
+static size_t skel_get_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
+ const char *name, uint32 security_info, SEC_DESC **ppdesc)
{
return SMB_VFS_NEXT_GET_NT_ACL(handle, fsp, name, security_info, ppdesc);
}
-static BOOL skel_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp, int fd, uint32 security_info_sent, struct security_descriptor_info *psd)
+static BOOL skel_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
+ int fd, uint32 security_info_sent, SEC_DESC *psd)
{
return SMB_VFS_NEXT_FSET_NT_ACL(handle, fsp, fd, security_info_sent, psd);
}
-static BOOL skel_set_nt_acl(vfs_handle_struct *handle, files_struct *fsp, const char *name, uint32 security_info_sent, struct security_descriptor_info *psd)
+static BOOL skel_set_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
+ const char *name, uint32 security_info_sent, SEC_DESC *psd)
{
return SMB_VFS_NEXT_SET_NT_ACL(handle, fsp, name, security_info_sent, psd);
}
@@ -554,6 +572,8 @@ static vfs_op_tuple skel_op_tuples[] = {
{SMB_VFS_OP(skel_link), SMB_VFS_OP_LINK, SMB_VFS_LAYER_TRANSPARENT},
{SMB_VFS_OP(skel_mknod), SMB_VFS_OP_MKNOD, SMB_VFS_LAYER_TRANSPARENT},
{SMB_VFS_OP(skel_realpath), SMB_VFS_OP_REALPATH, SMB_VFS_LAYER_TRANSPARENT},
+ {SMB_VFS_OP(skel_notify_watch), SMB_VFS_OP_NOTIFY_WATCH, SMB_VFS_LAYER_TRANSPARENT},
+ {SMB_VFS_OP(skel_chflags), SMB_VFS_OP_CHFLAGS, SMB_VFS_LAYER_TRANSPARENT},
/* NT File ACL operations */