diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-08-14 01:12:27 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-08-14 01:12:27 +0000 |
commit | ae6453269da39fa1e6d131b05307199a8ec1b344 (patch) | |
tree | 781b20404d1f101b1d5a6234972451a363c7d6cd | |
parent | b34df4fa86e7336244914acbbc48b99432a3b5c4 (diff) | |
download | samba-ae6453269da39fa1e6d131b05307199a8ec1b344.tar.gz samba-ae6453269da39fa1e6d131b05307199a8ec1b344.tar.bz2 samba-ae6453269da39fa1e6d131b05307199a8ec1b344.zip |
added seek to gentest
(This used to be commit 401fce169ecceac803a4a72480ffdc1f54f9a292)
-rw-r--r-- | source4/torture/gentest.c | 23 |
1 files changed, 23 insertions, 0 deletions
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 @@ -1267,6 +1267,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 */ static BOOL handler_readx(int instance) @@ -1815,6 +1837,7 @@ static struct { {"SPATHINFO", handler_spathinfo}, {"SFILEINFO", handler_sfileinfo}, {"NOTIFY", handler_notify}, + {"SEEK", handler_seek}, }; |