summaryrefslogtreecommitdiff
path: root/source4/torture/smb2/durable_open.c
AgeCommit message (Collapse)AuthorFilesLines
2012-06-22s4:torture/smb2: add smb2.durable-open.lock-oplockStefan Metzmacher1-0/+79
metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Jun 22 03:37:54 CEST 2012 on sn-devel-104
2012-06-22s4:torture/smb2: rename smb2.durable-open.lock to smb2.durable-open.lock-leaseStefan Metzmacher1-4/+4
metze
2012-06-21s4:torture/smb2: add smb2.durable-open.delete_on_close1Stefan Metzmacher1-2/+126
metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Jun 21 10:19:00 CEST 2012 on sn-devel-104
2012-03-03s4:torture:smb2: rename some of the durable-handle subtests more systematicallyMichael Adam1-34/+34
2012-03-03s4:torture:smb2:durable_open: update (C)Michael Adam1-0/+1
2012-03-03s4:torture:smb2:durable-open: skip the open-with-lease test on servers ↵Stefan Metzmacher1-0/+6
without lease support Signed-off-by: Michael Adam <obnox@samba.org>
2012-03-03s4:torture:smb2: durable-open: make tables staticMichael Adam1-2/+2
2012-03-03s4:test:smb2:durable_open: skip lease tests when the server does not support ↵Stefan Metzmacher1-0/+25
leases Signed-off-by: Michael Adam <obnox@samba.org>
2012-03-03s4:torture:smb2:durable_open: remove unused lease variables in the ↵Stefan Metzmacher1-4/+0
open-oplock test Signed-off-by: Michael Adam <obnox@samba.org>
2012-02-28s4:torture:smb2:durable-open: fix a silly access-after-free panicMichael Adam1-7/+0
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Tue Feb 28 08:33:44 CET 2012 on sn-devel-104
2012-02-28s4:torture:smb2: add durable_open.reopen2a - variant of reopen2 with session ↵Michael Adam1-0/+77
reconnect
2012-02-28s4:torture:smb2: add previous_session argument to torture_smb2_session_setup()Michael Adam1-1/+4
To allow for doing a session reconnect
2012-02-27s4:torture:smb2:durable-open: prevent using a disconnected handle in reopen4Michael Adam1-0/+1
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon Feb 27 03:44:16 CET 2012 on sn-devel-104
2012-02-27s4:torture:smb2:durable-open: introduce new variable for the new sessionMichael Adam1-2/+9
This is to clarify the code.
2012-02-27s4:torture:smb2:durable-open: make a comment more precise in the reopen4 testMichael Adam1-1/+4
2012-02-27s4:torture:smb2:durable_open: use the correct tree in the final close callMichael Adam1-1/+1
2012-02-21s4:torture:smb2: add a durable-open.open-oplock testMichael Adam1-0/+85
this is a variant of the open-lease test that does the initial durable open with a batch oplock instead of a RH lease. This is e.g. useful do analyse a (mis?) behaviour with current windows 8 preview versions, compared to w2k8r2 Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Tue Feb 21 19:51:21 CET 2012 on sn-devel-104
2012-02-21s4:torture:smb2: extend and prettify comment for durable-open.open-lease testMichael Adam1-8/+8
2012-02-21s4:torture:smb2:durable-open: rename the open test to open-leaseMichael Adam1-5/+7
2012-02-21s4:torture:smb2: move some initialization and call to smb2_create together ↵Michael Adam1-2/+2
in durable-open.open test
2012-02-21s4:torture:smb2: fix a typo in the durable-open.open test file nameMichael Adam1-1/+1
2012-02-20s4:torture:smb2: invalidate the handle after the connection has been killedMichael Adam1-0/+1
Not to run into using the old handle with a new tree connect in the error case. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon Feb 20 18:34:48 CET 2012 on sn-devel-104
2012-02-20s4:torture: improve comment for the smb2.durable-open.reopen1 testMichael Adam1-0/+1
2012-02-03s4:torture: add a smb2.durable_open.reopen4 testMichael Adam1-0/+89
open a durable handle, logoff, new sessions setup, try durable reopen (fail), open tcon, durable reopen (succeed) Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Feb 3 12:45:34 CET 2012 on sn-devel-104
2012-02-03s4:torture: add smb2.durable_open test reopen3Michael Adam1-0/+68
Do a durable open, tdis, tree_connect, durable reopen -> fail
2012-02-03s4:torture: add smb2.durable_open test reopen2Michael Adam1-0/+71
durable open, disconnect, new seession, durable reopen
2012-02-03s4:torture: add smb2.durable_open test reopen1Michael Adam1-0/+57
2011-11-09s4:torture:smb2: rewrite durable-open.open test to use smb2_*_create functionsMichael Adam1-26/+7
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Nov 9 02:36:36 CET 2011 on sn-devel-104
2011-11-09s4:torture:smb2: rewrite the durable-open.lock test to use smb2_lease_create()Michael Adam1-23/+3
2011-11-09s4:torture:smb2: rewrite the durable-open.lease test to use smb2_lease_create()Michael Adam1-29/+6
2011-11-09s4:torture:smb2: rewrite the durable-open.oplock test to use ↵Michael Adam1-19/+3
smb2_oplock_create()
2011-11-09s4:torture:smb2: rewrite the durable-open.file-position test to use ↵Michael Adam1-18/+2
smb2_oplock_create()
2011-11-09s4:torture:smb2: rewrite the durable-open.open2 test to use ↵Michael Adam1-26/+6
smb2_lease_create_share()
2011-11-09s4:torture:smb2: rewrite the durable-open.open1 test to use ↵Michael Adam1-21/+6
smb2_oplock_create_share()
2011-11-09s4:torture:smb2: use smb2_util_oplock_level() in the durable-open test for ↵Michael Adam1-38/+38
convenience
2011-11-09s4:torture:smb2: extract map_sharemode() to smb2_util_share_access() in util.cMichael Adam1-24/+2
2011-11-09s4:torture:smb2: extract map_lease() to util.c as smb2_util_lease_state().Michael Adam1-24/+3
2011-11-09s4:torture:smb2: change the test file name in the durable-open.oplock testMichael Adam1-1/+1
to a more reasonable name. This one must have been copied from the durable-open.lease test.
2011-11-01s4:torture:smb2: expand durable-open.open2 test matrix by all share-modesMichael Adam1-9/+48
2011-11-01s4:torture:smb2: expand durable-open.open1 test matrix by all share-modesMichael Adam1-8/+62
2011-11-01s4:torture:smb2: rename the durable-open.basic2 test to durable-open.open2 ↵Michael Adam1-14/+14
for clarity
2011-11-01s4:torture:smb2: rename the durable-open.basic1 test to durable-open.open1 ↵Michael Adam1-14/+14
for clarity
2011-10-30s4:torture:smb2: add durable_open_basic2 test: test durable open against all ↵Michael Adam1-0/+146
lease types Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Sun Oct 30 20:17:16 CET 2011 on sn-devel-104
2011-10-30s4:torture:smb2: add a new durable_open_basic1 test: test open against all ↵Michael Adam1-0/+111
oplock types
2011-10-30s4:torture:smb2: check wheter open was durable in existing testsMichael Adam1-0/+8
2011-10-30s4:torture:smb2: adapt comment in durable-open.lease test according to ↵Michael Adam1-0/+3
current information.
2011-10-30s4:torture:smb2: fix the durable_open test to succeed against w7 and w2k8r2Michael Adam1-1/+1
When a first client that has a durable open with share read/write/delete and a read-write-handle lease on the file disconnects, a second client will succeed in opening the file and the new client will be given a RWH-lease if requested, not only a RH-lease, as was previously checked in the test. This might have been a bug in win7 build 7000, which is what the comments in the test give as reference.
2011-10-28s4:torture:smb2: avoid leaking tree connects up to the main function from ↵Michael Adam1-0/+13
the durable_open test The tree connects are handed in from the calling wrapper. Those that are freed and reconnected inside the test function can not be freed in the wrapper and stick to the torture_context until this is released in the main function. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Oct 28 02:37:25 CEST 2011 on sn-devel-104
2010-12-11s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij1-6/+6
This is consistent with the test names used by selftest, should make the names less confusing and easier to integrate with other tools. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
2009-11-25s4/libcli: rename previously reserved field in SMB2 LOCK structSteven Danneman1-1/+1
The lock.in.reserved field has been renamed lock_sequence in the SMB 2.1 dialect. See MS-SMB 2.2.26.