summaryrefslogtreecommitdiff
path: root/source4/torture/basic/delaywrite.c
AgeCommit message (Collapse)AuthorFilesLines
2010-09-16s3/s4: merge msleep and smb_msleepBjörn Jacke1-66/+66
the merged variant is renamed to smb_msleep as some platforms already have a msleep function.
2009-11-05Fix up some of the timing constants for DELAYWRITE. Add some extra tests up ↵Jeremy Allison1-30/+114
test_delayed_write_update6 to investigate what happens to a sticky write handle after a second handle close. Jeremy.
2009-09-14Torture test for bug 6529 - Offline files conflict with Vista and Office 2003.Jeremy Allison1-0/+131
Ensure we don't regress. Jeremy.
2009-08-24Allow systems with timestamp granularity of 1sec to work withJeremy Allison1-0/+15
this test. Jeremy.
2009-06-03Note that the delaytime for update has changed betweek w2k3 and w2k8.Jeremy Allison1-7/+11
We must eventually parameterize this. Jeremy.
2008-09-18Properly report why a test didn't succeed (required for use with knownJelmer Vernooij1-117/+91
failures).
2008-09-12Comment the delay write time tests so I know what they'reJeremy Allison1-3/+41
testing. Jeremy. (This used to be commit 2bf9074c7751324483744f55b02cfb044bb0b2dd)
2008-09-09A truncate write must be a smbcli_smbwrite, not aJeremy Allison1-1/+1
smbcli_write. Jeremy. (This used to be commit 8cebd4d36c862dcdc6551dc6bf4dda2342dfede7)
2008-09-08Make it easier to see when tests start/end.Jeremy Allison1-15/+52
Jeremy. (This used to be commit 6f89e728272ca14f0ed9557485e21647c0731ef2)
2008-09-08BASE-DELAYWRITE: test behavior of SMBwrite truncate, writeX, SMBwrite ↵Stefan Metzmacher1-0/+204
truncate and writeX again metze (This used to be commit 66b8c8d80e1c8e45ab6ca38cabebea07aa122c40)
2008-09-08BASE-DELAYWRITE: test behavior of writeX, SMBwrite truncate, writeX and ↵Stefan Metzmacher1-0/+206
SMBwrite again metze (This used to be commit 051164ba0a69d54aa706ffa876059e8dbbeacb36)
2008-09-08BASE-DELAYWRITE: demonstrate that a truncate write doesn't update the write ↵Stefan Metzmacher1-0/+157
time after SET_FILE_INFO metze (This used to be commit f81014db9d5afbf9e0b1c007bc56fc1d3a201309)
2008-09-08BASE-DELAYWRITE: demonstrate that the time between the open and the first ↵Stefan Metzmacher1-0/+159
write doesn't matter metze (This used to be commit 13d051cd633f4a4152d360453fe5297ad53cc7b5)
2008-09-08BASE-DELAYWRITE: test more details of the truncate write time update behaviorStefan Metzmacher1-4/+371
metze (This used to be commit 39367ef15fabbb52cd2c05be7ca59b25dc4aff71)
2008-09-05Don't compare identity, it'll never be different.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 840369b5534eee21818b9d3677404b0fc60a0219)
2008-09-05Added tests that show that write time update is immediateJeremy Allison1-1/+347
when changing file size using SMBwrite of size zero, SET_END_OF_FILE, or SET_ALLOCATION_SIZE - no 2 second delay in these cases. Jeremy. (This used to be commit 3aa7523d7750fe30d1e6bb5a75ac42b681b9e493)
2008-06-03Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-testAndrew Tridgell1-1/+3
(This used to be commit 9d74201e462f2f95ed5bd91200681db3bd2a9277)
2008-06-03BASE-DELAYWRITE: fix test on filesystem without high resolution timestampsStefan Metzmacher1-1/+1
metze (This used to be commit fde9880f9943897549859037b0fc9341d3a032f7)
2008-06-03BASE-DELAYWRITE: add missing time checks to make sure the server has updated ↵Stefan Metzmacher1-0/+2
the write time metze (This used to be commit 9c004df8910c07d75bb3f75d7c3cfba9f9c94f51)
2008-06-02remove unused macrosAndrew Tridgell1-12/+0
(This used to be commit 7a1877db15e6a57f0f057dcf5da6609b9bdeef51)
2008-04-08BASE-DELAYWRITE: be more friendly to filesystems without high resolution ↵Stefan Metzmacher1-1/+12
timestamps metze (This used to be commit 9c18cf670889c9eb8c12b505c3b9ce5f9a516839)
2008-04-08BASE-DELAYWRITE: use timeval_* and make it possible to spefic the writetime ↵Stefan Metzmacher1-101/+164
update delay metze (This used to be commit 751ab2992afd13548af6e67a03d3ced566cb136f)
2008-04-02Install public header files again and include required prototypes.Jelmer Vernooij1-0/+1
(This used to be commit 47ffbbf67435904754469544390b67d34c958343)
2007-12-21r26307: BASE-DELAYWRITE: only set the write timeStefan Metzmacher1-3/+3
metze (This used to be commit b7d7a58b2399627c37d8b79e6282a44d50f8c68e)
2007-12-21r26306: BASE-DELAYWRITE: print access time stamps and test fileinfo and ↵Stefan Metzmacher1-3/+36
pathinfo match metze (This used to be commit 58bc21a3f849ef7200733450dbd68f15658ff8f6)
2007-12-21r26220: BASE-DELAYWRITE: add more subtests to explore write time update detailsStefan Metzmacher1-0/+679
metze (This used to be commit 92dcc85e3a8798910eb0a9059f3a2944fa51cbd1)
2007-12-21r26219: BASE-DELAYWRITE: make the tests more strict about the write time updateStefan Metzmacher1-38/+49
metze (This used to be commit c1335651d32a2b48bcf8c117a5bc16fe453170bc)
2007-10-10r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij1-45/+45
(This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
2007-10-10r23792: convert Samba4 to GPLv3Andrew Tridgell1-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)
2007-10-10r21707: Finally merge my (long-living) perlselftest branch.Jelmer Vernooij1-15/+15
This changes the main selftest code to be in perl rather than in shell script. The selftest script is now no longer a black box but a regular executable that takes --help. This adds the following features: * "make test TESTS=foo" will run only the tests that match the regex "foo" * ability to deal with expected failures. the suite will not warn about tests that fail and are known to fail, but will warn about other failing tests and tests that are succeeding tests but incorrectly marked as failing. * ability to print a summary with all failures at the end of the run It also opens up the way to the following features, which I hope to implement later: * "environments", for example having a complete domains with DCs and domain members in a testenvironment * only set up smbd if necessary (not when running LOCAL tests, for example) * different mktestsetup scripts per target. except for the mktestsetup script, we can use the same infrastructure for samba 3 or windows. (This used to be commit 38f867880beb40c691e9713f854426031310629c)
2007-10-10r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grainedJelmer Vernooij1-120/+89
output in the testsuite rather than just True or False for a set of tests. The aim is to use this for: * known failure lists (run all tests and detect tests that started working or started failing). This would allow us to get rid of the RPC-SAMBA3-* tests * nicer torture output * simplification of the testsuite system * compatibility with other unit testing systems * easier usage of smbtorture (being able to run one test and automatically set up the environment for that) This is still a work-in-progress; expect more updates over the next couple of days. (This used to be commit 0eb6097305776325c75081356309115f445a7218)
2007-10-10r16907: Add an index parameter to torture_open_connection. Next step is to ↵Volker Lendecke1-3/+3
enable the unclist parameter for all tests that do two connections, to enable cluster testing. Volker (This used to be commit a5d6db09244d444986f8fded3fc6e72c74c8ca1f)
2007-10-10r15718: - split the SMBflush with the 0xFFFF wildcard fnum into a different ↵Stefan Metzmacher1-0/+1
level metze (This used to be commit 95bf41b4d4ec96349802955e364fe44ef85f9077)
2007-10-10r14720: Add torture_context argument to all torture testsJelmer Vernooij1-1/+1
(This used to be commit 3c7a5ce29108dd82210dc3e1f00414f545949e1d)
2007-10-10r14527: Fix build problems.Jelmer Vernooij1-0/+1
(This used to be commit 863ca4014d9b821706ee90f58ab5d5cf3899a4c7)
2007-10-10r14256: - rename smb_file -> smb_handleStefan Metzmacher1-12/+12
- move it into the in/out substructs again - allow file.path only on smb_fileinfo/smb_setfileinfo metze (This used to be commit be6d5298a2cdb7e7c61d70471bad445645af5963)
2007-10-10r14173: change smb interface structures to always useStefan Metzmacher1-12/+12
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)
2007-10-10r12694: Move some headers to the directory of the subsystem they belong to.Jelmer Vernooij1-0/+1
(This used to be commit c722f665c90103f3ed57621c460e32ad33e7a8a3)
2007-10-10r12693: Move core data structures out of smb.h into core.hJelmer Vernooij1-0/+1
torture prototypes in seperate header (This used to be commit 73610639b23ca3743077193fa0b1de7c7f65944d)
2007-10-10r8520: fixed a pile of warnings from the build farm gcc -Wall output onAndrew Tridgell1-7/+12
S390. This is an attempt to avoid the panic we're seeing in the automatic builds. The main fixes are: - assumptions that sizeof(size_t) == sizeof(int), mostly in printf formats - use of NULL format statements to perform dn searches. - assumption that sizeof() returns an int (This used to be commit a58ea6b3854973b694d2b1e22323ed7eb00e3a3f)
2007-10-10r5730: More fun with delayed write semantics with multiple file handlesJeremy Allison1-2/+168
open on the same file on the same connection. Jeremy. (This used to be commit 23733abfa201347265f54232989b608b11ad7a85)
2007-10-10r5298: - got rid of pstring.h from includes.h. This at least makes it a bitAndrew Tridgell1-0/+1
less likely that anyone will use pstring for new code - got rid of winbind_client.h from includes.h. This one triggered a huge change, as winbind_client.h was including system/filesys.h and defining the old uint32 and uint16 types, as well as its own pstring and fstring. (This used to be commit 9db6c79e902ec538108d6b7d3324039aabe1704f)
2007-10-10r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for theAndrew Tridgell1-1/+1
large commit. I thought this was worthwhile to get done for consistency. (This used to be commit ec32b22ed5ec224f6324f5e069d15e92e38e15c0)
2007-10-10r3888: Just proving :-) to tridge that a Setfileinfo with a modifiedJeremy Allison1-2/+17
write time is sticky, and causes any subsequent writes not to update the last write time. Added write that extends the file followed by fnum specific smbflush. It stays the same time :-). Jeremy. (This used to be commit a2ea2166dcb7044d7b9e53417e53febea2f81e20)
2007-10-10r3887: Much better understanding of delayed write time, and the interactionJeremy Allison1-4/+80
with setfileinfo modifying the write time. I have some ideas on how to emulate this in the Samba server now but the commented case will be very hard... Jeremy. (This used to be commit c9211d084719a16f671b315a9c0bc6ed59fa8c8e)
2007-10-10r3886: Trying to understand delayed file write update times. Added anotherJeremy Allison1-0/+97
test that uses 2 connections and queries the time via pathinfo, not fileinfo. MSDN states : "When writing to a file, the last write time is not fully updated until all handles used for writing have been closed." - but this is obviously untrue. W2K3 seems to use a 2 second granularity for this. Next I'll try using SetFileTime equivalent to see if this takes the same time to take effect. Jeremy. (This used to be commit 2e47e241f98c3dba8be346cea726def38399eb97)
2007-10-10r3699: - split the delayed write testing out of RAW-WRITE, as it is not yetAndrew Tridgell1-0/+284
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)