summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-11-25 11:33:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:47 -0500
commit1e3583475fbe6be46383866f3e061637f2f20c2a (patch)
tree1ef78f362b0f7e32380b0b2a17d54b45ba4e33e8 /source4/torture
parent43405e07446bfaaee25bcd0b1140667b533e59e3 (diff)
downloadsamba-1e3583475fbe6be46383866f3e061637f2f20c2a.tar.gz
samba-1e3583475fbe6be46383866f3e061637f2f20c2a.tar.bz2
samba-1e3583475fbe6be46383866f3e061637f2f20c2a.zip
r11905: added SMB2_FLUSH as opcode 7. Thanks to metze and volker for help
brainstorming this one. (This used to be commit a969ad592ae4cd8f7c66b1df4763fdc70328c967)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/smb2/connect.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/torture/smb2/connect.c b/source4/torture/smb2/connect.c
index a1215e3ae7..a4f4cb6ba4 100644
--- a/source4/torture/smb2/connect.c
+++ b/source4/torture/smb2/connect.c
@@ -69,6 +69,7 @@ static NTSTATUS torture_smb2_write(struct smb2_tree *tree, struct smb2_handle ha
{
struct smb2_write w;
struct smb2_read r;
+ struct smb2_flush f;
NTSTATUS status;
DATA_BLOB data;
int i;
@@ -103,6 +104,15 @@ static NTSTATUS torture_smb2_write(struct smb2_tree *tree, struct smb2_handle ha
torture_smb2_all_info(tree, handle);
+ ZERO_STRUCT(f);
+ f.in.handle = handle;
+
+ status = smb2_flush(tree, &f);
+ if (!NT_STATUS_IS_OK(status)) {
+ printf("flush failed - %s\n", nt_errstr(status));
+ return status;
+ }
+
ZERO_STRUCT(r);
r.in.length = data.length;
r.in.offset = 0;