summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
* merged-build: pass PYTHON and PERL down to make test4Stefan Metzmacher2009-02-101-1/+2
| | | | metze
* s3-spoolss: remove old spoolss_OpenPrinter.Günther Deschner2009-02-103-71/+0
| | | | Guenther
* s3-spoolss: use pidl for _spoolss_OpenPrinter.Günther Deschner2009-02-102-81/+20
| | | | Guenther
* s3-spoolss: remove old spoolss_OpenPrinterEx.Günther Deschner2009-02-105-288/+0
| | | | Guenther
* s3-spoolss: use pidl for _spoolss_OpenPrinterEx.Günther Deschner2009-02-102-68/+35
| | | | Guenther
* s3-spoolss: remove old spoolss_SetJob.Günther Deschner2009-02-104-115/+0
| | | | Guenther
* s3-spoolss: use pidl for _spoolss_SetJob.Günther Deschner2009-02-102-38/+9
| | | | Guenther
* s3-spoolss: remove old spoolss_StartDocPrinter.Günther Deschner2009-02-104-265/+0
| | | | Guenther
* s3-spoolss: use pidl for _spoolss_StartDocPrinter.Günther Deschner2009-02-102-52/+21
| | | | Guenther
* s3-spoolss: add temporary convert_devicemode_new function.Günther Deschner2009-02-101-0/+75
| | | | Guenther
* s3-spoolss: use SPOOLSS_JOB_CONTROL bits defined in IDL.Günther Deschner2009-02-102-11/+5
| | | | Guenther
* s3-rpcclient: use rpccli_spoolss_openprinter_ex helper.Günther Deschner2009-02-103-105/+96
| | | | Guenther
* s3-rpcclient: add rpccli_spoolss_openprinter_ex() convenience wrapper.Günther Deschner2009-02-102-0/+54
| | | | Guenther
* s3-spoolss: fix memleak in get_remote_printer_publishing_data().Günther Deschner2009-02-101-2/+8
| | | | Guenther
* s3: OneFS bulk directory enumeration supportSteven Danneman2009-02-096-21/+692
| | | | | | | | | | | | | | | | | | OneFS provides the bulk directory enumeration syscall readdirplus(). This syscall has the same semantics as the NFSv3 READDIRPLUS command, returning a batch of directory entries with prefetched stat information via one syscall. This commit wraps the readdirplus() call in the existing POSIX readdir/seekdir VFS interface. By default a batch of 128 directory entries are optimistically read from the kernel into a global cache, and fed to iterative calls of VFS_OP_READDIR. The global buffers could be avoided in the future by hanging connection specific buffers off the conn struct. Added new parameter "onefs:use readdirplus" which toggles usage of this code on or off.
* s3: Added SMB_VFS_INIT_SEARCH_OP to initialize data at the beginning of SMB ↵Steven Danneman2009-02-098-5/+53
| | | | | | | | search requests. By default this VFS call is a NOOP, but the onefs vfs module takes advantage of it to initialize direntry search caches at the beginning of each TRANS2_FIND_FIRST, TRANS2_FIND_NEXT, SMBffirst, SMBsearch, and SMBunique
* Pass stat buffer down through all levels of VFS_READDIR wrappersSteven Danneman2009-02-095-98/+106
| | | | | | | | | * VFS_OP_READDIR can now provide stat information, take advantage of it if it's available * is_visible_file(): optimistically expect the provided stat buffer is already valid * dptr_ReadDirName(): refactor code for easier readability, functionality is the same
* Add an optional SMB_STRUCT_SMB parameter to VFS_OP_READDIRSteven Danneman2009-02-0912-21/+63
| | | | | | | | * this allows VFS implementations that prefetch stat information on readdir to return it through one VFS call * backwards compatibility is maintained by passing in NULL * if the system readdir doesn't return stat info, the stat struct is set to invalid
* s3 OneFS: Change ACLs to do a stat-only open before get/set_security_descriptorTim Prouty2009-02-091-22/+4
| | | | | | This ensures that getting/stting a security descriptor does not contend an oplock. The correct access checks will be still be done in the kernel on the get/set rather than the open.
* s3 OneFS: Add kernel oplocks implementationTim Prouty2009-02-099-82/+996
| | | | | | | | | 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.
* s3 oplocks: Remove oplocks before handling delete on close semanticsTim Prouty2009-02-091-4/+5
| | | | | | Unlinking a file while still holding an oplock can cause problems with kernel oplocks. This simply releases the oplock before actually unlinking the file.
* s3 oplocks: Add capabilites flags field to the kernel_oplocks structTim Prouty2009-02-094-2/+50
| | | | | | | | | | | | | | | | 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.
* s3 oplocks: Make the level2 oplock contention API more granularTim Prouty2009-02-0911-39/+178
| | | | | | | | | | | | | | | | | | 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.
* s3 oplocks: Differentiate between releasing an oplock vs. downgrading to ↵Tim Prouty2009-02-094-5/+5
| | | | | | | 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.
* s3 vfs: Add a destructor to the fsp extension data APITim Prouty2009-02-098-9/+20
| | | | | 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.
* S3: Various fixes for log2pcaphex utilitytodd stecher2009-02-091-49/+113
|
* s3 spoolss: arch needs to be set before it's passed to get_version_id.Tim Prouty2009-02-091-3/+3
| | | | | | 7717ad688099860fa0989ed3582435404fd6d4fa left arch unitialized. Guenther, please check.
* Revert "s3:winbindd_user: create domain connection in winbindd_fill_pwent if ↵Michael Adam2009-02-091-1/+1
| | | | | | | | | | | | | | necessary." This reverts commit 487f5e7b4768cfe9e511b0ba56f16c411e21f702. 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
* s3-spoolss: remove old spoolss_ScheduleJob.Günther Deschner2009-02-093-52/+0
| | | | Guenther
* s3-spoolss: use pidl for _spoolss_ScheduleJob.Günther Deschner2009-02-092-35/+6
| | | | Guenther
* s3-spoolss: remove old spoolss_AddJob.Günther Deschner2009-02-093-74/+0
| | | | Guenther
* s3-spoolss: use pidl for _spoolss_AddJob.Günther Deschner2009-02-092-44/+10
| | | | Guenther
* s3 async: Fix the build on systems that have ETIMEDOUT but not ETIMETim Prouty2009-02-091-4/+7
| | | | Fallback on EAGAIN
* S3 OneFS: Add in Isilon specific performance counter moduletodd stecher2009-02-093-1/+423
|
* S3: New module interface for SMB message statistics gatheringtodd stecher2009-02-0918-39/+411
| | | | | | | 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.
* Attempt to fix the buildVolker Lendecke2009-02-091-4/+4
|
* s3-spoolss: remove old rpccli_spoolss_routerreplyprinter.Günther Deschner2009-02-094-123/+0
| | | | Guenther
* s3-spoolss: remove old spoolss_ReplyClosePrinter.Günther Deschner2009-02-094-100/+0
| | | | Guenther
* s3-spoolss: use rpccli_spoolss_ReplyClosePrinter.Günther Deschner2009-02-091-5/+5
| | | | Guenther
* s3-spoolss: remove old spoolss_AddPrintProcessor.Günther Deschner2009-02-093-70/+0
| | | | Guenther
* s3-spoolss: use pidl for _spoolss_AddPrintProcessor.Günther Deschner2009-02-092-36/+17
| | | | Guenther
* s3-rpcclient: remove a pointless fstring.Günther Deschner2009-02-091-46/+29
| | | | Guenther
* s3-rpcclient: use srv_name_slash instead of formating servername again and ↵Günther Deschner2009-02-093-145/+62
| | | | | | again. Guenther
* Revert "s3/s4: Move CONST_DISCARD into lib/util so it's available from s3 ↵Jelmer Vernooij2009-02-091-0/+2
| | | | | | | | and s4" lib/util already has discard_const_p. This reverts commit 0cb430c22e9c0af2248fbc15ce97a4d760df189d.
* s3-spoolss: move PRINTER_ENUM_ICONMASK to IDL.Günther Deschner2009-02-091-1/+0
| | | | Guenther
* s3-spoolss: use PRINTER_ENUM_NAME and remove double enum define.Günther Deschner2009-02-092-2/+1
| | | | Guenther
* s3-spoolss: remove PRINTER_CHANGE* flags now defined in IDL.Günther Deschner2009-02-091-51/+0
| | | | Guenther
* eliminate compiler warningsDerrell Lipman2009-02-091-4/+7
|
* s3:winbindd_user: create domain connection in winbindd_fill_pwent if necessary.Michael Adam2009-02-091-1/+1
| | | | | | | Calling find_domain_from_name_noinit() might not be enough here. This makes winbindd_getpwent() behave the same as winbindd_getgrent(). Michael
* s3:winbindd_user: fix a debug message.Michael Adam2009-02-091-2/+2
| | | | | | | find_domain_from_name_noinit() is no longer called only for name alias support. Michael