The branch, master has been updated
via 49d6c3f s3: torture: adjust SMB1 cli_splice() test sizes
from 4e123c4 wafsamba/samba_abi: always hide ABI symbols which must be
local
https://git.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 49d6c3f061284aac31c3ef21f88f9d69bdd86bd8
Author: David Disseldorp <[email protected]>
Date: Fri Jul 13 13:58:04 2018 +0200
s3: torture: adjust SMB1 cli_splice() test sizes
The test writes 20M and then splices just over 1M (13M is intended,
but there's a 1024*0124 typo). Fix the type and reduce the size of the
dataset to make it run faster - cli_splice works with 1M chunks
(SPLICE_BLOCK_SIZE), and the reproducer only requires that the splice
size is not chunk-aligned.
Signed-off-by: David Disseldorp <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>
Autobuild-User(master): Jeremy Allison <[email protected]>
Autobuild-Date(master): Sat Jul 14 00:14:13 CEST 2018 on sn-devel-144
-----------------------------------------------------------------------
Summary of changes:
source3/torture/torture.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index be76334..0985609 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -9256,8 +9256,8 @@ static bool run_cli_splice(int dummy)
NTSTATUS status;
uint16_t fnum1 = UINT16_MAX;
uint16_t fnum2 = UINT16_MAX;
- size_t file_size = 20*1024*1024;
- size_t splice_size = 13*1024*0124 + 713;
+ size_t file_size = 2*1024*1024;
+ size_t splice_size = 1*1024*1024 + 713;
MD5_CTX md5_ctx;
uint8_t digest1[16], digest2[16];
off_t written = 0;
@@ -9295,7 +9295,7 @@ static bool run_cli_splice(int dummy)
/* Fill it with random numbers. */
generate_random_buffer(buf, file_size);
- /* MD5 the first 13MB + 713 bytes. */
+ /* MD5 the first 1MB + 713 bytes. */
MD5Init(&md5_ctx);
MD5Update(&md5_ctx, buf, splice_size);
MD5Final(digest1, &md5_ctx);
@@ -9321,7 +9321,7 @@ static bool run_cli_splice(int dummy)
goto out;
}
- /* Now splice 13MB + 713 bytes. */
+ /* Now splice 1MB + 713 bytes. */
status = cli_splice(cli1,
cli1,
fnum1,
@@ -9354,7 +9354,7 @@ static bool run_cli_splice(int dummy)
goto out;
}
- /* MD5 the first 13MB + 713 bytes. */
+ /* MD5 the first 1MB + 713 bytes. */
MD5Init(&md5_ctx);
MD5Update(&md5_ctx, buf, splice_size);
MD5Final(digest2, &md5_ctx);
--
Samba Shared Repository