diff options
-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}, }; |