diff options
author | Volker Lendecke <vl@samba.org> | 2011-02-25 06:37:34 -0700 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-03-02 18:39:21 +0100 |
commit | c9d1e16c2c6ab5ffebbab4bd82a4cda0bb860046 (patch) | |
tree | 3ffb79da3653f0ba9273afd637f9e25e4aedd6cb /source3/include | |
parent | 48f6b4d6fc08fa0621734c1c677ef7ef92891754 (diff) | |
download | samba-c9d1e16c2c6ab5ffebbab4bd82a4cda0bb860046.tar.gz samba-c9d1e16c2c6ab5ffebbab4bd82a4cda0bb860046.tar.bz2 samba-c9d1e16c2c6ab5ffebbab4bd82a4cda0bb860046.zip |
s3: Pass smb_filename through the is_offline vfs op
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/vfs.h | 7 | ||||
-rw-r--r-- | source3/include/vfs_macros.h | 8 |
2 files changed, 9 insertions, 6 deletions
diff --git a/source3/include/vfs.h b/source3/include/vfs.h index 7e5b87a418..304f04356c 100644 --- a/source3/include/vfs.h +++ b/source3/include/vfs.h @@ -401,7 +401,9 @@ struct vfs_fn_pointers { bool (*aio_force)(struct vfs_handle_struct *handle, struct files_struct *fsp); /* offline operations */ - bool (*is_offline)(struct vfs_handle_struct *handle, const char *path, SMB_STRUCT_STAT *sbuf); + 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); }; @@ -815,7 +817,8 @@ int smb_vfs_call_aio_suspend(struct vfs_handle_struct *handle, bool smb_vfs_call_aio_force(struct vfs_handle_struct *handle, struct files_struct *fsp); bool smb_vfs_call_is_offline(struct vfs_handle_struct *handle, - const char *path, SMB_STRUCT_STAT *sbuf); + const struct smb_filename *fname, + SMB_STRUCT_STAT *sbuf); int smb_vfs_call_set_offline(struct vfs_handle_struct *handle, const char *path); diff --git a/source3/include/vfs_macros.h b/source3/include/vfs_macros.h index 7c26529385..029806d335 100644 --- a/source3/include/vfs_macros.h +++ b/source3/include/vfs_macros.h @@ -602,10 +602,10 @@ #define SMB_VFS_NEXT_AIO_FORCE(handle,fsp) \ smb_vfs_call_aio_force((handle)->next,(fsp)) -#define SMB_VFS_IS_OFFLINE(conn,path,sbuf) \ - smb_vfs_call_is_offline((conn)->vfs_handles,(path),(sbuf)) -#define SMB_VFS_NEXT_IS_OFFLINE(handle,path,sbuf) \ - smb_vfs_call_is_offline((handle)->next,(path),(sbuf)) +#define SMB_VFS_IS_OFFLINE(conn,fname,sbuf) \ + smb_vfs_call_is_offline((conn)->vfs_handles,(fname),(sbuf)) +#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)) |