diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-05-28 16:58:57 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2008-05-28 16:58:57 +1000 |
commit | 669c528611a032626e5e594d04d8360c2aaa32c2 (patch) | |
tree | 9e8fdc31ee46f78ade4b47a8f64e29914e8a9a65 | |
parent | 0be9746e1fc47aff93c1d77d256f4fb7942529d6 (diff) | |
download | samba-669c528611a032626e5e594d04d8360c2aaa32c2.tar.gz samba-669c528611a032626e5e594d04d8360c2aaa32c2.tar.bz2 samba-669c528611a032626e5e594d04d8360c2aaa32c2.zip |
added some of the new SMB2 create tags to gentest_smb2
(This used to be commit b3f638581689946084148b241f9fd7c0b938ade2)
-rw-r--r-- | source4/torture/gentest_smb2.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/source4/torture/gentest_smb2.c b/source4/torture/gentest_smb2.c index 60bf6264c2..a3a794d3ea 100644 --- a/source4/torture/gentest_smb2.c +++ b/source4/torture/gentest_smb2.c @@ -630,7 +630,7 @@ static time_t gen_timet(void) } /* - generate a unix timestamp + generate a timestamp */ static NTTIME gen_nttime(void) { @@ -640,6 +640,16 @@ static NTTIME gen_nttime(void) } /* + generate a timewarp value +*/ +static NTTIME gen_timewarp(void) +{ + NTTIME ret = gen_nttime(); + if (gen_chance(98)) ret = 0; + return ret; +} + +/* generate a file allocation size */ static uint_t gen_alloc_size(void) @@ -1119,6 +1129,11 @@ static bool handler_create(int instance) parm[0].in.create_options = gen_create_options(); parm[0].in.fname = gen_fname_open(instance); parm[0].in.eas = gen_ea_list(); + parm[0].in.alloc_size = gen_alloc_size(); + parm[0].in.durable_open = gen_bool(); + parm[0].in.query_maximal_access = gen_bool(); + parm[0].in.timewarp = gen_timewarp(); + parm[0].in.query_on_disk_id = gen_bool(); if (!options.use_oplocks) { /* mask out oplocks */ @@ -1145,6 +1160,7 @@ static bool handler_create(int instance) CHECK_EQUAL(out.size); CHECK_ATTRIB(out.file_attr); CHECK_EQUAL(out.reserved2); + CHECK_EQUAL(out.maximal_access); /* ntcreatex creates a new file handle */ ADD_HANDLE(parm[0].in.fname, out.file.handle); |