1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

51332 Commits

Author SHA1 Message Date
Tim Prouty
17eba16bad s3 oplocks: Add capabilites flags field to the kernel_oplocks struct
Here is a short description for each of the new capability flags:

KOPLOCKS_LEVEL2_SUPPORTED: Level 2 oplocks are supported natively in
the kernel.

KOPLOCKS_DEFERRED_OPEN_NOTIFICATION: The kernel notifies deferred
openers when they can retry the open.

KOPLOCKS_TIMEOUT_NOTIFICATION: The kernel notifies smbds when an
oplock break times out.

KOPLOCKS_OPLOCK_BROKEN_NOTIFICATION: The kernel notifies smbds when an
oplock is broken.
2009-02-09 23:47:45 -08:00
Tim Prouty
c6f1f055fd s3 oplocks: Make the level2 oplock contention API more granular
This replaces release_level2_oplocks_on_change with
contend_level2_oplock_begin/end in order to contend level2 oplocks
throughout an operation rather than just at the begining.  This is
necessary for some kernel oplock implementations, and also lays the
groundwork for better correctness in Samba's standard level2 oplock
handling.  The next step for non-kernel oplocks is to add additional
state to the share mode lock struct that prevents any new opens from
granting oplocks while a contending operation is in progress.

All operations that contend level 2 oplocks are now correctly spanned
except for aio and synchronous writes.  The two write paths both have
non-trivial error paths that need extra care to get right.

RAW-OPLOCK and the rest of 'make test' are still passing with this
change.
2009-02-09 23:47:45 -08:00
Tim Prouty
9c1310fa6a s3 oplocks: Differentiate between releasing an oplock vs. downgrading to Level 2 for kernel oplocks
Pass in an extra argument when releasing an oplock so kernel oplock
implementations can support downgrading from Level 1 to Level 2.
2009-02-09 23:47:44 -08:00
Tim Prouty
122dbbf00a s3 vfs: Add a destructor to the fsp extension data API
I'm not certain if the dummy pointer is needed in struct vfs_fsp_data,
but I added it to be consistent with the comment below.
2009-02-09 23:46:12 -08:00
Andrew Tridgell
fe5b0b595c added a workaround to the handling of unicodePwd for Win7-beta
The Win7-beta domain process has changed. It no longer uses SAMR for
setting the password, and instead uses a ldap modify on a SASL
encrypted ldap connection. We didn't handle that as the unicodePwd
attribute has a dual use, holding the nt style MD4 hases for DRS
replication, but holding a UTF-16 plaintext password for a LDAP
modify.

This patch copes with the ldap unicodePwd modify by recognising the
format and creating the correct attributes on the fly. Note that this
assumes we will never get a unicodePwd attribute set in NT MD4 format
with the first 2 and last 2 bytes set to 0x22 0x00. 

Andrew Bartlett is looking at a more robust solution, possibly using a
flag to say that this modify came via ldap, and not internal ldb
calls.
2009-02-10 17:31:57 +11:00
Andrew Tridgell
72c2da9d32 fixed two problems with the DsRGetDCNameEx2 call, as used by
Win7-beta.

The first problem is that we removed the dnsDomain attribute a while
back, so we were returning NULL for two fields. We now return the
realm.

The second problem is that Win7-beta sends the domain in the form the
user typed it, so it may be in either the short or long form. We check
for the short form and convert if needed.
2009-02-10 17:28:05 +11:00
todd stecher
b4a4d4c9d0 S3: Various fixes for log2pcaphex utility 2009-02-09 18:04:53 -08:00
Tim Prouty
1d65b7a742 s3 spoolss: arch needs to be set before it's passed to get_version_id.
7717ad6880 left arch unitialized.

Guenther, please check.
2009-02-09 16:12:20 -08:00
Michael Adam
ecc53d0312 Revert "s3:winbindd_user: create domain connection in winbindd_fill_pwent if necessary."
This reverts commit 487f5e7b47.

I was confused about the real meaning of find_domain_from_name_noinit()
vs. find_domain_from_name(). We don't need the connection established
here, just the domain struct which gets initialized by rescan_trusted_domains().

Sorry for the noise.

Michael
2009-02-09 23:30:42 +01:00
Jelmer Vernooij
69fff2d750 Revert "Fix errornos assumption that all compilers are gcc"
This breaks (some?) files with gcc.

This reverts commit 98a4327b19.
2009-02-09 23:29:41 +01:00
Günther Deschner
73c603562f s3-spoolss: remove old spoolss_ScheduleJob.
Guenther
2009-02-09 22:49:10 +01:00
Günther Deschner
0d281b76a9 s3-spoolss: use pidl for _spoolss_ScheduleJob.
Guenther
2009-02-09 22:48:14 +01:00
Günther Deschner
43463fcc1e s3-spoolss: remove old spoolss_AddJob.
Guenther
2009-02-09 22:48:07 +01:00
Günther Deschner
cb1ada9cc0 s3-spoolss: use pidl for _spoolss_AddJob.
Guenther
2009-02-09 22:47:57 +01:00
Günther Deschner
f94b8ef9c0 s3: re-run make samba3-idl.
Guenther
2009-02-09 22:46:44 +01:00
Günther Deschner
82c203799a spoolss: fill in spoolss_ScheduleJob.
Guenther
2009-02-09 22:46:44 +01:00
Günther Deschner
bfed6b1e22 spoolss: fill in spoolss_AddJob.
Guenther
2009-02-09 22:46:44 +01:00
Tim Prouty
1696298aad s3 async: Fix the build on systems that have ETIMEDOUT but not ETIME
Fallback on EAGAIN
2009-02-09 13:23:44 -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
Torgeir Lerkerod
98a4327b19 Fix errornos assumption that all compilers are gcc
When compiling Samba 4's IDL files buildsystem assumes that compiler
knows about -xc, which is a gcc spesefic switch as this switch isn't
needed on gcc either the flag was uneeded and can be removed. Thus no
warnings on non gcc systems.

Signed-off-by: Torgeir Lerkerod <Torgeir.Lerkerod@gmail.com>
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-02-09 22:12:45 +01:00
Karolin Seeger
cc51cbc862 docs: Add man sharesec.
Karolin
2009-02-09 21:01:29 +01:00
Volker Lendecke
07a8ad711b Attempt to fix the build 2009-02-09 20:18:57 +01:00
Jelmer Vernooij
4f29e8a75c Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-02-09 19:44:50 +01:00
Jelmer Vernooij
0d0aec18a2 Fix warning in spoolss IDL file output. 2009-02-09 19:43:52 +01:00
Jelmer Vernooij
db270e2f94 Rerun pidl. 2009-02-09 19:43:06 +01:00
Günther Deschner
a734c85c28 s3-spoolss: remove old rpccli_spoolss_routerreplyprinter.
Guenther
2009-02-09 19:12:27 +01:00
Günther Deschner
3b4bf2f8a9 s3-spoolss: remove old spoolss_ReplyClosePrinter.
Guenther
2009-02-09 19:10:37 +01:00
Günther Deschner
d2b8fb99ee s3-spoolss: use rpccli_spoolss_ReplyClosePrinter.
Guenther
2009-02-09 19:10:29 +01:00
Günther Deschner
d87891ea3e s3-spoolss: remove old spoolss_AddPrintProcessor.
Guenther
2009-02-09 19:09:09 +01:00
Günther Deschner
a7cf846d1e s3-spoolss: use pidl for _spoolss_AddPrintProcessor.
Guenther
2009-02-09 19:09:00 +01:00
Günther Deschner
84a0076c4b s3-rpcclient: remove a pointless fstring.
Guenther
2009-02-09 19:07:34 +01:00
Günther Deschner
438af255c6 s3-rpcclient: use srv_name_slash instead of formating servername again and again.
Guenther
2009-02-09 19:07:34 +01:00
Karolin Seeger
b3a2b3ade0 s4/wrepl_server: Fix typo in comment.
Karolin
2009-02-09 19:05:20 +01:00
Jelmer Vernooij
39172b5ce9 Remove an invalid discard_const_p() - it masks an actual
bug in pidl where pidl uses "const" in a struct where there should not be
const.

There is only a single place in the Samba codebase where this triggers a
warning.
2009-02-09 18:39:27 +01:00
Jelmer Vernooij
fa1ead3aa0 Use discard_const_p rather than CONST_DISCARD. 2009-02-09 17:50:35 +01:00
Jelmer Vernooij
0afa0ab442 Revert "s3/s4: Move CONST_DISCARD into lib/util so it's available from s3 and s4"
lib/util already has discard_const_p.

This reverts commit 0cb430c22e.
2009-02-09 17:48:30 +01:00
Jelmer Vernooij
9b366d7032 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-02-09 16:51:46 +01:00
Günther Deschner
1dadf17be8 s3: re-run make samba3-idl.
Guenther
2009-02-09 15:59:04 +01:00
Günther Deschner
4d78ece657 s3-spoolss: move PRINTER_ENUM_ICONMASK to IDL.
Guenther
2009-02-09 15:59:04 +01:00
Günther Deschner
c94c777d9c s3-spoolss: use PRINTER_ENUM_NAME and remove double enum define.
Guenther
2009-02-09 15:59:04 +01:00
Günther Deschner
ec302a1cfe s3-spoolss: remove PRINTER_CHANGE* flags now defined in IDL.
Guenther
2009-02-09 15:59:04 +01:00
Günther Deschner
88075102c8 spoolss: fill in spoolss_AddPrintProcessor.
Guenther
2009-02-09 15:59:04 +01:00
Günther Deschner
8bf900a2af spoolss: fill in spoolss_RouterReplyPrinter.
Guenther
2009-02-09 15:59:04 +01:00
Günther Deschner
b53fa7559b spoolss: add spoolss_PrinterChangeFlags.
Guenther
2009-02-09 15:59:03 +01:00
Derrell Lipman
76f4cc3c70 eliminate compiler warnings 2009-02-09 09:54:22 -05:00
Michael Adam
487f5e7b47 s3:winbindd_user: create domain connection in winbindd_fill_pwent if necessary.
Calling find_domain_from_name_noinit() might not be enough here.
This makes winbindd_getpwent() behave the same as winbindd_getgrent().

Michael
2009-02-09 14:05:42 +01:00
Michael Adam
a63f602473 s3:winbindd_user: fix a debug message.
find_domain_from_name_noinit() is no longer called only for
name alias support.

Michael
2009-02-09 14:03:52 +01:00
Stefan Metzmacher
3ce895181b testprogs/win32: add an option to trigger small reads in npecho_client2.c
metze
2009-02-09 13:32:11 +01:00
Günther Deschner
d78fd19547 s3-spoolss: remove old _spoolss_FindClosePrinterNotify.
Guenther
2009-02-09 13:03:23 +01:00