git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
775014b
)
Set fsp->initial_allocation_size before calling open_file_ntcreate().
author
Jeremy Allison
<jra@samba.org>
Thu, 12 Jul 2012 17:09:37 +0000
(10:09 -0700)
committer
Jeremy 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
patch
|
blob
|
history
diff --git
a/source3/smbd/open.c
b/source3/smbd/open.c
index b5d8466e7e2b75e83f5e18fb7ee161367730f805..a445524f16ad5a25f0b876392d961fe4d7c3a30f 100644
(file)
--- 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,