summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_full_audit.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-02-25 06:43:52 -0700
committerVolker Lendecke <vlendec@samba.org>2011-03-02 18:39:21 +0100
commitcf7dac6fbccca6667e5ed20b199e80701b8a6bd4 (patch)
tree611f063cb14b4ba77be8a574dc2cd46101dfb150 /source3/modules/vfs_full_audit.c
parentc9d1e16c2c6ab5ffebbab4bd82a4cda0bb860046 (diff)
downloadsamba-cf7dac6fbccca6667e5ed20b199e80701b8a6bd4.tar.gz
samba-cf7dac6fbccca6667e5ed20b199e80701b8a6bd4.tar.bz2
samba-cf7dac6fbccca6667e5ed20b199e80701b8a6bd4.zip
s3: Pass smb_filename through the set_offline vfs op
Diffstat (limited to 'source3/modules/vfs_full_audit.c')
-rw-r--r--source3/modules/vfs_full_audit.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c
index e5c375ad95..303ffae660 100644
--- a/source3/modules/vfs_full_audit.c
+++ b/source3/modules/vfs_full_audit.c
@@ -2215,6 +2215,17 @@ static bool smb_full_audit_is_offline(struct vfs_handle_struct *handle,
return result;
}
+static int smb_full_audit_set_offline(struct vfs_handle_struct *handle,
+ const struct smb_filename *fname)
+{
+ int result;
+
+ result = SMB_VFS_NEXT_SET_OFFLINE(handle, fname);
+ do_log(SMB_VFS_OP_SET_OFFLINE, result >= 0, handle, "%s",
+ smb_fname_str_do_log(fname));
+ return result;
+}
+
static struct vfs_fn_pointers vfs_full_audit_fns = {
/* Disk operations */
@@ -2333,6 +2344,7 @@ static struct vfs_fn_pointers vfs_full_audit_fns = {
.aio_suspend = smb_full_audit_aio_suspend,
.aio_force = smb_full_audit_aio_force,
.is_offline = smb_full_audit_is_offline,
+ .set_offline = smb_full_audit_set_offline,
};
NTSTATUS vfs_full_audit_init(void)