torture: Fix smb2.create.blob test.
authorAndreas Schneider <asn@samba.org>
Wed, 7 Nov 2012 12:59:48 +0000 (13:59 +0100)
committerDavid Disseldorp <ddiss@samba.org>
Fri, 9 Nov 2012 13:53:27 +0000 (14:53 +0100)
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Fri Nov  9 14:53:27 CET 2012 on sn-devel-104

source4/torture/smb2/create.c

index e36a0789f2248fb59e584cc95169e6dd8778b10b..fcf40e17d6fa0cd3a0af3de9e19bbafd52f110b0 100644 (file)
@@ -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);