From ae6453269da39fa1e6d131b05307199a8ec1b344 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 14 Aug 2003 01:12:27 +0000 Subject: added seek to gentest (This used to be commit 401fce169ecceac803a4a72480ffdc1f54f9a292) --- source4/torture/gentest.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/source4/torture/gentest.c b/source4/torture/gentest.c index 111d00b1a9..ec090d59dd 100644 --- a/source4/torture/gentest.c +++ b/source4/torture/gentest.c @@ -1266,6 +1266,28 @@ static BOOL handler_ntrename(int instance) } +/* + generate seek operations +*/ +static BOOL handler_seek(int instance) +{ + struct smb_seek parm[NSERVERS]; + NTSTATUS status[NSERVERS]; + + parm[0].in.fnum = gen_fnum(instance); + parm[0].in.mode = gen_bits_mask2(0x3, 0xFFFF); + parm[0].in.offset = gen_offset(); + + GEN_COPY_PARM; + GEN_SET_FNUM(in.fnum); + GEN_CALL(smb_raw_seek(tree, &parm[i])); + + CHECK_EQUAL(out.offset); + + return True; +} + + /* generate readx operations */ @@ -1815,6 +1837,7 @@ static struct { {"SPATHINFO", handler_spathinfo}, {"SFILEINFO", handler_sfileinfo}, {"NOTIFY", handler_notify}, + {"SEEK", handler_seek}, }; -- cgit