summaryrefslogtreecommitdiffstats
path: root/source4/torture/raw/lock.c
Commit message (Collapse)AuthorAgeFilesLines
* torture: Reproducer for 64c0367Volker Lendecke2012-08-101-0/+20
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s4:torture: send the TCONX_FLAG_EXTENDED_RESPONSE flagStefan Metzmacher2012-08-021-1/+1
| | | | | | | metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Aug 2 10:54:18 CEST 2012 on sn-devel-104
* s4-torture: Improve torture test boilerplate, use torture_assert()Andrew Bartlett2012-05-181-33/+11
| | | | | | | | | This ensures that if this fails, it is reported as a subunit error correctly. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri May 18 09:35:13 CEST 2012 on sn-devel-104
* Fix a bunch of "warning: variable ‘XXXX’ set but not used ↵Jeremy Allison2011-11-211-4/+0
| | | | | | | [-Wunused-but-set-variable]" warnings from the new gcc. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Nov 21 23:39:08 CET 2011 on sn-devel-104
* source4/torture/raw: Fix prototypes for all functions.Jelmer Vernooij2011-03-191-0/+1
|
* s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij2010-12-111-5/+3
| | | | | | | | 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
* s4:torture - suppress printf "%llu" on uint64_t variables warningsMatthias Dieter Wallnöfer2010-11-011-4/+4
| | | | | | The signed/unsignedness does match (always unsigned). The bitlength (64 bit) on all regular platforms does also. Therefore simply add a cast to "unsigned long long".
* s4/torture: use time_mono for deltas in lock testBjörn Jacke2010-09-101-22/+22
|
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-161-3/+3
| | | | | | | this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* subunit: Support formatting compatible with upstream subunit, for consistency.Jelmer Vernooij2010-04-111-13/+13
| | | | | | Upstream subunit makes a ":" after commands optional, so I've fixed any places where we might trigger commands accidently. I've filed a bug about this in subunit.
* s4/torture: Parameterize output in LOCK tests based off server supportSteven Danneman2010-01-101-47/+73
| | | | | | | | | | | Two new torture parameters: * smbexit_pdu_support: if the Server supports the Exit command * range_not_locked_on_file_close: whether the server returns the NT_STATUS_RANGE_NOT_LOCKED error when a file is closed which has a pending lock request. Windows returns this error, though per the spec, this error should only be returned to an unlock request.
* s4/torture: fix small bug in lock testSteven Danneman2010-01-061-0/+1
| | | | Cleanup path should unlock, not cancel existing locked range.
* s4/torture: add more lock cancellation testsSteven Danneman2010-01-061-2/+95
| | | | | * Test the SMB1 behavior when multiple lock ranges are requested, pend, and then are cancelled. The entire LockingAndX request fails.
* s4/torture: add test for zero byte read contention with byte range locksSteven Danneman2009-12-071-1/+154
|
* s4/torture: fix >80 column spacing issuesSteven Danneman2009-12-071-3/+4
|
* Make smbtorture4 match Windows behavior.Jeremy Allison2009-12-041-41/+33
| | | | Jeremy.
* s4/torture: add multiple lock cancel testSteven Danneman2009-12-021-2/+91
| | | | | | | | | See what happens when we have multiple outstanding lock requests and we try to cancel both of them within a single LockingAndX. On Windows, it seems only the first lock in the array is cancelled, and the second is left pending. Though, this behavior goes against the MS-CIFS spec.
* s4/torture: add addition multiple lock testsSteven Danneman2009-12-021-0/+67
| | | | | | | | * test that 2 locks in a single LockAndX are transactional * test that 1 unlock and 1 lock in a single LockAndX are not transactional * test that SMB2 doesn't like mixed lock/unlock in a single PDU
* s4/torture: fix build warnings by removing unecessary constSteven Danneman2009-12-021-1/+1
|
* s4/torture: Add target functionality parameters to SMBv1 BRL testsSteven Danneman2009-12-021-6/+27
| | | | | | | | Abstract the server requirements to pass some BRL tests. * The new default for >64bit lock tests, is that the server should return STATUS_INVALID_LOCK_RANGE. * Add parameter for targets that don't implement DENY_DOS
* s4 torture: Move target macros to a common header instead of redefining them ↵Tim Prouty2009-12-011-5/+0
| | | | in multiple files
* s4:torture/raw/lock - Fix "discard const" warnings by introducing ↵Matthias Dieter Wallnöfer2009-12-011-3/+6
| | | | "discard_const_p"s
* s4-torture: mark s4 as doing valid lock range tests on SMBAndrew Tridgell2009-11-271-1/+2
|
* RAW-LOCK: fix a compiler warning and make a global static constStefan Metzmacher2009-07-061-3/+2
| | | | metze
* RAW-LOCK: fix the run against w2k3, w2k8, win7rc and samba3/4Stefan Metzmacher2009-07-061-35/+50
| | | | | | | | | We now allow --target=w2k8. The strange thing is that w2k8 and win7rc only do half of the timeout that was given by the client. metze
* RAW-LOCK: samba4 behaves like windows 7 in regard of locking error codesStefan Metzmacher2009-04-251-7/+13
| | | | metze
* s4:torture: use torture api instead of printf for RAW-LOCKStefan Metzmacher2009-04-251-234/+168
| | | | metze
* s/NT_STATUS_WIN7_INVALID_RANGE/NT_STATUS_INVALID_LOCK_RANGE/gZach Loafman2009-04-011-2/+2
|
* s4 torture: Smbtorture additions for Windows BRLZack Kirsch2009-02-111-5/+566
| | | | | | - Adds a few new BRL tests to RAW-LOCK - Adds a "win7" target to allow torture to handle protocol changes in windows 7
* s4 torture: Two minor fixes to smbtorture BRL tests.Zack Kirsch2009-02-111-2/+0
|
* Add gensec_settings structure. This wraps loadparm_context for now, butJelmer Vernooij2008-11-021-0/+1
| | | | should in the future only contain some settings required for gensec.
* Pass options struct into session initialization functions rather thanJelmer Vernooij2008-09-301-1/+4
| | | | using global_loadparm.
* Install public header files again and include required prototypes.Jelmer Vernooij2008-04-021-0/+1
| | | | (This used to be commit 47ffbbf67435904754469544390b67d34c958343)
* r26238: Add a loadparm context parameter to torture_context, remove more ↵Jelmer Vernooij2007-12-211-3/+3
| | | | | | uses of global_loadparm. (This used to be commit a33a5530545086b81a3b205aa109dff11c546926)
* r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij2007-10-101-50/+50
| | | | (This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
* r25430: Add the loadparm context to all parametric options.Jelmer Vernooij2007-10-101-2/+2
| | | | (This used to be commit fd697d77c9fe67a00939a1f04b35c451316fff58)
* r25398: Parse loadparm context to all lp_*() functions.Jelmer Vernooij2007-10-101-1/+1
| | | | (This used to be commit 3fcc960839c6e5ca4de2c3c042f12f369ac5f238)
* r25035: Fix some more warnings, use service pointer rather than service ↵Jelmer Vernooij2007-10-101-2/+2
| | | | | | number in more places. (This used to be commit df9cebcb97e20564359097148665bd519f31bc6f)
* r25026: Move param/param.h out of includes.hJelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit abe8349f9b4387961ff3665d8c589d61cd2edf31)
* r24735: Use torture API in more places.Jelmer Vernooij2007-10-101-31/+25
| | | | (This used to be commit 1319d88c099496be29dd9214fa2492c81e848369)
* r23792: convert Samba4 to GPLv3Andrew Tridgell2007-10-101-3/+2
| | | | | | There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
* r17785: fix compiler warningsStefan Metzmacher2007-10-101-8/+0
| | | | | metze (This used to be commit 256fc452a46dfe7449c6ebddb75e0801ceae5dc4)
* r17099: Samba3 now passes RAW-LOCK completely, no need forJeremy Allison2007-10-101-10/+0
| | | | | | parameters to protect it. Jeremy. (This used to be commit 382c37e3d70c4d259c400dba3d7e4c3846f66c34)
* r16907: Add an index parameter to torture_open_connection. Next step is to ↵Volker Lendecke2007-10-101-1/+1
| | | | | | | | | | enable the unclist parameter for all tests that do two connections, to enable cluster testing. Volker (This used to be commit a5d6db09244d444986f8fded3fc6e72c74c8ca1f)
* r15690: - disable the lock cancel test against samba3Stefan Metzmacher2007-10-101-0/+10
| | | | | | | - disable the LOCK_NOT_GRANTED vs. FILE_LOCK_CONFLICT test against samba3 metze (This used to be commit 620cc182b37918dc7a0cc45dbbbbf708ad76d187)
* r15615: - add some tests for cancel pending locks by SMBexit, SMBulogoff and ↵Stefan Metzmacher2007-10-101-5/+668
| | | | | | | | | | SMBtdis - add some tests which demonstrate the LOCK_NOT_GRANTED vs. FILE_LOCK_CONFLICT error cases of failed locks metze (This used to be commit 218910f9270767a7316b344212ee305f74ac93ea)
* r14720: Add torture_context argument to all torture testsJelmer Vernooij2007-10-101-1/+1
| | | | (This used to be commit 3c7a5ce29108dd82210dc3e1f00414f545949e1d)
* r14527: Fix build problems.Jelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit 863ca4014d9b821706ee90f58ab5d5cf3899a4c7)
* r14256: - rename smb_file -> smb_handleStefan Metzmacher2007-10-101-10/+10
| | | | | | | | - move it into the in/out substructs again - allow file.path only on smb_fileinfo/smb_setfileinfo metze (This used to be commit be6d5298a2cdb7e7c61d70471bad445645af5963)
* r14173: change smb interface structures to always useStefan Metzmacher2007-10-101-10/+10
| | | | | | | | | | | | | a union smb_file, to abtract - const char *path fot qpathinfo and setpathinfo - uint16_t fnum for SMB - smb2_handle handle for SMB2 the idea is to later add a struct ntvfs_handle *ntvfs so that the ntvfs subsystem don't need to know the difference between SMB and SMB2 metze (This used to be commit 2ef3f5970901b5accdb50f0d0115b5d46b0c788f)