From a7c63ac1b7bc3f9c9a0e8786046644194e270f10 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 12 Jul 2012 10:09:37 -0700 Subject: Set fsp->initial_allocation_size before calling open_file_ntcreate(). Allows an SMB_VFS_OPEN() vfs module to do something interesting with the request. --- source3/smbd/open.c | 5 +++++ 1 file changed, 5 insertions(+) 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, -- cgit