From 702049ef55dc17d2996a53a1c30be76591423970 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 7 Nov 2012 13:59:48 +0100 Subject: torture: Fix smb2.create.blob test. Reviewed-by: David Disseldorp Autobuild-User(master): David Disseldorp Autobuild-Date(master): Fri Nov 9 14:53:27 CET 2012 on sn-devel-104 --- source4/torture/smb2/create.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/torture/smb2/create.c b/source4/torture/smb2/create.c index e36a0789f2..fcf40e17d6 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); -- cgit