summaryrefslogtreecommitdiff
path: root/source3
AgeCommit message (Collapse)AuthorFilesLines
2009-02-14[Bug 6069] Add a fstatvfs function for libsmbclientDerrell Lipman4-26/+11
- Revert Tim's changes for the moment. I need to see what the issue is and arrange to use "struct statvfs" if at all possible. Derrell
2009-02-14Attempt to fix the build on Solaris 8Volker Lendecke1-1/+1
2009-02-14Fix a valgrind errorVolker Lendecke1-1/+5
2009-02-13s3 OneFS: Add recvfile implementationTim Prouty3-0/+198
2009-02-13s3 vfs: Fix SMB_VFS_RECVFILE/SENDFILE macrosTim Prouty1-4/+4
2009-02-13s3: Fix uninitialized const char *Tim Prouty1-0/+1
2009-02-13Enable total anonymization in vfs_smb_traffic_analyzer, by mapping any user ↵Holger Hetterich1-5/+16
names to the one given by anonymize_prefix, without generating a hash number. This setting is optional and is compatible with the module configuration format of Samba 3.3.
2009-02-14s3-spoolss: remove unused convert_printer_info.Günther Deschner1-31/+0
Guenther
2009-02-14s3-spoolss: use pidl for _spoolss_SetPrinter.Günther Deschner3-61/+31
Guenther
2009-02-14s3-spoolss: use pidl for _spoolss_AddPrinterEx.Günther Deschner3-64/+31
Guenther
2009-02-14s3-spoolss: add printer_info2_to_nt_printer_info2 and convert_printer_info_new.Günther Deschner1-0/+67
Guenther
2009-02-14s3-rpcclient: use rpccli_spoolss_AddPrinterEx.Günther Deschner1-16/+42
Guenther
2009-02-14s3-netlogon: some more appropriate debug messages.Günther Deschner1-13/+31
Guenther
2009-02-13Merge branch 'master' of ssh://jra@git.samba.org/data/git/sambaJeremy Allison2-3/+1
2009-02-13Parameterize in local.h the MAX_RPC_DATA_SIZE, and ensureJeremy Allison3-1/+56
that "offered" read from the rpc packet in spoolss is under that size. Tidyup from analysis from Veracode. Jeremy.
2009-02-13s3: Fix uninitialized variable warning (and bug).Zack Kirsch2-3/+1
2009-02-13Noted by Vericode analysis. Correctly use chroot().Jeremy Allison1-1/+5
Jeremy.
2009-02-13s3 libsmbclient: Fix fstatvfs to be more portableTim Prouty4-11/+26
The statvfs struct isn't guaranteed to be portable across operating systems. Since libsmbclient isn't actually calling statvfs and just using the statvfs struct to store similar information, this patch adds a new portable smbc_statvfs struct. This fixes a few of the failures in the build farm introduced by: ae259575c447e61665c8e7070c476914161b953f Derrell, please check.
2009-02-13s3 OneFS: Add vfs implementation for SMB_VFS_GET_REAL_FILE_NAMEAravind Srinivasan1-0/+41
2009-02-13s3: Test module for perfcount systemtodd stecher3-1/+370
Add 'perfcount module = pc_test' to exercise this module. Results are logged into smb.log every 50 operations (configurable via smb.conf).
2009-02-13Fix Coverity ID 740 (RESOURCE_LEAK)Volker Lendecke1-0/+2
2009-02-13Fix the build. When you do "make distclean; ./autogen; ./configure; make" ↵Jeremy Allison1-0/+2
and it still doesn't build you know it's messed up. Jeremy.
2009-02-13OneFS implementation of BRL VFS ops:Zack Kirsch5-4/+479
* Much of the beginning should look familiar, as I re-used the OneFS oplock callback record concept. This was necessary to keep our own state around - it really only consists of a lock state, per asynchronous lock that is currently unsatisfied. The onefs_cbrl_callback_records map to BLRs by the id. * There are 4 states an async lock can be in. NONE means there is no async currently out for the lock, as opposed to ASYNC. DONE means we've locked *every* lock (keep in mind a request can ask for multiple locks at a time.) ERROR is an error. * onefs_cbrl_async_success: The lock_num is incremented, and the state changed, so that when process_blocking_lock_queue is run, we will try the *next* lock, rather than the same one again. * onefs_brl_lock_windows() has some complicated logic: * We do a no-op if we're passed a BLR and the matching state is ASYNC -- this means Samba is trying to get the same lock twice, and we just need to wait longer, so we return an error. * PENDING lock calls happen when the lock is being queued on the BLQ -- we do async in this case. * We also do async in the case that we're passed a BLR, but the lock is not pending. This is an async lock being probed by process_blocking_lock_queue. * We do a sync lock for any normal first request of a lock. * Failure is returned, but it doesn't go to the client unless the lock has actually timed out.
2009-02-13Add VFS ops for Windows BRL: Lock, Unlock and Cancel:Zack Kirsch11-110/+358
This patch adds 3 new VFS OPs for Windows byte range locking: BRL_LOCK_WINDOWS, BRL_UNLOCK_WINDOWS and BRL_CANCEL_WINDOWS. Specifically: * I renamed brl_lock_windows, brl_unlock_windows and brl_lock_cancel to *_default as the default implementations of the VFS ops. * The blocking_lock_record (BLR) is now passed into the brl_lock_windows and brl_cancel_windows paths. The Onefs implementation uses it - future implementations may find it useful too. * Created brl_lock_cancel to do what brl_lock/brl_unlock do: set up a lock_struct and call either the Posix or Windows lock function. These happen to be the same for the default implementation. * Added helper functions: increment_current_lock_count() and decrement_current_lock_count(). * Minor spelling correction in brl_timeout_fn: brl -> blr. * Changed blocking_lock_cancel() to return the BLR that it has cancelled. This allows us to assert its the lock that we wanted to cancel. If this assert ever fires, this path will need to take in the BLR to cancel, rather than choosing on its own. * Adds a small helper function: find_blocking_lock_record_by_id(). Used by the OneFS implementation, but could be useful for others.
2009-02-13Remove typedef struct blocking_lock_record and move references to struct ↵Zack Kirsch1-19/+19
blocking_lock_record.
2009-02-13s4:configure: require the same version for external and internal libteventStefan Metzmacher1-1/+1
Until we reach 1.0.0, we better require the exact same version. metze
2009-02-13Fix an uninitialized variable, introdued with 4d100f2fVolker Lendecke1-1/+1
2009-02-13Replace get_myname() with the talloc version from v3-3-testVolker Lendecke6-35/+6
2009-02-13s3:auth: only create_local_token() should add S-1-22-X-Y sidsStefan Metzmacher1-27/+0
metze
2009-02-13s3:auth: add S-1-22-X-Y sids to the local tokenStefan Metzmacher1-0/+38
metze
2009-02-13Fix Coverity ID 742 (RESOURCE_LEAK)Volker Lendecke1-6/+3
2009-02-13Fix Coverity ID 744Volker Lendecke1-1/+1
This was marked as a resource leak. This change makes the code a bit clearer that we always free error_string.
2009-02-13Fix Coverity ID 745 (RESOURCE_LEAK)Volker Lendecke1-0/+1
2009-02-13s3-netlogon: implement _netr_ServerAuthenticate3.Günther Deschner1-23/+56
Guenther
2009-02-12s3 onefs: rename custom parameter to plural to match previous usageSteven Danneman3-5/+5
2009-02-12Fix Coverity IDs 879 and 880 (RESOURCE_LEAK, REVERSE_INULL)Volker Lendecke1-4/+7
2009-02-12s3: Added new parameter "map untrusted to domain"Steven Danneman4-4/+41
When enabled this reverts smbd to the legacy domain remapping behavior when a user provides an untrusted domain This partially reverts d8c54fdd
2009-02-12s3-spoolss: remove old spoolss_SetPrinterDataEx.Günther Deschner4-146/+0
Guenther
2009-02-12s3-spoolss: use pidl for _spoolss_SetPrinterDataEx.Günther Deschner2-55/+23
Guenther
2009-02-12s3-net: use rpccli_spoolss_SetPrinterDataEx.Günther Deschner1-2/+9
Guenther
2009-02-12s3-spoolss: remove old spoolss_GetPrinterDataEx.Günther Deschner4-181/+0
Guenther
2009-02-12s3-rpcclient: use rpccli_spoolss_GetPrinterDataEx.Günther Deschner1-3/+41
Guenther
2009-02-12s3-spoolss: use pidl for _spoolss_GetPrinterDataEx.Günther Deschner2-73/+28
Guenther
2009-02-12Fix "make etags" properly :-)Volker Lendecke1-36/+1
2009-02-12s3-spoolss: add init_systemtime helper.Günther Deschner3-0/+48
Guenther
2009-02-12[Bug 6069] Add a fstatvfs function for libsmbclientDerrell Lipman9-0/+460
- port functionality from v3_3_test to master Derrell
2009-02-12There are systems where nanosleep is in libc *and* in librt.Björn Jacke1-2/+1
Let's just do the test in librt when the first one failed.
2009-02-12tidy up timestamp checksBjörn Jacke2-319/+47
AC_CHECK_MEMBERS should be a sufficient check, there's no need to do manual compile tests. We can also assume that we have ctime and atime members when we have the mtime member.
2009-02-12today valgrind is available on 64bit Linux, tooBjörn Jacke2-16/+1
2009-02-11s3: Change behavior when seeing an unknown domain.Dan Sledz3-42/+35
After a lot of testing against various Windows servers (W2K, W2K3, W2K8), within an AD domain it seems that unknown domains will only be translated to the local account domain, not the netbios name of the member server's domain. This makes samba act more like Windows.