diff options
author | Andreas Schneider <asn@samba.org> | 2012-11-07 13:59:48 +0100 |
---|---|---|
committer | David Disseldorp <ddiss@samba.org> | 2012-11-09 14:53:27 +0100 |
commit | 702049ef55dc17d2996a53a1c30be76591423970 (patch) | |
tree | 167a9f5c430338cde3469fbc7df13e8a57089575 | |
parent | 76fa5ee5d40e7e15c777ef11eb3492bcae7f4f0f (diff) | |
download | samba-702049ef55dc17d2996a53a1c30be76591423970.tar.gz samba-702049ef55dc17d2996a53a1c30be76591423970.tar.bz2 samba-702049ef55dc17d2996a53a1c30be76591423970.zip |
torture: Fix smb2.create.blob test.
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
-rw-r--r-- | source4/torture/smb2/create.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); |