From cf7dac6fbccca6667e5ed20b199e80701b8a6bd4 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 25 Feb 2011 06:43:52 -0700 Subject: s3: Pass smb_filename through the set_offline vfs op --- source3/include/vfs.h | 5 +++-- source3/include/vfs_macros.h | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'source3/include') diff --git a/source3/include/vfs.h b/source3/include/vfs.h index 304f04356c..64820afedf 100644 --- a/source3/include/vfs.h +++ b/source3/include/vfs.h @@ -404,7 +404,8 @@ struct vfs_fn_pointers { bool (*is_offline)(struct vfs_handle_struct *handle, const struct smb_filename *fname, SMB_STRUCT_STAT *sbuf); - int (*set_offline)(struct vfs_handle_struct *handle, const char *path); + int (*set_offline)(struct vfs_handle_struct *handle, + const struct smb_filename *fname); }; /* @@ -820,6 +821,6 @@ bool smb_vfs_call_is_offline(struct vfs_handle_struct *handle, const struct smb_filename *fname, SMB_STRUCT_STAT *sbuf); int smb_vfs_call_set_offline(struct vfs_handle_struct *handle, - const char *path); + const struct smb_filename *fname); #endif /* _VFS_H */ diff --git a/source3/include/vfs_macros.h b/source3/include/vfs_macros.h index 029806d335..d04be9b5aa 100644 --- a/source3/include/vfs_macros.h +++ b/source3/include/vfs_macros.h @@ -607,9 +607,9 @@ #define SMB_VFS_NEXT_IS_OFFLINE(handle,fname,sbuf) \ smb_vfs_call_is_offline((handle)->next,(fname),(sbuf)) -#define SMB_VFS_SET_OFFLINE(conn,path) \ - smb_vfs_call_set_offline((conn)->vfs_handles,(path)) -#define SMB_VFS_NEXT_SET_OFFLINE(handle,path) \ - smb_vfs_call_set_offline((handle)->next, (path)) +#define SMB_VFS_SET_OFFLINE(conn,fname) \ + smb_vfs_call_set_offline((conn)->vfs_handles,(fname)) +#define SMB_VFS_NEXT_SET_OFFLINE(handle,fname) \ + smb_vfs_call_set_offline((handle)->next, (fname)) #endif /* _VFS_MACROS_H */ -- cgit