summaryrefslogtreecommitdiffstats
path: root/source3/modules/vfs_tsmsm.c
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2008-01-17 07:34:33 +0300
committerAlexander Bokovoy <ab@samba.org>2008-01-17 07:34:33 +0300
commit6de904b836f4fdf5b0b027a09554afe3c13e05ca (patch)
treeef507a04bebcf2d61a0feb4c3e8b39bec00b1fe1 /source3/modules/vfs_tsmsm.c
parent3fffb04990f1af191a2a8b5ebe0e301d7f483102 (diff)
downloadsamba-6de904b836f4fdf5b0b027a09554afe3c13e05ca.tar.gz
samba-6de904b836f4fdf5b0b027a09554afe3c13e05ca.tar.xz
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/modules/vfs_tsmsm.c')
-rw-r--r--source3/modules/vfs_tsmsm.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source3/modules/vfs_tsmsm.c b/source3/modules/vfs_tsmsm.c
index fe791b24bf9..c2d826f818b 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;
}