summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* r23367: check the "use mmap" option for ldb tooAndrew Tridgell2007-10-102-0/+10
|
* r23363: Activate rep_pread and rep_pwrite in lib/replace/replace.h.Michael Adam2007-10-102-0/+18
| | | | | | | | | | This fixes the build on a SuSE 6.1. :-) I guess this had been merely forgotten. But beware: The implementations of rep_pread and rep_pwrite are not thread safe. Michael
* r23362: Respect "use mmap" in tdb_wrap_open(). Tridge, you might want to mergeVolker Lendecke2007-10-101-0/+3
| | | | this in your tree.
* r23357: timespec_current() was returning the wrong ns timeJeremy Allison2007-10-101-1/+1
| | | | | (multiplying tv_sec, not tv_usec). Jeremy.
* r23356: We missed to add the 'c' character to the list of valid ones forSimo Sorce2007-10-101-1/+1
| | | | | | | | shell escaping. I hate this kind of bugs more than how Jeremy hates off by ones :( Simo.
* r23344: Better error messageVolker Lendecke2007-10-101-2/+4
|
* r23343: Fix error returnVolker Lendecke2007-10-101-1/+3
|
* r23337: fix a crash bug...I wonder why only HP-UX 11.00 ans 11.11 noticedStefan Metzmacher2007-10-101-25/+2
| | | | | | | | | | it via a SIGBUS... I missed to remove the samba3 specifc code path to tdb_open_ex() when I synced lib/tdb/ with samba4. The explicit cast in on tdb_open_ex() dropped the compiler warning :-( metze
* r23335: as not all source files include replace.h/config.hStefan Metzmacher2007-10-101-1/+1
| | | | | | | before unistd.h we need to pass -D_FILE_OFFSET_BITS=64 together with -Dpread=pread64 -Dpwrite=pwrite64 metze
* r23313: Janitor for tridge:Volker Lendecke2007-10-101-24/+13
| | | | | | we need to use tdb_wrap_open in both these backends to allow for multiple opens. This is done for notify.tdb. Otherwise we die when a 2nd share with notify is setup
* r23309: sync lib/replace with SAMBA_4_0Stefan Metzmacher2007-10-1025-223/+347
| | | | metze
* r23307: move readahead stuff out of libreplace and make it samba3 specificStefan Metzmacher2007-10-103-10/+0
| | | | | | | as we can't replace this function in libreplace and we do the some stuff for other function in the same way. metze
* r23305: merge from samba4:Stefan Metzmacher2007-10-101-3/+3
| | | | | | fix large file support on HP-UX 11.00 and 11.11 metze
* r23226: Make the "debug prefix timestamp" output a bit more readable by makingVolker Lendecke2007-10-101-1/+1
| | | | the debug level alway at least 2 digits
* r23224: Move map_nt_error_from_unix to lib/errmap_unix.c. This function isVolker Lendecke2007-10-101-0/+92
| | | | useful even in binaries that don't link in libsmb
* r23220: Add traverse_read to dbwrapVolker Lendecke2007-10-102-0/+42
|
* r23204: Add MSG_SMB_BRL_VALIDATE. Tridge, this is a bit different from your bzrVolker Lendecke2007-10-101-1/+1
| | | | | | | | | | branch, please check if it fulfils your needs. Two changes: The validation is not done inside the brlock.c traverse_fn, it's done as a separate routine. Secondly, this patch does not call the checker routines in smbcontrol directly but depends on a running smbd.
* r23185: Try to fix the IRIX build, also add the forgotten file_id.c in .26Volker Lendecke2007-10-101-1/+1
|
* r23184: Checkin for Tridge: Add a speed test to tdbtoolVolker Lendecke2007-10-101-2/+52
|
* r23183: Check in a change made by Tridge:Volker Lendecke2007-10-101-0/+102
| | | | | | | | | | | | | 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
* r23171: Convert connections.tdb to dbwrapVolker Lendecke2007-10-102-48/+60
|
* r23170: Add map_nt_error_from_tdb()Volker Lendecke2007-10-102-2/+45
|
* r23161: Add TDB_VOLATILE as open_flag to activate the per-hashchain dead recordVolker Lendecke2007-10-102-0/+5
| | | | optimization.
* r23117: Factor out local messaging.Volker Lendecke2007-10-102-399/+457
| | | | | | This removes message_block / message_unblock. I've talked to Jeremy and Günther, giving them my reasons why I believe they have no effect. Neither could come up with a counter-argument, so they go :-)
* r23112: Trim down the message.c API slightly: The messages_pending_for_pid ↵Volker Lendecke2007-10-101-56/+41
| | | | | | | | | | | is now replaced by MSG_FLAG_LOWPRIORITY or'ed into the msg_type. To enable this, changed the msg_type definitions to hexadecimal. This way we could theoretically add the MSG_FLAG_NODUPLICATES again, but I would rather not do this, because that one is racy and can't be guaranteed at all.
* r23109: Redo the change from r22772 I accidentially undid in r23108.Michael Adam2007-10-101-0/+4
| | | | Michael
* r23108: Add defines of RTLD_NOW and RTLD_GLOBAL to replace.h.Michael Adam2007-10-101-5/+6
| | | | Fixing build of ldb for instance on some systems without dlfcn.h.
* r23105: Add lchown to the vfs layer. We need this in the POSIX code.Jeremy Allison2007-10-101-0/+19
| | | | Jeremy.
* r23095: Support systems that have their PAM headers in /usr/include/pam.James Peach2007-10-101-0/+4
|
* r23077: Minor cleanupVolker Lendecke2007-10-101-4/+0
|
* r23055: Rewrite messages.c to use auto-generated marshalling in the tdb. I'mVolker Lendecke2007-10-102-331/+267
| | | | | | | | | | | 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
* r23041: Remainder of fix for 4630: fix special case of unix_to_nt_time() forJim McDonough2007-10-101-2/+10
| | | | TIME_T_MAX, and also display of it in http_timestring()
* r23025: Some logic simplificationsVolker Lendecke2007-10-101-29/+27
|
* r23024: Ok, neither the duplicates_allowed nor the timeout argument toVolker Lendecke2007-10-101-112/+12
| | | | | | | | | | | | | | message_send_pid is used anymore. Two users of duplicates_allowed: winbind and the printer notify system. I don't thing this really changes semantics: duplicates_allowed is hell racy anyway, we can't guarantee that we don't send the same message in sequence twice, and I think the only thing we can harm with the print notify is performance. For winbind I talked to Günther, and he did not seem too worried. Volker
* r23023: Get rid of the only caller of message_send_pid_with_timeout(). This ↵Volker Lendecke2007-10-101-10/+0
| | | | | | | | | | | | | | | | | | | | | replaces the timeouts on the individual message send calls with an overall timeout on all the calls. The timeout in message_send_pid_with_timeout() did not make much sense IMO anyway, because the tdb_fetch() for the messages_pending_for_pid was blocking in a readlock anyway, we "just" did the timeout for the write lock. This new code goes through the full wait for the write lock once and then breaks out of sending the notifies instead of running into the timeout per target. Jerry, please check this! Thanks, Volker
* r23022: ReformattingVolker Lendecke2007-10-101-37/+47
|
* r23015: Make message_(de)register static to messages.cVolker Lendecke2007-10-103-19/+43
|
* r23006: Arg. Fix stupid typo in 64-bit path.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r23005: If we're running on a system where time_t is 8 bytesJeremy Allison2007-10-101-0/+31
| | | | | | | | we have to take care to preserve the "special" values for Windows of 0x80000000 and 0x7FFFFFFF when casting between time_t and uint32. Add conversion functions (and use them). Jeremy.
* r22934: Change smbcontrol to use messaging_register instead of message_registerVolker Lendecke2007-10-102-2/+52
|
* r22931: Fix logic in detection of the need to replace dlopen and friends.Michael Adam2007-10-101-6/+7
| | | | | | | Originally, dlfcn.o was only added to LIBREPLACEOBJ if dlopen was found in libdl but header dlfcn.h was not appropriate. Michael
* r22926: Don't use <=0, use < 0 to allow keepalives to propagate up.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r22923: Fix runaway smbd now receive_smb_raw() returns a ssize_t not a BOOL.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r22920: Add in the UNIX capability for 24-bit readX, as discussedJeremy Allison2007-10-101-6/+12
| | | | | | with the Apple guys and Linux kernel guys. Still looking at how to do writeX as there's no recvfile(). Jeremy.
* r22911: Pass a messaging_context to message_send_allVolker Lendecke2007-10-101-1/+2
|
* r22910: Make message_send_pid static to messages.cVolker Lendecke2007-10-103-35/+38
|
* r22908: All callers of message_init now also call messaging_init. Unify those.Volker Lendecke2007-10-102-17/+14
|
* r22868: Replace some message_send_pid calls with messaging_send_pid calls. MoreVolker Lendecke2007-10-101-1/+19
| | | | tomorrow.
* r22852: merge fixes for CVE-2007-2446 and CVE-2007-2447 to all branchesGerald Carter2007-10-102-4/+190
|
* r22846: Chunk one to replace message_send_pid with messaging_send: Deep insideVolker Lendecke2007-10-101-1/+1
| | | | | | locking/locking.c we have to send retry messages to timed lock holders. The majority of this patch passes a "struct messaging_context" down there. No functional change, survives make test.