summaryrefslogtreecommitdiff
path: root/source3/torture
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r23195: Add void *private_data to brl_forallVolker Lendecke2-6/+8
(This used to be commit c91b2bdc160d76bf0b0770fe7f92cbc7124d6c3c)
2007-10-10r23183: Check in a change made by Tridge:Volker Lendecke2-7/+6
This replaces the internal explicit dev/ino file id representation by a "struct file_id". This is necessary as cluster file systems and NFS don't necessarily assign the same device number to the shared file system. With this structure in place we can now easily add different schemes to map a file to a unique 64-bit device node. Jeremy, you might note that I did not change the external interface of smb_share_modes.c. Volker (This used to be commit 9b10dbbd5de8813fc15ebbb6be9b18010ffe8139)
2007-10-10r23055: Rewrite messages.c to use auto-generated marshalling in the tdb. I'mVolker Lendecke1-4/+4
doing this because for the clustering the marshalling is needed in more than one place, so I wanted a decent routine to marshall a message_rec struct which was not there before. Tridge, this seems about the same speed as it used to be before, the librpc/ndr overhead in my tests was under the noise. Volker (This used to be commit eaefd00563173dfabb7716c5695ac0a2f7139bb6)
2007-10-10r22908: All callers of message_init now also call messaging_init. Unify those.Volker Lendecke1-2/+0
(This used to be commit 330946ad2307ca34f0a8d068a0193fcb8a0d6036)
2007-10-10r22906: Some more message_send_pidVolker Lendecke1-14/+27
(This used to be commit 8abf9f396375b42d838e992b3a4e40e68e550ab2)
2007-10-10r22736: Start to merge the low-hanging fruit from the now 7000-line cluster ↵Volker Lendecke3-3/+3
patch. This changes "struct process_id" to "struct server_id", keeping both is just too much hassle. No functional change (I hope ;-)) Volker (This used to be commit 0ad4b1226c9d91b72136310d3bbb640d2c5d67b8)
2007-10-10r22009: change TDB_DATA from char * to unsigned char *Stefan Metzmacher1-2/+2
and fix all compiler warnings in the users metze (This used to be commit 3a28443079c141a6ce8182c65b56ca210e34f37f)
2007-10-10r22001: change prototype of dump_data(), so that it takes unsigned char * now,Stefan Metzmacher2-4/+4
which matches what samba4 has. also fix all the callers to prevent compiler warnings metze (This used to be commit fa322f0cc9c26a9537ba3f0a7d4e4a25941317e7)
2007-10-10r21965: fix compiler warningStefan Metzmacher1-1/+1
metze (This used to be commit cde58ee97ff0de1eb37f62fbf2d52134419dcb5f)
2007-10-10r21963: Fix another uninitialized buffer used in test write - valgrindJeremy Allison1-0/+2
fix. Jeremy. (This used to be commit 0119d2c18348a9e0fcc79e247a9014d929af0ce7)
2007-10-10r21948: Fix valgrind error in build farm samba3 smbtorture. We wereJeremy Allison1-0/+2
using an uninitialized buffer for read/write tests. Jeremy. (This used to be commit e27d094620178f316bf79540164bbfe6ff3a3851)
2007-10-10r21755: Memory leak fixes from Zack Kirsch <zack.kirsch@isilon.com>.Jeremy Allison1-0/+6
Jeremy. (This used to be commit 02d08ca0be8c374e30c3c0e665853fa9e57f043a)
2007-10-10r21715: Fix torture utime code.Jeremy Allison1-4/+4
Jeremy. (This used to be commit 10430bf75accc71045ed359314dc2711fea8df01)
2007-10-10r21609: Fix memory leaks in error code paths (and one in winbindd_group.c).Jeremy Allison1-0/+5
Patch from Zack Kirsch <zack.kirsch@isilon.com>. Jeremy. (This used to be commit df07a662e32367a52c1e8473475423db2ff5bc51)
2007-10-10r21116: Fix the build -- sorry!Volker Lendecke1-4/+8
(This used to be commit f4b073d8c85070290f475e7e2575c1233b9a9c4e)
2007-10-10r21090: Add some helper routinesVolker Lendecke1-0/+11
(This used to be commit 985dde8ed0a7e6da5adf9c55654a4fd362b22acb)
2007-10-10r21064: The core of this patch isVolker Lendecke1-2/+3
void message_register(int msg_type, void (*fn)(int msg_type, struct process_id pid, - void *buf, size_t len)) + void *buf, size_t len, + void *private_data), + void *private_data) { struct dispatch_fns *dfn; So this adds a (so far unused) private pointer that is passed from message_register to the message handler. A prerequisite to implement a tiny samba4-API compatible wrapper around our messaging system. That itself is necessary for the Samba4 notify system. Yes, I know, I could import the whole Samba4 messaging system, but I want to do it step by step and I think getting notify in is more important in this step. Volker (This used to be commit c8ae60ed65dcce9660ee39c75488f2838cf9a28b)
2007-10-10r20846: Before this gets out of control...Volker Lendecke1-0/+10
This add a struct event_context and infrastructure for fd events to smbd. This is step zero to import lib/events. Jeremy, I rely on you to watch the change in receive_message_or_smb() closely. For the normal code path this should be the only relevant change. The rest is either not yet used or is cosmetic. Volker (This used to be commit cd07f93a8aecb24c056e33b1ad3447a41959810f)
2007-10-10r20630: Fix some trivial memleaks.Günther Deschner1-0/+3
Guenther (This used to be commit 3bb94a081888eca69796b14057b551b078ee9a77)
2007-10-10r20261: merge 20260 from samba_3_0_24Herb Lewis3-6/+6
clean up a bunch of no previous prototype warnings (This used to be commit c60687db112405262adf26dbf267804b04074e67)
2007-10-10r20245: merge 20244 from samba_3_0_24Herb Lewis3-7/+10
get rid of more nested extern declarations warnings (This used to be commit e9df051f5201843e3428ddbed7a719553c2e799a)
2007-10-10r18796: Fix the build. Sorry.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 8b9e5f28c2b8530bee46aefadf97414b85ab5bc8)
2007-10-10r18310: Add a little test for some gencache routinesVolker Lendecke1-0/+60
Remove unused gencache_set_only Use CONST_DISCARD instead of SMB_STRDUP Volker (This used to be commit 651e7e44e2e56eab81c5fe708f33e6d3918a39f9)
2007-10-10r18188: merge 3.0-libndr branchJelmer Vernooij1-17/+0
(This used to be commit 1115745caed3093c25d6be01ffee21819fb0a675)
2007-10-10r18070: be more verbose when errors happenStefan Metzmacher1-0/+3
metze (This used to be commit 9d71a037b10325dd5a258f59b8434b9fa158462e)
2007-10-10r17853: Fix an uninitialized variable (m_time2). Jeremy, please check.Volker Lendecke1-2/+3
Thanks, Volker (This used to be commit 389910b2d376bc5795b0afacb86e45d7a6987491)
2007-10-10r17800: Start using struct timespec internally for file timesJeremy Allison1-11/+12
on the wire. This allows us to go to nsec resolution for systems that support it. It should also now be easy to add a correct "create time" (birth time) for systems that support it (*BSD). I'll be watching the build farm closely after this one for breakage :-). Jeremy. (This used to be commit 425280a1d23f97ef0b0be77462386d619f47b21d)
2007-10-10r17761: Handle times consistently across all client utils.Jeremy Allison1-6/+6
Fixes bugs reported in libsmbclient. Jeremy. (This used to be commit 42a417fb75313b093948602c3be8e2f386048b5f)
2007-10-10r17571: Change the return code of cli_session_setup from BOOL to NTSTATUSVolker Lendecke3-21/+26
Volker (This used to be commit 94817a8ef53589011bc4ead4e17807a101acf5c9)
2007-10-10r17555: CleanupVolker Lendecke1-340/+0
(This used to be commit 4199b5d2262e1e154f75f609fef20ed8e8c21cf2)
2007-10-10r17554: CleanupVolker Lendecke3-246/+36
(This used to be commit 761cbd52f0cff6b864c506ec03c94039b6101ef9)
2007-10-10r17470: This is the group mapping rewrite announced a few days ago. I'm ↵Volker Lendecke1-14/+2
afraid it's more than 1000 lines of patch, but doing it in smaller pieces is hardly possible. Anybody interested please look over this. The patch is not really interesting, just look at the new groupdb/mapping.c file. Jerry, one entry for the 3.0.24 release notes: smbd will refuse to start if we have overlapping mappings in group_mapping.tdb. With the old db a unix gid can be mapped to two different SIDs. This will be refused with the new code. Volker (This used to be commit f0f0e893ca41d35b58b35929de78dcb911b3c7dc)
2007-10-10r17468: To minimize the diff later on, pre-commit some changes ↵Volker Lendecke1-2/+3
independently: Change internal mapping.c functions to return NTSTATUS instead of BOOL. Volker (This used to be commit 4ebfc30a28a6f48613098176c5acdfdafbd2941a)
2007-10-10r17463: A bit of cleanup work:Volker Lendecke1-19/+24
Remove some unused code: pdb_find_alias is not used anymore, and nobody I think has ever used the pdb_nop operations for group mapping. smbpasswd and tdb use the default ones and ldap has its own. Make the functions pdb_getgr* return NTSTATUS instead of BOOL. Nobody right now really makes use of it, but it feels wrong to throw away information so early. Volker (This used to be commit f9856f6490fe44fdba97ea86062237d8c74d4bdc)
2007-10-10r17457: Add a test to do some operations on group mapping.Volker Lendecke3-164/+556
Volker (This used to be commit 68db058fdf508d5b4d38731ece21f5d92feca00c)
2007-10-10r17425: Add the multi-key wrapper. If it's necessary to add general blobs as ↵Volker Lendecke1-0/+164
keys, this can trivially be added later. Volker (This used to be commit 6915adb9780052952e4a1d9e1c3e6cac06f48463)
2007-10-10r17363: Some C++ warningsVolker Lendecke3-8/+8
(This used to be commit fd82f185a2e0f94bfb75f4eee072556ad94bf27d)
2007-10-10r17347: Some C++ warnings -- 271 leftVolker Lendecke1-5/+6
(This used to be commit 641dac4f85c0e00484d90726bea1a4cb58c8235c)
2007-10-10r17338: Add support for multiple shares test inspired by Samba 4 torture's ↵Alexander Bokovoy5-51/+160
--unclist option. Triggered by -b sharelist_file option. Based on Peter Samogyi's work. I'm not sure what concept for fstring replacement is currently in place though (talloc-ed strings? or it was for pstring only?) (This used to be commit c9f8fafad698c5bc75df86ee8b611104d3fb65bc)
2007-10-10r17190: Remove a warning from "opi", a 64-bit machineVolker Lendecke1-1/+1
(This used to be commit 844c98eab475ea047aeaae3ef1250897413cc823)
2007-10-10r16960: Some warnings from host "opi"Volker Lendecke2-8/+9
(This used to be commit 083ef11cc9be8f1299f233bde194173e092e2c3c)
2007-10-10r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison10-84/+541
to do the upper layer directories but this is what everyone is waiting for.... Jeremy. (This used to be commit 9dafb7f48ca3e7af956b0a7d1720c2546fc4cfb8)
2007-10-10r15729: Second part of Aleksey Fedoseev <fedoseev@ru.ibm.com> patch.Jeremy Allison1-1/+54
Jeremy. (This used to be commit 5137006233a0c2de94ce3da7340ff0032ef7426d)
2007-10-10r15727: Fix msgtest - noticed by Aleksey Fedoseev <fedoseev@ru.ibm.com>.Jeremy Allison1-0/+2
Jeremy. (This used to be commit 9f5c95c41872deac5e029b69daa5004d5c0fb4cc)
2007-10-10r15034: Attempt to make the build farm happyVolker Lendecke1-1/+1
(This used to be commit 8b3e87184a3cc831fe0314c3b26b6d753cf74e4c)
2007-10-10r14898: This change is an attempt to improve the quality of the information thatJames Peach1-0/+5
is produced when a process exits abnormally. First, we coalesce the core dumping code so that we greatly improve our odds of being able to produce a core file, even in the case of a memory fault. I've removed duplicates of dump_core() and split it in two to reduce the amount of work needed to actually do the dump. Second, we refactor the exit_server code path to always log an explanation and a stack trace. My goal is to always produce enough log information for us to be able to explain any server exit, though there is a risk that this could produce too much log information on a flaky network. Finally, smbcontrol has gained a smbd fault injection operation to test the changes above. This is only enabled for developer builds. (This used to be commit 56bc02d64498eb3faf89f0c5452b9299daea8e95)
2007-10-10r13915: Fixed a very interesting class of realloc() bugs found by Coverity.Jeremy Allison1-0/+9
realloc can return NULL in one of two cases - (1) the realloc failed, (2) realloc succeeded but the new size requested was zero, in which case this is identical to a free() call. The error paths dealing with these two cases should be different, but mostly weren't. Secondly the standard idiom for dealing with realloc when you know the new size is non-zero is the following : tmp = realloc(p, size); if (!tmp) { SAFE_FREE(p); return error; } else { p = tmp; } However, there were *many* *many* places in Samba where we were using the old (broken) idiom of : p = realloc(p, size) if (!p) { return error; } which will leak the memory pointed to by p on realloc fail. This commit (hopefully) fixes all these cases by moving to a standard idiom of : p = SMB_REALLOC(p, size) if (!p) { return error; } Where if the realloc returns null due to the realloc failing or size == 0 we *guarentee* that the storage pointed to by p has been freed. This allows me to remove a lot of code that was dealing with the standard (more verbose) method that required a tmp pointer. This is almost always what you want. When a realloc fails you never usually want the old memory, you want to free it and get into your error processing asap. For the 11 remaining cases where we really do need to keep the old pointer I have invented the new macro SMB_REALLOC_KEEP_OLD_ON_ERROR, which can be used as follows : tmp = SMB_REALLOC_KEEP_OLD_ON_ERROR(p, size); if (!tmp) { SAFE_FREE(p); return error; } else { p = tmp; } SMB_REALLOC_KEEP_OLD_ON_ERROR guarentees never to free the pointer p, even on size == 0 or realloc fail. All this is done by a hidden extra argument to Realloc(), BOOL free_old_on_error which is set appropriately by the SMB_REALLOC and SMB_REALLOC_KEEP_OLD_ON_ERROR macros (and their array counterparts). It remains to be seen what this will do to our Coverity bug count :-). Jeremy. (This used to be commit 1d710d06a214f3f1740e80e0bffd6aab44aac2b0)
2007-10-10r13799: Make locktest debug a little easier to read.Jeremy Allison1-3/+17
Jeremy. (This used to be commit 13de4d000e04ffca41814554bdee8291ddb1efe2)
2007-10-10r13796: Another load_case_tables...Jeremy Allison1-0/+2
Jeremy. (This used to be commit 36df6ba3ad8b93744577ad92df0fe0b9bf9a4300)
2007-10-10r13212: r12414@cabra: derrell | 2006-01-28 17:52:17 -0500Derrell Lipman10-11/+11
lp_load() could not be called multiple times to modify parameter settings based on reading from multiple configuration settings. Each time, it initialized all of the settings back to their defaults before reading the specified configuration file. This patch adds a parameter to lp_load() specifying whether the settings should be initialized. It does, however, still force the settings to be initialized the first time, even if the request was to not initialize them. (Not doing so could wreak havoc due to uninitialized values.) (This used to be commit f2a24de769d1b2266e576597c57a8e3b1e2a2b51)