diff options
author | Alexander Bokovoy <ab@samba.org> | 2008-01-17 07:34:33 +0300 |
---|---|---|
committer | Alexander Bokovoy <ab@samba.org> | 2008-01-17 07:34:33 +0300 |
commit | 6de904b836f4fdf5b0b027a09554afe3c13e05ca (patch) | |
tree | ef507a04bebcf2d61a0feb4c3e8b39bec00b1fe1 /source3 | |
parent | 3fffb04990f1af191a2a8b5ebe0e301d7f483102 (diff) | |
download | samba-6de904b836f4fdf5b0b027a09554afe3c13e05ca.tar.gz samba-6de904b836f4fdf5b0b027a09554afe3c13e05ca.tar.bz2 samba-6de904b836f4fdf5b0b027a09554afe3c13e05ca.zip |
Fix more VFS API mixup with offline files
I'm sorry for this mess. :-(
(This used to be commit e1f5a8f10795831d3c7902d9803c9571c8ac811a)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/modules/vfs_tsmsm.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source3/modules/vfs_tsmsm.c b/source3/modules/vfs_tsmsm.c index fe791b24bf..c2d826f818 100644 --- a/source3/modules/vfs_tsmsm.c +++ b/source3/modules/vfs_tsmsm.c @@ -137,7 +137,6 @@ static int tsmsm_connect(struct vfs_handle_struct *handle, } static int tsmsm_is_offline(struct vfs_handle_struct *handle, - struct connection_struct *conn, const char *path, SMB_STRUCT_STAT *stbuf, bool *offline) { @@ -171,7 +170,7 @@ static int tsmsm_is_offline(struct vfs_handle_struct *handle, ret = -1; DEBUG(2,("dm_path_to_handle failed - assuming offline (%s) - %s\n", path, strerror(errno))); - *offline = True; + *offline = true; goto done; } @@ -210,7 +209,7 @@ static bool tsmsm_aio_force(struct vfs_handle_struct *handle, struct files_struc sbuf.st_blocks, sbuf.st_size, tsmd->online_ratio)); return !(512 * (off_t)sbuf.st_blocks >= sbuf.st_size * tsmd->online_ratio); } - return False; + return false; } static ssize_t tsmsm_aio_return(struct vfs_handle_struct *handle, struct files_struct *fsp, @@ -277,7 +276,7 @@ static ssize_t tsmsm_pwrite(struct vfs_handle_struct *handle, struct files_struc return result; } -static int tsmsm_set_offline(struct vfs_handle_struct *handle, struct connection_struct *conn, +static int tsmsm_set_offline(struct vfs_handle_struct *handle, const char *path) { struct tsmsm_struct *tsmd = (struct tsmsm_struct *) handle->data; int result = 0; @@ -297,7 +296,7 @@ static int tsmsm_set_offline(struct vfs_handle_struct *handle, struct connection return result; } -static bool tsmsm_is_remotestorage(struct vfs_handle_struct *handle, struct connection_struct *conn, const char *path) { +static bool tsmsm_is_remotestorage(struct vfs_handle_struct *handle, const char *path) { return True; } |