summaryrefslogtreecommitdiff
path: root/source3/modules/onefs_streams.c
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-01-26 15:39:40 -0800
committerTim Prouty <tprouty@samba.org>2009-01-29 15:29:33 -0800
commitb8f7cdbd79918bba0fea181f97fff5ab0c79192d (patch)
tree6716b36bb6421e0cff45dc224a1705bb396e8dd2 /source3/modules/onefs_streams.c
parentaeb23872e25fb720140a10ce01a4211d228b6555 (diff)
downloadsamba-b8f7cdbd79918bba0fea181f97fff5ab0c79192d.tar.gz
samba-b8f7cdbd79918bba0fea181f97fff5ab0c79192d.tar.bz2
samba-b8f7cdbd79918bba0fea181f97fff5ab0c79192d.zip
s3: Add a new SMB_VFS_GET_ALLOC_SIZE vfs operation
This allows module implementors to customize what allocation size is returned to the client.
Diffstat (limited to 'source3/modules/onefs_streams.c')
-rw-r--r--source3/modules/onefs_streams.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/modules/onefs_streams.c b/source3/modules/onefs_streams.c
index e9543e237f..78b0fd61bf 100644
--- a/source3/modules/onefs_streams.c
+++ b/source3/modules/onefs_streams.c
@@ -533,8 +533,8 @@ static NTSTATUS walk_onefs_streams(connection_struct *conn, files_struct *fsp,
if (!add_one_stream(state->mem_ctx,
&state->num_streams, &state->streams,
dp->d_name, stream_sbuf.st_size,
- get_allocation_size(conn, NULL,
- &stream_sbuf))) {
+ SMB_VFS_GET_ALLOC_SIZE(conn, NULL,
+ &stream_sbuf))) {
state->status = NT_STATUS_NO_MEMORY;
break;
}
@@ -594,8 +594,8 @@ NTSTATUS onefs_streaminfo(vfs_handle_struct *handle,
if (!add_one_stream(mem_ctx,
&state.num_streams, &state.streams,
"", sbuf.st_size,
- get_allocation_size(handle->conn, fsp,
- &sbuf))) {
+ SMB_VFS_GET_ALLOC_SIZE(handle->conn, fsp,
+ &sbuf))) {
return NT_STATUS_NO_MEMORY;
}
}