From 5a09ba460cb757823e1deb8b2f2ae762765846c0 Mon Sep 17 00:00:00 2001 From: Tim Prouty Date: Tue, 30 Jun 2009 17:04:38 -0700 Subject: s3: Plumb smb_filename through SMB_VFS_RENAME --- examples/VFS/skel_opaque.c | 6 ++++-- examples/VFS/skel_transparent.c | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index ee8a3d8f71..5d05be9aab 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -169,9 +169,11 @@ static ssize_t skel_recvfile(vfs_handle_struct *handle, int fromfd, files_struct return vfswrap_recvfile(NULL, fromfd, tofsp, offset, n); } -static int skel_rename(vfs_handle_struct *handle, const char *oldname, const char *newname) +static int skel_rename(vfs_handle_struct *handle, + const smb_filename *smb_fname_src, + const smb_filename *smb_fname_dst) { - return vfswrap_rename(NULL, oldname, newname); + return vfswrap_rename(NULL, smb_fname_src, smb_fname_dst); } static int skel_fsync(vfs_handle_struct *handle, files_struct *fsp) diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index 10b10b88d6..646c6222ae 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -162,9 +162,11 @@ static ssize_t skel_recvfile(vfs_handle_struct *handle, int fromfd, files_struct return SMB_VFS_NEXT_RECVFILE(handle, fromfd, tofsp, offset, n); } -static int skel_rename(vfs_handle_struct *handle, const char *oldname, const char *newname) +static int skel_rename(vfs_handle_struct *handle, + const smb_filename *smb_fname_src, + const smb_filename *smb_fname_dst) { - return SMB_VFS_NEXT_RENAME(handle, oldname, newname); + return SMB_VFS_NEXT_RENAME(handle, smb_fname_src, smb_fname_dst); } static int skel_fsync(vfs_handle_struct *handle, files_struct *fsp) -- cgit