The Samba-Bugzilla – Attachment 8665 Details for
Bug 9706
Parameter is incorrect on Android
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Additional patches for master (need discussion)
large-read-02.patches.txt (text/plain), 2.46 KB, created by
Stefan Metzmacher
on 2013-03-20 16:50:35 UTC
(
hide
)
Description:
Additional patches for master (need discussion)
Filename:
MIME Type:
Creator:
Stefan Metzmacher
Created:
2013-03-20 16:50:35 UTC
Size:
2.46 KB
patch
obsolete
>From 9f08cc8c7a864ad702b723a7176ab80aa3fe225a Mon Sep 17 00:00:00 2001 >From: Stefan Metzmacher <metze@samba.org> >Date: Mon, 18 Mar 2013 13:50:28 +0100 >Subject: [PATCH 1/2] TODO s3:smbd: truncate reads to 0x10000 as Windows does > >TODO do we want that, I think it makes it easier to compare camptures... >--- > source3/smbd/reply.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > >diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c >index 8b500c5..1501a14 100644 >--- a/source3/smbd/reply.c >+++ b/source3/smbd/reply.c >@@ -3902,6 +3902,14 @@ static size_t calc_read_size(const struct smb_request *req, > size_t hdr_len = MIN_SMB_SIZE + VWV(12); > size_t max_len = max_pdu - hdr_len; > >+ if (!lp_unix_extensions()) { >+ /* >+ * Windows limits large reads to >+ * 0x10000. >+ */ >+ max_len = MIN(max_len, 0x10000); >+ } >+ > /* > * Windows explicitly ignores upper size of 0xFFFF. > * See [MS-SMB].pdf <26> Section 2.2.4.2.1: >-- >1.7.9.5 > > >From ebd7f6eeec61eec2dcc5d3d6643c4b5df593255f Mon Sep 17 00:00:00 2001 >From: Stefan Metzmacher <metze@samba.org> >Date: Wed, 20 Mar 2013 08:46:59 +0100 >Subject: [PATCH 2/2] s4:torture: let raw.read expect large reads with > CAP_UNIX > >Signed-off-by: Stefan Metzmacher <metze@samba.org> >--- > source4/torture/raw/read.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/source4/torture/raw/read.c b/source4/torture/raw/read.c >index 59089bf..f5f2bb4 100644 >--- a/source4/torture/raw/read.c >+++ b/source4/torture/raw/read.c >@@ -524,8 +524,8 @@ static bool test_readx(struct torture_context *tctx, struct smbcli_state *cli) > CHECK_STATUS(status, NT_STATUS_OK); > CHECK_VALUE(io.readx.out.remaining, 0xFFFF); > CHECK_VALUE(io.readx.out.compaction_mode, 0); >- if (io.readx.out.nread == io.readx.in.maxcnt) { >- printf("SAMBA: large read extension\n"); >+ if (cli->transport->negotiate.capabilities & CAP_UNIX) { >+ printf("UNIX: large read\n"); > CHECK_VALUE(io.readx.out.nread, 80000); > } else { > CHECK_VALUE(io.readx.out.nread, 0x10000); >@@ -573,8 +573,8 @@ static bool test_readx(struct torture_context *tctx, struct smbcli_state *cli) > io.readx.in.maxcnt = 0x10001; > status = smb_raw_read(cli->tree, &io); > CHECK_STATUS(status, NT_STATUS_OK); >- if (io.readx.out.nread == io.readx.in.maxcnt) { >- printf("SAMBA: large read extension\n"); >+ if (cli->transport->negotiate.capabilities & CAP_UNIX) { >+ printf("UNIX: large read\n"); > CHECK_VALUE(io.readx.out.nread, 0x10001); > } else { > CHECK_VALUE(io.readx.out.nread, 0x10000); >-- >1.7.9.5 >
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
Actions:
View
Attachments on
bug 9706
:
8627
|
8631
|
8632
|
8637
|
8638
|
8651
|
8659
|
8663
|
8664
| 8665 |
8666
|
8667