From 1e3583475fbe6be46383866f3e061637f2f20c2a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 25 Nov 2005 11:33:57 +0000 Subject: r11905: added SMB2_FLUSH as opcode 7. Thanks to metze and volker for help brainstorming this one. (This used to be commit a969ad592ae4cd8f7c66b1df4763fdc70328c967) --- source4/torture/smb2/connect.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source4/torture') 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; -- cgit