1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

added seek to gentest

(This used to be commit 401fce169e)
This commit is contained in:
Andrew Tridgell 2003-08-14 01:12:27 +00:00
parent b34df4fa86
commit ae6453269d

View File

@ -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},
};