The Samba-Bugzilla – Attachment 6982 Details for
Bug 8518
SMB2 create call returns incorrect file allocation size.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am fix for 3.6.1
0001-s3-smb2_create-fix-allocation-size-return-value-when.patch (text/plain), 1.42 KB, created by
Jeremy Allison
on 2011-10-10 21:04:48 UTC
(
hide
)
Description:
git-am fix for 3.6.1
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2011-10-10 21:04:48 UTC
Size:
1.42 KB
patch
obsolete
>From e686000c48f35486f20a1ab2bf1fec4aa5f1a1b7 Mon Sep 17 00:00:00 2001 >From: Christian Ambach <ambi@samba.org> >Date: Mon, 10 Oct 2011 17:48:18 +0200 >Subject: [PATCH] s3:smb2_create: fix allocation size return value when opening existing files > >at least on GPFS, using the stat information gave wrong results >example: FileInfo gave 12582912000, Create Response gave 25769803776000 > >This makes the create part use the same method as fileinfo, >matching up the replies of both calls > >Autobuild-User: Jeremy Allison <jra@samba.org> >Autobuild-Date: Mon Oct 10 21:49:53 CEST 2011 on sn-devel-104 >(cherry picked from commit ec0c1f2c34ea520b4a7d636ba284a9c7d3ecd96f) >--- > source3/smbd/smb2_create.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c >index b8557e0..5316100 100644 >--- a/source3/smbd/smb2_create.c >+++ b/source3/smbd/smb2_create.c >@@ -820,8 +820,8 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx, > get_change_timespec(smb1req->conn, result, > result->fsp_name)); > state->out_allocation_size = >- result->fsp_name->st.st_ex_blksize * >- result->fsp_name->st.st_ex_blocks; >+ SMB_VFS_GET_ALLOC_SIZE(smb1req->conn, result, >+ &(result->fsp_name->st)); > state->out_end_of_file = result->fsp_name->st.st_ex_size; > if (state->out_file_attributes == 0) { > state->out_file_attributes = FILE_ATTRIBUTE_NORMAL; >-- >1.7.3.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
metze
:
review+
Actions:
View
Attachments on
bug 8518
: 6982