summaryrefslogtreecommitdiff
path: root/source4/torture/raw/search.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r14845: expanded the number of info levels tested for continue in theAndrew Tridgell1-90/+123
RAW-SEARCH test (This used to be commit a3e7640730b756392afce4ec1b69eda0bf044e3f)
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-7/+7
- 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-6/+6
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-10r13004: fix compiler warningsStefan Metzmacher1-2/+2
metze (This used to be commit 833efdf8a943b210ba8e5b219dc754260001bedb)
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-10r11639: fixed some create_time tests that should be change_time testsAndrew Tridgell1-5/+5
(This used to be commit c4266c7f688145a9b7da8977aff7fb972b7d0aa4)
2007-10-10r9876: Fix some 64-bit warnings for Itanium machine.Tim Potter1-2/+2
(This used to be commit 9e375d82e828879704442e5a27a9938015953de2)
2007-10-10r9792: Rename StrCaseCmp -> strcasecmp_m. All these years I was thinkingJelmer Vernooij1-2/+2
StrCaseCmp was sys_strcasecmp, while it is in fact strcasecmp_m! (This used to be commit 200a8f6652cb2de7a8037a7a4c2a204b50aee2b1)
2007-10-10r8773: fixed another dependency on directory ordering in RAW-SEARCHAndrew Tridgell1-1/+3
Thanks to andrew bartlett for helping to track this down (his was the only system that hit this) (This used to be commit 5edeb56bf0c86dae9cd9fe9275d1e37aedc05503)
2007-10-10r8729: make the RAW-SEARCH test more robust to servers with hash based ↵Andrew Tridgell1-8/+5
directory ordering (This used to be commit 8c4d0cd7b7063116ab08545dbe5f23390c7973c4)
2007-10-10r8712: cleanup old search test code to use tallocAndrew Tridgell1-16/+18
(This used to be commit 1d830bcd473a2166b6f89281faabb001697e35d4)
2007-10-10r8709: fixed the assumption in RAW-SEARCH that directories are returned in ↵Andrew Tridgell1-1/+10
sorted order (This used to be commit 92afff5fe7134872f12c25628d047b2a92e92a37)
2007-10-10r8537: cope better with the small file handle limit on some systems in the ↵Andrew Tridgell1-2/+2
build farm (This used to be commit 6202a9d099619a0ba78809647039cbc7622f1d3d)
2007-10-10r8522: fixed another couple of size_t warningsAndrew Tridgell1-1/+1
(This used to be commit d2c928548336682ffd3dda873f9957f3d041f0af)
2007-10-10r8497: prevent a fd leak in RAW-SEARCH testAndrew Tridgell1-1/+1
(This used to be commit efb151ba797a5473316ca2dc9ec7f40fead9dab2)
2007-10-10r8185: Delete on close on directories:Volker Lendecke1-4/+5
Creating a file in a directory with delete-on-close set returns DELETE_PENDING, and trying to set the flag on a non-empty directory returns DIRECTORY_NOT_EMPTY. Volker (This used to be commit 5680f34778b2f5291936f4d4fb937a7713696c52)
2007-10-10r8176: Exploring the share mode database...Volker Lendecke1-9/+11
A delete-on-close deleted file is still around while open on another fd. But only for findfirst, not for qpathinfo :-) Volker (This used to be commit dbc7a1a978d782c73f593f4b46f2a81d35169713)
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-10r5071: Reverted (per tridge request).Jeremy Allison1-1/+1
Jeremy. (This used to be commit 554e27023f8222cb0e2791fac924bb5a0dc97ba2)
2007-10-10r5068: I'm pretty sure an old search request is allowed to return changed caseJeremy Allison1-1/+1
versions of filenames. Tridge please check I haven't screwed this up. Jeremy. (This used to be commit 40c1e16b5bcdf520db1b514d647a7c7048e13ecc)
2007-10-10r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for theAndrew Tridgell1-5/+5
large commit. I thought this was worthwhile to get done for consistency. (This used to be commit ec32b22ed5ec224f6324f5e069d15e92e38e15c0)
2007-10-10r4591: - converted the other _p talloc functions to not need _pAndrew Tridgell1-3/+3
- added #if TALLOC_DEPRECATED around the _p functions - fixes the code that broke from the above while doing this I fixed quite a number of places that were incorrectly using the non type-safe talloc functions to use the type safe ones. Some were even doing multiplies for array allocation, which is potentially unsafe. (This used to be commit 6e7754abd0c225527fb38363996a6e241b87b37e)
2007-10-10r4547: - added talloc_new(ctx) macro that is a neater form of the common ↵Andrew Tridgell1-2/+2
talloc(ctx, 0) call. - cleaned up some talloc usage in various files I'd like to get to the point that we have no calls to talloc(), at which point we will rename talloc_p() to talloc(), to encourage everyone to use the typesafe functions. (This used to be commit e6c81d7c9f8a6938947d3c1c8a971a0d6d50b67a)
2007-10-10r4317: check the count of replies in the os2 ea_list torture testAndrew Tridgell1-0/+1
(This used to be commit 10861b3fa0cbba7f5e0ec3377431a85608a13a32)
2007-10-10r4263: added support for the trans2 RAW_SEARCH_EA_LIST informationAndrew Tridgell1-0/+118
level. This is quite a strange level that we've never seen before, but is used by the os2 workplace shell. note w2k screws up this level when unicode is negotiated, so it only passes the RAW-SEARCH test when you force non-unicode (This used to be commit 25189b8fbf6515d573e3398dc9fca56505dc37b9)
2007-10-10r4173: - new t2open code, that can cope with "create with EAs". Many thanksAndrew Tridgell1-1/+1
to kukks on #samba-technical for the sniffs that allowed me to work this out - much simpler ntvfs open generic mapping code - added t2open create with EA torture test to RAW-OPEN test (This used to be commit a56d95ad89b4f32a05974c4fe9a816d67aa369e3)
2007-10-10r4164: added a test that simulates a OS/2 file delete. This includes seek byAndrew Tridgell1-0/+105
name back into a directory for files that no longer exist. (This used to be commit 57204a1533687c5f7f2ee169f42584aea914154f)
2007-10-10r3699: - split the delayed write testing out of RAW-WRITE, as it is not yetAndrew Tridgell1-12/+4
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-10r3419: moved the libcli/raw structures into libcli/raw/libcliraw.hAndrew Tridgell1-0/+1
and made them private (This used to be commit 386ac565c452ede1d74e06acb401ca9db99d3ff3)
2007-10-10r3324: made the smbtorture code completely warning freeAndrew Tridgell1-1/+1
(This used to be commit 7067bb9b52223cafa28470f264f0b60646a07a01)
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-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-10r3245: use __location__ in RAW-SEARCHAndrew Tridgell1-18/+18
(This used to be commit 3d5f7f4ac49227369eced4b7fe9fe3a8e5ecafbb)
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-10r2909: fix some RAW-SEARCH torture mem leaksAndrew Tridgell1-4/+5
(This used to be commit 75ca5ba5091c9046159531b917ff17a519013556)
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)
2007-10-10r2649: - used some cpp tricks to make users of talloc() and talloc_realloc()Andrew Tridgell1-0/+3
to get auto-naming of pointers very cheaply. - fixed a couple of memory leaks found with the new tricks A typical exit report for smbd is now: talloc report on 'null_context' (total 811 bytes in 54 blocks) auth/auth_sam.c:334 contains 20 bytes in 1 blocks struct auth_serversupplied_info contains 498 bytes in 33 blocks UNNAMED contains 8 bytes in 1 blocks lib/data_blob.c:40 contains 16 bytes in 1 blocks iconv(CP850,UTF8) contains 61 bytes in 4 blocks iconv(UTF8,CP850) contains 61 bytes in 4 blocks iconv(UTF8,UTF-16LE) contains 67 bytes in 4 blocks iconv(UTF-16LE,UTF8) contains 67 bytes in 4 blocks UNNAMED contains 13 bytes in 1 blocks which is much better than before (This used to be commit 6e721393d03afd3c2f8ced8422533547a9e33342)
2007-10-10r2593: don't crash if the server doesn't know that 0 count searches mean 1Andrew Tridgell1-2/+6
(This used to be commit 640ced453092a5c5f3ffe7ee0fe4be804a4ced14)
2007-10-10r2520: - finished implementing the server side of the old style search requestsAndrew Tridgell1-7/+7
(This used to be commit 4e4859c06b9de5fe60ebd17cfb09eed480b79ec1)
2007-10-10r2469: complete overhaul of the old-style RAW_SEARCH_ calls (the OS/2 andAndrew Tridgell1-3/+18
original core level calls). The old code was completely wrong in many respects. also fixed the EA_SIZE level in the server extended the RAW-SEARCH test suite to test the new code properly (This used to be commit 71480271ad84b57fcdde264a54bb2408cf783255)
2007-10-10r2462: added a test for the error code for no matching filenameAndrew Tridgell1-0/+18
(This used to be commit 7bfbbc38ed9aac93d288aba183f7a925f170f81e)
2007-10-10r2457: expanded the RAW-SEARCH test to test for what happens when a directoryAndrew Tridgell1-6/+233
is modified while being searched, and whether the server always returns sorted directory listings. (This used to be commit e23514c78f1f15a61dadaa5c4de5de7cd0593ea0)
2007-10-10r1983: a completely new implementation of tallocAndrew Tridgell1-2/+1
This version does the following: 1) talloc_free(), talloc_realloc() and talloc_steal() lose their (redundent) first arguments 2) you can use _any_ talloc pointer as a talloc context to allocate more memory. This allows you to create complex data structures where the top level structure is the logical parent of the next level down, and those are the parents of the level below that. Then destroy either the lot with a single talloc_free() or destroy any sub-part with a talloc_free() of that part 3) you can name any pointer. Use talloc_named() which is just like talloc() but takes the printf style name argument as well as the parent context and the size. The whole thing ends up being a very simple piece of code, although some of the pointer walking gets hairy. So far, I'm just using the new talloc() like the old one. The next step is to actually take advantage of the new interface properly. Expect some new commits soon that simplify some common coding styles in samba4 by using the new talloc(). (This used to be commit e35bb094c52e550b3105dd1638d8d90de71d854f)
2007-10-10r1820: added a strcmp_safe() that handles NULL pointers. Needed for theAndrew Tridgell1-5/+5
search torture test, as some servers return really bad entries. (This used to be commit c900ebb3ac18d77ab334d3bf5259b3bba547b09c)
2007-10-10r1740: fixed the torture suite for ASCII-only serversAndrew Tridgell1-2/+2
(This used to be commit c3bce90be745db3e7cbf8273c1c8496920332f5e)