summaryrefslogtreecommitdiffstats
path: root/source4/torture/raw/rename.c
Commit message (Collapse)AuthorAgeFilesLines
* s4-torture: Improve torture test boilerplate, use torture_assert()Andrew Bartlett2012-05-181-12/+4
| | | | | | | | | 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
* 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-1/+1
| | | | | | | | 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: close handle instead of using exitTim Prouty2009-12-171-1/+1
|
* s4 torture: Update RAW-RENAME to pass against win7Tim Prouty2009-12-071-5/+27
|
* s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell2009-10-201-2/+0
| | | | This reduces compile time somewhat.
* s4-smb: declare root_fid as a file handleAndrew Tridgell2009-10-151-3/+3
| | | | | | In order to implement root_fid in the s4 SMB server we need to declare it as a handle type, just as for other fnum values in SMB. This required some extensive (but simple) changes in many bits of code.
* Exteded RAW-RENAME test to catch regressions in bug 6781.Jeremy Allison2009-10-071-4/+40
| | | | Jeremy.
* s4 torture: Extend the RAW-RENAME test to more fully test directory renames.Tim Prouty2009-08-061-0/+50
| | | | | | | | | The existing test was only covering files opened underneath the directory that was being renamed. It is not uncommon for windows clients to actually hold a read-only handle to a directory open across the rename, which it turns out doesn't return NT_STATUS_ACCESS_DENIED. Additionally, holding a handle open to a stream on the directory is also allowed.
* s4:tortore: use torture api instead of printf in RAW-RENAMEStefan Metzmacher2009-04-251-36/+38
| | | | metze
* Add another torture test inspired by George @ Apple.Jeremy Allison2009-02-261-0/+86
| | | | | | | | | | | | | | | | | | Inside a directory, keep a file open and then renaming the directory should fail with ACCESS_DENIED. This is connected to the test case where the close was failing due to a delayed write on a file not being able to succeed when Samba allowed the containing directory to be renamed. I will fix this in the server shortly (this should be done across connections also but with will be very hard in Samba - would need a full scan of the open file db on every directory rename) - so I will fix for the local case first (scanning local file opens inside an smbd is cheap). Jeremy.
* s4 torture: Add rename test to imitate the way OS X renames filesAravind Srinivasan2009-02-131-0/+83
| | | | | This tests for mis-behaved case-insensitive get_real_filename implementations.
* Added test_nttransrename() to test Metze's new code.Jeremy Allison2008-03-111-1/+3
| | | | | Jeremy. (This used to be commit 4556fafede8691c6a12670695ff108e9e59aff98)
* Test trans2 renames with oplocks. It looks like trans2 renamesJeremy Allison2008-03-111-0/+4
| | | | | | ignore share modes and oplock breaks :-(. Jeremy. (This used to be commit a8a5339cf2ca218668f888eced5ffe7ce059553c)
* r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij2007-10-101-6/+6
| | | | (This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
* r24735: Use torture API in more places.Jelmer Vernooij2007-10-101-34/+21
| | | | (This used to be commit 1319d88c099496be29dd9214fa2492c81e848369)
* r24695: Now the Samba4 passes this test, remove the skip...Andrew Bartlett2007-10-101-8/+0
| | | | | Andrew Bartlett (This used to be commit 771affed88edd1e2ad891bf2a253f7dc8082dd86)
* r24570: Attempt to fix make testVolker Lendecke2007-10-101-2/+8
| | | | | Samba4 seems not to survive the newly added tests (This used to be commit b8a8a81ffe58ae8d7c2fd006c0cd285db714cbfe)
* r24569: Add two testsVolker Lendecke2007-10-101-0/+20
| | | | | | | A subtest for rename to check if case-changing renames work A test that exposes the case insensitivity unix_convert bug (This used to be commit 786706322a920fd54585bec72d860ed112398f12)
* 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)
* 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)
* 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)
* r12694: Move some headers to the directory of the subsystem they belong to.Jelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit c722f665c90103f3ed57621c460e32ad33e7a8a3)
* r12693: Move core data structures out of smb.h into core.hJelmer Vernooij2007-10-101-0/+1
| | | | | torture prototypes in seperate header (This used to be commit 73610639b23ca3743077193fa0b1de7c7f65944d)
* r12608: Remove some unused #include lines.Jelmer Vernooij2007-10-101-1/+0
| | | | (This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
* r12542: Move some more prototypes out to seperate headersJelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit 0aca5fd5130d980d07398f3291d294202aefe3c2)
* r7487: check both files before and after setting the attribs on file1Stefan Metzmacher2007-10-101-0/+7
| | | | | metze (This used to be commit 376c0560e0cb453fa8a378ff2983b34310956ae8)
* r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for theAndrew Tridgell2007-10-101-1/+1
| | | | | | large commit. I thought this was worthwhile to get done for consistency. (This used to be commit ec32b22ed5ec224f6324f5e069d15e92e38e15c0)
* r4407: stricter checking of parameters on hard link creation in the ↵Andrew Tridgell2007-10-101-0/+8
| | | | | | RAW-RENAME test (This used to be commit b239589b00e673ae2d6254083cd324bc3b54bcdf)
* r4402: use __location__ instead of __LINE__ in the RAW-RENAME testAndrew Tridgell2007-10-101-4/+4
| | | | (This used to be commit 09ac1338209b0d0878173cfef3dca5603271b1a8)
* r4037: fixed a bunch of "might be uninitialised" warnings after enabling -O1 ↵Andrew Tridgell2007-10-101-1/+1
| | | | | | in my compile (This used to be commit 0928b1f5b68c858922c3ea6c27ed03b5091c6221)
* r4035: more effort on consistent naming of the access mask bits.Andrew Tridgell2007-10-101-1/+1
| | | | | | | | | | | This removes the duplicate named SEC_RIGHTS_MAXIMUM_ALLOWED and SEC_RIGHTS_FULL_CONTROL, which are just other names for SEC_FLAG_MAXIMUM_ALLOWED and SEC_RIGHTS_FILE_ALL. The latter names match the new naming conventions in security.idl Also added names for the generic->specific mappings for files are directories (This used to be commit 17a4e0b3aca227b40957ed1e0c57e498debc6ddf)
* r4011: get rid of rpc_secdes.h and replace it with a single sane set ofAndrew Tridgell2007-10-101-2/+3
| | | | | | | | | definitions for security access masks, in security.idl The previous definitions were inconsistently named, and contained many duplicate and misleading entries. I kept finding myself tripping up while using them. (This used to be commit 01c0fa722f80ceeb3f81f01987de95f365a2ed3d)
* r3717: - expanded the RAW-RENAME test a littleAndrew Tridgell2007-10-101-3/+46
| | | | | | | - added support for wildcard rename in pvfs - made more consistent use of pvfs_map_errno() (This used to be commit e255d1c3a811c480a850452aaf636d9fa36f69fe)
* r3699: - split the delayed write testing out of RAW-WRITE, as it is not yetAndrew Tridgell2007-10-101-6/+2
| | | | | | | | clear what the correct behaviour is for delayed stat info update. - use a common torture_setup_dir() function for setting up a test directory in torture tests. (This used to be commit f7fb34715b7d6ea3c35ddd684cfb27459a420339)
* r3324: made the smbtorture code completely warning freeAndrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit 7067bb9b52223cafa28470f264f0b60646a07a01)
* r1654: rename cli_ -> smbcli_Stefan Metzmacher2007-10-101-20/+20
| | | | | | | rename CLI_ -> SMBCLI_ metze (This used to be commit 8441750fd9427dd6fe477f27e603821b4026f038)
* Convert libcli routines to return NTSTATUS instead of BOOL. Again, theTim Potter2004-02-101-2/+2
| | | | | only users are smbclient and smbtorture. (This used to be commit 54cb508c78e5c1faa3ade46b46b165983c880d10)
* Convert libcli routines to use cli_tree instead of cli_state. PortTim Potter2004-02-081-17/+17
| | | | | | | | smbtorture to use the new interface. Part 2 will be to eliminate cli_state from smbtorture as this is now the only place where it is used. (This used to be commit db1cc96af62ea42837d60592877fc3f93cef143b)
* I think I've finally got the ascii/unicode issues right in trans2 findAndrew Tridgell2003-08-311-11/+36
| | | | | | | first Also expanded the rename test a little (This used to be commit 723af7f097a8c7f23dac23039e479811559ac3cb)
* more fixes from the IRIX compiler (thanks herb!)Andrew Tridgell2003-08-151-0/+1
| | | | (This used to be commit 02d068ba7d81d6db25122144981c63f74ad44025)
* - expanded the ntrename testAndrew Tridgell2003-08-131-2/+51
| | | | | - expanded seek test - the position information is handle specific! (This used to be commit 163970bda6dba4a6c98943eee49d6610a156c070)
* - added SMBntrename test suiteAndrew Tridgell2003-08-131-12/+196
| | | | | | | - allow username of form DOMAIN\username or DOMAIN/username - added ntrename to gentest (This used to be commit 2b464472c17b791eb5b117f89d5aaea2bf60f6ad)
* first public release of samba4 codeAndrew Tridgell2003-08-131-0/+128
(This used to be commit b0510b5428b3461aeb9bbe3cc95f62fc73e2b97f)