summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-07-12 10:09:37 -0700
committerJeremy Allison <jra@samba.org>2012-07-12 22:46:07 +0200
commita7c63ac1b7bc3f9c9a0e8786046644194e270f10 (patch)
tree57459e2ec00e9bd0243d4f2e21b095be66c2f49f /source3
parent775014bd9cc8717ad5bb2651ca1078833d149610 (diff)
downloadsamba-a7c63ac1b7bc3f9c9a0e8786046644194e270f10.tar.gz
samba-a7c63ac1b7bc3f9c9a0e8786046644194e270f10.tar.bz2
samba-a7c63ac1b7bc3f9c9a0e8786046644194e270f10.zip
Set fsp->initial_allocation_size before calling open_file_ntcreate().
Allows an SMB_VFS_OPEN() vfs module to do something interesting with the request.
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/open.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index b5d8466e7e..a445524f16 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -3643,6 +3643,11 @@ static NTSTATUS create_file_unixpath(connection_struct *conn,
fsp->base_fsp = base_fsp;
}
+ if (allocation_size) {
+ fsp->initial_allocation_size = smb_roundup(fsp->conn,
+ allocation_size);
+ }
+
status = open_file_ntcreate(conn,
req,
access_mask,