Set fsp->initial_allocation_size before calling open_file_ntcreate().
authorJeremy Allison <jra@samba.org>
Thu, 12 Jul 2012 17:09:37 +0000 (10:09 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 12 Jul 2012 20:46:07 +0000 (22:46 +0200)
Allows an SMB_VFS_OPEN() vfs module to do something interesting with
the request.

source3/smbd/open.c

index b5d8466e7e2b75e83f5e18fb7ee161367730f805..a445524f16ad5a25f0b876392d961fe4d7c3a30f 100644 (file)
@@ -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,