1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

1146 Commits

Author SHA1 Message Date
Steven Danneman
5a9f668dab s3: Remove madvise support
This reverts 193be432.  The MADVISE_PROTECT is inherited by all child
processes and cannot be unset.  The intention of the original patch was
to protect the parent process, but allow children to be killed in low
memory.  Since this isn't possible with the current API, reverting the
whole feature.
2009-03-04 11:07:27 -08:00
Dan Sledz
aeab22b55c s3: Rename auth_onefs_wb and pdb_onefs_sam
auth_onefs_wb.c -> auth_wbc.c
pdb_onefs_sam.c -> pdb_wbc_sam.c

No changes to functionality
2009-02-24 16:08:06 -08:00
Steven Danneman
c207fe42a7 s3: Fix build break in d9a842b2
* actually check for existance of sysctlbyname()
2009-02-20 23:25:49 -08:00
Dan Sledz
fc02c3b089 Introduce a new passdb backend: pdb_onefs_sam
Implements a custom backend for onefs that exclusively uses the wbclient
interface for all passdb calls.
It lacks some features of a standard passdb.
In particular it's a read only interface and doesn't implement privileges.
2009-02-20 19:39:07 -08:00
Dan Sledz
c383022f89 Introduce a new authentication backend auth_onefs_wb
This new backend is custom tailored to onefs' unique requirements:
1) No fallback logic
2) Does not validate the domain of the user
3) Handles unencrypted passwords
2009-02-20 19:39:07 -08:00
Dan Sledz
e311dcff22 Allow building with an external libwbclient library
Introduce a new configure option --with-wbclient which specifies a
location to find a compatible libwbclient library to link against.  This
options is overwritten by --with-winbind
2009-02-20 19:39:06 -08:00
todd stecher
d9a842b26f S3: Detect max_open_files from system
- Attempt to use syscalls to determine max-open-files value.
- Add in periodic logging when max file limit reached
2009-02-20 16:35:48 -08:00
Tim Prouty
73d5f14c04 s3 OneFS: Add shadow copy module 2009-02-19 21:09:31 -08:00
todd stecher
c441f58ded S3: Allow SMBD processes to survive in low memory condidtions
This commit adds a configure argument which allows for setting MADV_PROTECT
in the madvise() API.  With this enabled the kernel won't kill SMBD when
it's running low on memory.
2009-02-18 18:08:32 -08:00
Michael Adam
08bef5bba0 s3:build: improve the check for a working krb5-config.
Not only check if it exists and is executable, but also
check whether it accepts the command line "krb5-config --libs gssapi".

Chris Hoogendyk <hoogendyk@bio.umass.edu> has reported configure
failing on a Solaris machine due to krb5-config raising errors on
these options.

Michael
2009-02-17 18:21:52 +01:00
Derrell Lipman
2b097cbb4e It seems some systems use f_flags instead of f_flag. Use the appropriate one. 2009-02-14 16:01:05 -05:00
todd stecher
dbe2588e46 s3: Test module for perfcount system
Add 'perfcount module = pc_test' to exercise this module. Results are
logged into smb.log every 50 operations (configurable via smb.conf).
2009-02-13 12:59:30 -08:00
Zack Kirsch
a3531314dd OneFS implementation of BRL VFS ops:
* 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-13 10:08:55 -08:00
Björn Jacke
4f6d172825 There are systems where nanosleep is in libc *and* in librt.
Let's just do the test in librt when the first one failed.
2009-02-12 13:00:45 +01:00
Björn Jacke
263b798db9 tidy up timestamp checks
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-12 13:00:44 +01:00
Björn Jacke
aff48fba18 today valgrind is available on 64bit Linux, too 2009-02-12 13:00:44 +01:00
Tim Prouty
16d2c2fa58 s3 OneFS: Add kernel oplocks implementation
A few functions in oplocks_onefs.c need to be accessed from the onefs
vfs module.  It would be ideal if oplocks were implemented at the vfs
layer, but since they aren't yet, a new header is added to
source3/include to make these functions available to the onefs vfs
module.  oplocks_onefs.o doesn't need to be linked into the onefs vfs
module explicitly, since it is already linked into smbd by default.
2009-02-09 23:47:45 -08:00
todd stecher
f8c0d2fe01 S3 OneFS: Add in Isilon specific performance counter module 2009-02-09 13:23:44 -08:00
todd stecher
54c51a66e3 S3: New module interface for SMB message statistics gathering
This changelist allows for the addition of custom performance
monitoring modules through smb.conf. Entrypoints in the main message
processing code have been added to capture the command, subop, ioctl,
identity and message size statistics.
2009-02-09 13:23:44 -08:00
Björn Jacke
c7377b2c4d look for nanosleep in librt, some Unix flavours have it there 2009-02-09 09:15:52 +01:00
Günther Deschner
e11fa4cc33 s3-spoolss: prepare to use generated spoolss.
Guenther
2009-02-06 18:54:51 +01:00
Günther Deschner
a63d4c5ed1 s3-eventlog: remove old eventlog server.
Guenther
2009-02-04 22:51:39 +01:00
Stefan Metzmacher
c3ab292655 merged-build: force non-shared build for samba4
This should fix 'make test4'.

metze
2009-02-03 16:31:01 +01:00
Tim Prouty
2c2545d45a s3 build: Remove unused fstat check to fix a bunch of HAVE_FSTAT warnings 2009-01-30 14:41:07 -08:00
Björn Jacke
ede1732195 add configure check for Tru64 sub-second timestamp resolution 2009-01-29 15:26:13 -08:00
Michael Adam
a44649cf98 s3:build: fix build on AIX - only test for splice on linux
Michael
2009-01-30 00:17:56 +01:00
Björn Jacke
11f32204f8 add configure check for AIX style sub-second resolution support 2009-01-29 09:51:36 -08:00
Björn Jacke
f9926a4944 rather cosmetic fix for failed birthtime configure checks 2009-01-29 09:51:35 -08:00
Björn Jacke
bc84bd7b71 give configure check "sub-second timestamps without struct timespec" a chance to succeed 2009-01-29 09:51:35 -08:00
Stefan Metzmacher
11163720e6 s3:configure: autodetect ctdb/cluster support
We need to make sure ctdb has transaction support
and we autodetect ipv6 support.

metze
2009-01-29 17:40:13 +01:00
Jeremy Allison
ca3a801a82 Fix detection of dns_sd libraries.
Jeremy.
2009-01-27 16:19:09 -08:00
Kai Blin
a7e620522e async_req: Fix the S4 build 2009-01-27 12:38:11 +01:00
todd stecher
7bb3860f49 This change allows for the autoconfigre detection of sub-second time resolution in the FreeBSD stat structure 2009-01-23 21:05:38 -08:00
Kai Blin
85b36d95fb async_req: Move to top level dir 2009-01-23 17:57:33 +01:00
Jelmer Vernooij
e490c1b8c8 Move configure test files to the top-level and share them between s3 and
s4.
2009-01-22 11:35:28 +01:00
Jelmer Vernooij
f607ad2e90 Move check_python.m4 to common m4 directory. 2009-01-21 18:07:41 +01:00
Jelmer Vernooij
2c1d70ab79 Automagically expand includes in Makefile.in during configure time
when make is not GNU Make.
2009-01-21 17:21:45 +01:00
Jelmer Vernooij
3a4e61ecd8 Only check for Perl once in Samba 3. 2009-01-21 16:49:36 +01:00
Jelmer Vernooij
4967f6948f Move check_make.m4 to the top-level. 2009-01-21 16:46:52 +01:00
Günther Deschner
22a96cbe31 s3-svcctl: remove last traces of hand-marshalled svcctl code.
Guenther
2009-01-09 17:08:19 +01:00
Stefan Metzmacher
321d875af9 s3: build lib/tevent staticly into samba3
metze
2009-01-05 15:07:36 +01:00
Günther Deschner
43d0a4813b s3-ntsvcs: remove last traces of hand-marshalled NTSVCS.
Guenther
2008-12-17 23:52:42 +01:00
Volker Lendecke
5659f18b86 Compile liblua 2008-12-17 12:57:18 +01:00
Kai Blin
6821d898d7 nsswitch: Move source3 files to top level dir.
Don't move source4 files yet to not confuse git's rename tracking too much.
2008-12-16 13:02:45 +01:00
Volker Lendecke
57a9380f7b Also search for -lgpfs which is available as GPL in GPFS PTF8
(cherry picked from commit 3c93c96fd0)

Signed-off-by: Michael Adam <obnox@samba.org>
2008-12-10 23:58:25 +01:00
Volker Lendecke
0114cb52ca Revert "Also search for -lgpfs which is available as GPL in GPFS PTF8"
This reverts commit 3c93c96fd0.
2008-12-10 23:13:48 +01:00
Volker Lendecke
3c93c96fd0 Also search for -lgpfs which is available as GPL in GPFS PTF8 2008-12-10 18:30:28 +01:00
Steven Danneman
85b8cccab0 Add support for OneFS ACLs
Add to the OneFS VFS module, support for NTFS ACLs through the calls:

SMB_VFS_FGET_NT_ACL()
SMB_VFS_GET_NT_ACL()
SMB_VFS_FSET_NT_ACL()

Also create several new onefs specific smb.conf parameters in onefs.h
2008-12-02 20:35:45 -08:00
Tim Prouty
239f815e30 Add OneFS VFS module skeleton.
Also set configure to autodetect OneFS OS and build this VFS module.
2008-12-02 20:35:45 -08:00
Kai Blin
ac6c003078 configure.in: Fix smbtorture_s3 tests.
Seems like Jeremy forgot to fix configure.in when importing d448132 to master
in 8d674e35. Generate the vfs_streams_depot module so make test works again.
2008-12-02 10:26:42 +01:00