summaryrefslogtreecommitdiff
path: root/source4/torture/raw
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r3746: added RAW-STREAMS and RAW-EAS tests to smbtortureAndrew Tridgell2-0/+409
(This used to be commit 5ed3d68d20860bdedcfeb2461af570aedc689674)
2007-10-10r3717: - expanded the RAW-RENAME test a littleAndrew Tridgell1-3/+46
- added support for wildcard rename in pvfs - made more consistent use of pvfs_map_errno() (This used to be commit e255d1c3a811c480a850452aaf636d9fa36f69fe)
2007-10-10r3699: - split the delayed write testing out of RAW-WRITE, as it is not yetAndrew Tridgell14-348/+35
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)
2007-10-10r3594: continue conversion to __location__ from __LINE__ for error reportingAndrew Tridgell1-9/+9
(This used to be commit 425e36ca4dd98d3fee8ab5bb775cb15dfa27f8fa)
2007-10-10r3576: don't consider short share delay timeouts to be an error, so we canAndrew Tridgell1-2/+0
run test_posix.sh in a reaonable time by using posix:sharedelay=100000 this still tests correct multiplex behaviour (This used to be commit 64a6db5b029343f41fc9c3582e0fb051d6c18d39)
2007-10-10r3574: the RAW-OPEN test changes broke a couple of the other tests. ThisAndrew Tridgell1-3/+3
fixes most of them, although RAW-SEARCH still fails (due to an interaction with the new xattr code) (This used to be commit 09b4652b40c4cfca027765178bd5a0adbaa666c2)
2007-10-10r3573: added trans2open support to smbd and pvfs, and fine-tuned the ↵Andrew Tridgell1-47/+29
open->generic ntvfs mapping code. (This used to be commit ed844192d7f7ed487290f719df65f256a5b0b9bc)
2007-10-10r3540: added testing of SMBntcancel in the open/open/close muxAndrew Tridgell1-14/+33
testing. Interestingly, w2k3 does not allow the cancel of an outstanding async open request, whereas it does allow the cancel of an outstanding async lock request. To support this I have changed the pvfs_wait interface to provide a enum on why the event is happening, so the callback can decide what to do. (This used to be commit f23d6a28008a13588cde24b5012ec21e488ac47a)
2007-10-10r3539: much nicer async open delay code.Andrew Tridgell1-7/+16
The previous code didn't handle the case where the file got renamed or deleted while waiting for the sharing violation delay. To handle this we need to make the 2nd open a full open call, including the name resolve call etc. Luckily this simplifies the logic. I also expanded the RAW-MUX test to include the case where we do open/open/open/close/close, with the 3rd open async, and that open gets retried after both the first close and the 2nd close, with the first retry failing and the 2nd retry working. The tests the "async reply after a async reply" logic in pvfs_open(). (This used to be commit eded2ad9c91f5ba587ef4f7f5f5a6dceb4b51ff3)
2007-10-10r3528: added support for the SMBntcancel() operation, which cancels anyAndrew Tridgell1-0/+4
outstanding async operation (triggering an immediate timeout). pvfs now passes the RAW-MUX test (This used to be commit 3423e2f41461d054067ef168b9b986f62cc8f77c)
2007-10-10r3507: - added deferred replies on sharing violation in pvfs open. TheAndrew Tridgell2-4/+26
deferred reply is short-circuited immediately when the file is closed by another user, allowing it to be opened by the waiting user. - added a sane set of timeval manipulation routines - converted all the events code and code that uses it to use struct timeval instead of time_t, which allows for microsecond resolution instead of 1 second resolution. This was needed for doing the pvfs deferred open code, and is why the patch is so big. (This used to be commit 0d51511d408d91eb5f68a35e980e0875299b1831)
2007-10-10r3463: separated out some more headers (asn_1.h, messages.h, dlinklist.h and ↵Andrew Tridgell1-0/+1
ioctl.h) (This used to be commit b97e395c814762024336c1cf4d7c25be8da5813a)
2007-10-10r3458: more solaris portability fixes, the main one being that we can't use aAndrew Tridgell1-31/+31
structure element called "open" as its a macro on solaris. (This used to be commit 4e92e15c4e396b1d8cd211192888fea68c2cf0f9)
2007-10-10r3447: more include/system/XXX.h include filesAndrew Tridgell6-0/+6
(This used to be commit 264ce9181089922547e8f6f67116f2d7277a5105)
2007-10-10r3419: moved the libcli/raw structures into libcli/raw/libcliraw.hAndrew Tridgell9-0/+9
and made them private (This used to be commit 386ac565c452ede1d74e06acb401ca9db99d3ff3)
2007-10-10r3324: made the smbtorture code completely warning freeAndrew Tridgell19-20/+20
(This used to be commit 7067bb9b52223cafa28470f264f0b60646a07a01)
2007-10-10r3288: - updated the path processing in pvfs to pass the RAW-CHKPATH test. ThisAndrew Tridgell1-209/+72
rather extensive test reveals some really bizarre error code handling in w2k3. - extended and simplified the RAW-CHKPATH test, making it easier to read (note that Samba3 fails the new tests - jra may wish to look) - marked RAW-CHKPATH as pass for pvfs (This used to be commit 32dccf91cfa5b57f84dd6307720b3f45faa10ae0)
2007-10-10r3276: - allow for more than 256 open old style searches (limit currently ↵Andrew Tridgell1-14/+166
set at an arbitrary 5000) - auto-cleanup old searches that the client forgot to close (common with old searches) - expanded the RAW-SEARCH test to test more than 256 old searches, and old search rewind (w2k3 fails this - it appears to not support rewind on old style searches) (This used to be commit bc83d823b2140a10007490bf0101843a886f99a6)
2007-10-10r3270: - added another unlink testAndrew Tridgell1-0/+5
- removed BASE-TRANS2 from the list of tests to be worked on (its already in the "passes" list) (This used to be commit 8ba10229c3860b955de698c3e2660cf6d18e2f22)
2007-10-10r3261: added seek to RAW-SEARCH testAndrew Tridgell1-5/+4
(This used to be commit 05530bfb99011db8a00f5debcf8eec19b5e8a5d6)
2007-10-10r3259: expanded the RAW-SEARCH test some moreAndrew Tridgell1-2/+4
(This used to be commit cc58d249f973397bf800c9b56a5d4ab30fcda2b4)
2007-10-10r3257: make the RAW-SEARCH test less sensitive to the servers directory orderingAndrew Tridgell1-6/+7
(This used to be commit 097823bbde94da2a9d9d2afef3a4ed2715bb1f04)
2007-10-10r3254: - expanded the RAW-IOCTL testAndrew Tridgell1-0/+8
- fixed the old ioctl interface to not check handle before failing - pvs now passes RAW-IOCTL (This used to be commit 98f6dbdba46c907039951559ec5f526410fd0039)
2007-10-10r3251: - move the openattr test code into basic/attr.cAndrew Tridgell1-113/+111
- cleaned up the RAW-WRITE test so it passes against w2k3, and gives more useful error messages (This used to be commit d4042c4364b571b9425e1706fc765376160c8a60)
2007-10-10r3245: use __location__ in RAW-SEARCHAndrew Tridgell1-18/+18
(This used to be commit 3d5f7f4ac49227369eced4b7fe9fe3a8e5ecafbb)
2007-10-10r3242: make the RAW-READ test not exercise the 0-0 lock, which is not ↵Andrew Tridgell1-4/+6
deterministic (This used to be commit ecd4e315b99a0f2aa021937308c7b93c33efbd93)
2007-10-10r3236: test a few more combinations in RAW-UNLINKAndrew Tridgell1-0/+27
(This used to be commit 5b239ad57be93fabd50760b12878e32df53e939d)
2007-10-10r3235: try readx beyond 64k in RAW-READAndrew Tridgell1-6/+17
(This used to be commit e07c557eca19c0dc17473090bde45c27953aaf65)
2007-10-10r3206: - added the reverse map for ERRbaduid to NT_STATUS_INVALID_HANDLEAndrew Tridgell1-0/+2
- force disable spnego in the RAW-CONTEXT test (it breaks the test) (This used to be commit 3f247ec21c59af92b420a3e550552b5a1f1f08e2)
2007-10-10r3199: added a couple more test paths to RAW-CHKPATHAndrew Tridgell1-0/+10
(This used to be commit 17f10a39c858a5a6e128f3f827d83687c5ba7d90)
2007-10-10r3198: check for too many .. components in filenamesAndrew Tridgell1-2/+2
pvfs now passes RAW-MKDIR (This used to be commit 41adb385f123b8d4cd3fe2eb03d891b6bdcf2361)
2007-10-10r3191: use __location__ in RAW-UNLINK testAndrew Tridgell1-2/+2
(This used to be commit fb1929743aae5ca758ee6757aaf772754459f683)
2007-10-10r3180: - basic support for SEC_RIGHT_MAXIMUM_ALLOWED in pvfsAndrew Tridgell1-6/+6
- RAW-CONTEXT test now passes (This used to be commit 0dae9fef09ec8bce19c39a0caf36e0882e507bc4)
2007-10-10r3173: make the RAW-QFILEINFO test cope better with null strings from the serverAndrew Tridgell1-4/+4
(This used to be commit a10fca41de7e19e610bf9fd0a854b7b35d652561)
2007-10-10r3108: try to cope with servers that put FILE_ATTRIBUTE_NONINDEXED on files ↵Andrew Tridgell1-11/+15
in the RAW-OPEN test (This used to be commit bed7d12f266b6aa6d4f694dd74a2c6134cd72663)
2007-10-10r3105: using __location__ instead of __LINE__ to give info on error ↵Andrew Tridgell1-25/+25
locations is more useful (This used to be commit 80dd22a1f1aea27312b3cd06addf50e7c288259e)
2007-10-10r3085: make the RAW-WRITE tests more robust to errors in previous parts of ↵Andrew Tridgell1-19/+19
the test (This used to be commit 6ea815b6d426d37723a200226cb5f7236a13017f)
2007-10-10r3034: - fixed a bug in message dispatch, when the dispatch function called ↵Andrew Tridgell1-1/+130
messaging_deregister() - added a pvfs_lock_close_pending() hook to remove pending locks on file close - fixed the private ptr argument to messaging_deregister() in pvfs_wait - fixed a bug in continuing lock requests after a lock that is blocking a pending lock is removed - removed bogus brl_unlock() call in lock continue - corrected error code for LOCKING_ANDX_CHANGE_LOCKTYPE - expanded the lock cancel test suite to test lock cancel by unlock and by close - added a testsuite for LOCKING_ANDX_CHANGE_LOCKTYPE (This used to be commit 5ef80f034d4aa4dd6810532c63ad041bfc019cb8)
2007-10-10r3030: added testing of lock cancel, and some more special offsets (locksAndrew Tridgell1-17/+235
with the top bit set are special) (This used to be commit f732a983d4fde29d5ad893ad35fd182ee3d8a75b)
2007-10-10r3029: implemented byte range lock timeouts.Andrew Tridgell1-1/+37
This adds a pvfs_wait_message() routine which uses the new messaging system, event timers and talloc destructors to give a nice generic async event handling system with a easy to use interface. The extensions to pvfs_lock.c are based on calls to pvfs_wait_message() routines. We now pass all of our smbtorture locking tests, although while writing this code I have thought of some additonal tests that should be added, particularly for lock cancel operations. I'll work on that soon. This commit also extends the smbtorture lock tests to test the rather weird 0xEEFFFFFF locking semantics that I have discovered in win2003. Win2003 treats the 0xEEFFFFFF boundary as special, and will give different error codes on either side of it. Locks on both sides are allowed, the only difference is which error code is given when a lock is denied. Anyone like to hazard a guess as to why? It has me stumped. (This used to be commit 4395c0557ab175d6a8dd99df03c266325949ffa5)
2007-10-10r2983: report a failure if a server doesn't update the write time at allAndrew Tridgell1-1/+8
after 2 minutes (This used to be commit b2298a1c5f0330a262ac855479060fd677fe8059)
2007-10-10r2982: added a test that shows the amount of time a server takes to updateAndrew Tridgell1-0/+84
the write time on a file after a write. (This used to be commit efee3c90f90b1e9dd3351933d27fe8a085c3657f)
2007-10-10r2929: longhorn does not produce sorted directory listings! This isAndrew Tridgell1-2/+1
excellent, as it means we don't lose any compatibility by also not giving sorted listings. I was very much afraid that applications had begun to rely on this (as its guaranteed by w2k NTFS). no longer mark a non-sorting server as an error (This used to be commit 1d21c9a9d1879f5b3de15d251b6bb379c326002d)
2007-10-10r2912: Test for the sort-of weird file stamp semantics. The last_write seems ↵Volker Lendecke1-54/+92
to be updated only by an arbitrary close() after the file was actually written to. Volker (This used to be commit ab52ebfdccc65ca510d74ce8e0205b45b58550ef)
2007-10-10r2909: fix some RAW-SEARCH torture mem leaksAndrew Tridgell1-4/+5
(This used to be commit 75ca5ba5091c9046159531b917ff17a519013556)
2007-10-10r2895: Another nut to crack, not sure how hard: The statinfo on a file does ↵Volker Lendecke1-0/+103
obviously not change during a write. The nasty thing: Excel 2003 obviosly does depend on this. Volker (This used to be commit 8e26775134671114425ce1ecf7a22bad4e763d1f)
2007-10-10r2738: free up the session information as soon as it is invalidated in theAndrew Tridgell1-1/+1
RAW-CONTEXT test case (This used to be commit f4a7a3282af6c6ff771547d2efdbba0fe0451b3e)
2007-10-10r2710: continue with the new style of providing a parent context wheneverAndrew Tridgell1-3/+1
possible to a structure creation routine. This makes for much easier global cleanup. (This used to be commit e14ee428ec357fab76a960387a9820a673786e27)
2007-10-10r2680: switched the libcli/raw/ code over to use talloc_reference(), which ↵Andrew Tridgell1-5/+0
simplifies things quite a bit (This used to be commit c82a9cf750829c4f6982ca3133295c8599023c4e)
2007-10-10r2671: we're getting too many errors caused by the talloc_realloc() API notAndrew Tridgell1-2/+4
taking a context (so when you pass a NULL pointer you end up with memory in a top level context). Fixed it by changing the API to take a context. The context is only used if the pointer you are reallocing is NULL. (This used to be commit 8dc23821c9f54b2f13049b5e608a0cafb81aa540)