The branch, master has been updated
       via  702049e torture: Fix smb2.create.blob test.
      from  76fa5ee samba-tool: Fix typo in --help output.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 702049ef55dc17d2996a53a1c30be76591423970
Author: Andreas Schneider <a...@samba.org>
Date:   Wed Nov 7 13:59:48 2012 +0100

    torture: Fix smb2.create.blob test.
    
    Reviewed-by: David Disseldorp <dd...@samba.org>
    
    Autobuild-User(master): David Disseldorp <dd...@samba.org>
    Autobuild-Date(master): Fri Nov  9 14:53:27 CET 2012 on sn-devel-104

-----------------------------------------------------------------------

Summary of changes:
 source4/torture/smb2/create.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/torture/smb2/create.c b/source4/torture/smb2/create.c
index e36a078..fcf40e1 100644
--- a/source4/torture/smb2/create.c
+++ b/source4/torture/smb2/create.c
@@ -395,7 +395,10 @@ static bool test_create_blob(struct torture_context *tctx, 
struct smb2_tree *tre
        CHECK_STATUS(status, NT_STATUS_OK);
 
        torture_comment(tctx, "Testing alloc size\n");
-       io.in.alloc_size = 4096;
+       /* FIXME We use 1M cause that's the rounded size of Samba.
+        * We should ask the server for the cluser size and calulate it
+        * correctly. */
+       io.in.alloc_size = 0x00100000;
        status = smb2_create(tree, tctx, &io);
        CHECK_STATUS(status, NT_STATUS_OK);
        CHECK_EQUAL(io.out.alloc_size, io.in.alloc_size);


-- 
Samba Shared Repository

Reply via email to