diff options
author | David Disseldorp <ddiss@samba.org> | 2015-02-23 20:03:19 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2015-03-09 21:27:07 +0100 |
commit | 6729557c2788f232dcc1e8b5f14ec1cadc962a35 (patch) | |
tree | 12bed470249fd24ccd291c6091e405273d1787d4 /libgpo | |
parent | 4dec434f7151e0ef222aa72531f3353ee2651c74 (diff) | |
download | samba-6729557c2788f232dcc1e8b5f14ec1cadc962a35.tar.gz samba-6729557c2788f232dcc1e8b5f14ec1cadc962a35.tar.xz samba-6729557c2788f232dcc1e8b5f14ec1cadc962a35.zip |
torture/ioctl: rework and reduce pattern helper IO sizes
check_pattern() currently attempts to read all data in one go. Fix it to
use a 64K maximum IO size so that it works against Windows Server 2008.
Additionally, rework write_pattern() so that it only allocates a buffer
for the largest IO size (now 64K), rather than for the full write
length.
Finally, assert that callers are correctly performing pattern IO in
8-byte increments - copy_chunk_tiny was not, so fix it.
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'libgpo')
0 files changed, 0 insertions, 0 deletions