summaryrefslogtreecommitdiffstats
path: root/source3/modules
Commit message (Collapse)AuthorAgeFilesLines
* Use fsp->posix_open in preference if we have it.Jeremy Allison2009-02-252-7/+7
| | | | Jeremy.
* Ensure ACL modules work with POSIX paths.Jeremy Allison2009-02-252-22/+79
| | | | Jeremy.
* s3 OneFS: Add .snapshot directory configuration handlingTim Prouty2009-02-254-27/+201
|
* Fix use of streams modules with CIFSFS client.Jeremy Allison2009-02-252-4/+25
| | | | Jeremy.
* s3 OneFS: Fix uninitialized variableTim Prouty2009-02-241-1/+1
|
* s3: onefs_acl.c cleanupDan Sledz2009-02-241-4/+1
| | | | | Remove some duplicate code. Add a \n to a debugging statement
* S3: Add in profile counters for new vfs and syscall entries.todd stecher2009-02-244-6/+65
|
* s3 OneFS: Add a parameter that unconditionally allows execute accessTim Prouty2009-02-232-0/+26
|
* More warning fixes for Solaris.Jeremy Allison2009-02-231-4/+4
| | | | Jeremy.
* More warning fixes for Solaris.Jeremy Allison2009-02-231-4/+5
| | | | Jeremy.
* Quieten down a boatload of shadowed variable warnings on Solaris.Jeremy Allison2009-02-232-47/+47
| | | | | Makes real problems easier to spot. Jeremy.
* s3 OneFS: Add an atomic sendfile implementationTim Prouty2009-02-213-0/+282
|
* s3 OneFS: Add debugging for createfile_flagsZack Kirsch2009-02-201-12/+15
|
* s3: OneFS implementation of change notifySteven Danneman2009-02-203-0/+691
| | | | | | | | | | | | | | | The OneFS Samba implementation of change notify is modeled after the usage of Linux's inotify kernel subsystem. A single call is made into the onefs.so VFS module to initialize kernel tracking of certain file change events. When these events occur a kernel notification is sent to smbd and the notification event is translated and given to the general Samba Change Notify layer through a callback function. The most difficult aspect is converting an SMB CompletionFilter to a matching ifs_event mask, and then back to an appropriate change notify action. Currently, not all possible cases are handled by the this module, but the most prevalent ones, which are tested by smbtorture, are implemented.
* Fix bug #6133 - Cannot delete non-ACL files on Solaris/ZFS/NFSv4 ACL filesystem.Jeremy Allison2009-02-201-1/+7
| | | | | | | As the NFSv4 ACL mapping code doesn't map write directory into the DELETE_CHILD permission bit (which we require before allowing a delete) no one can delete files without an explicit DELETE_CHILD bit set on the directory. Add this mapping. Jeremy.
* s3 OneFS: Add shadow copy moduleTim Prouty2009-02-193-0/+1531
|
* s3 OneFS: Add file_id_create implementation to take advantage of snapshotsTim Prouty2009-02-191-0/+18
|
* s3: Add extid to the dev/inode pairTim Prouty2009-02-193-0/+10
| | | | | | | | | | | This extends the file_id struct to add an additional generic uint64_t field: extid. For backwards compatibility with dev/inodes stored in xattr_tdbs and acl_tdbs, the ext id is ignored for these databases. This patch should cause no functional change on systems that don't use SMB_VFS_FILE_ID_CREATE to set the extid. Existing code that uses the smb_share_mode library will need to be updated to be compatibile with the new extid.
* s3: Modify SMB_VFS_FILE_ID_CREATE to take a stat structTim Prouty2009-02-195-20/+29
| | | | | Since file_id_create_dev is incompatible with the concept of file_ids, it is now static and in the one file that needs it.
* s3 OneFS: Fixes "inherit permissions" and "nt acl support" for Onefs.Zack Kirsch2009-02-191-1/+11
|
* S3: Make changes to perfcount API set for when a single request leads to ↵todd stecher2009-02-192-13/+98
| | | | | | multiple replies (e.g. reply_echo). Change test and onefs modules to match new api set (thanks Volker!).
* s3: OneFS: Pass in the client's fnum to the ifs_cbrl syscall.Zack Kirsch2009-02-181-3/+4
|
* s3: Fix OneFS bug opening streams with truncating dispositionAravind Srinivasan2009-02-181-1/+1
| | | | | Do not attempt to delete streams on a truncating open, if the name we're opening is itself a stream
* s3: Fix streams enumeration bug in OneFS implementationAravind Srinivasan2009-02-183-18/+68
| | | | | | | | | | | | | Previously, we didn’t call SMB_VFS_OPEN_DIR from the streams module, instead we called fdopendir(). As a result we failed to populate the dir_state list in the readdirplus module. So when we tried to view the stream data, we will always returned NULL. To solve this I separated onefs_opendir() and the initialization of the dir_state list. This is done by introducing a new utility function “onefs_rdp_add_dir_state()”, which initializes the dir_state structure and adds it to the dir_state list. This function is called from the streams module before calling readdir().
* s3 perfcount: Fix segfault with smbclient 'echo 3 foo'Tim Prouty2009-02-161-33/+11
|
* s3 OneFS: Add defaults to the fake timestamp parametersTim Prouty2009-02-162-8/+19
|
* Replace a // style comment with a /* */ oneVolker Lendecke2009-02-141-1/+1
|
* Fix some C++ warningsVolker Lendecke2009-02-141-7/+14
|
* s3 OneFS: Add recvfile implementationTim Prouty2009-02-133-0/+198
|
* Enable total anonymization in vfs_smb_traffic_analyzer, by mapping any user ↵Holger Hetterich2009-02-131-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.
* s3 OneFS: Add vfs implementation for SMB_VFS_GET_REAL_FILE_NAMEAravind Srinivasan2009-02-131-0/+41
|
* s3: Test module for perfcount systemtodd stecher2009-02-131-0/+363
| | | | | Add 'perfcount module = pc_test' to exercise this module. Results are logged into smb.log every 50 operations (configurable via smb.conf).
* OneFS implementation of BRL VFS ops:Zack Kirsch2009-02-133-2/+476
| | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Add VFS ops for Windows BRL: Lock, Unlock and Cancel:Zack Kirsch2009-02-132-0/+114
| | | | | | | | | | | | | | | | | | | | | | | 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.
* s3 onefs: rename custom parameter to plural to match previous usageSteven Danneman2009-02-123-5/+5
|
* s3 OneFS: Expand the usage of the ignore sacl parametertodd stecher2009-02-112-0/+11
|
* S3: Add in missing full audit entries.todd stecher2009-02-101-6/+34
|
* s3: OneFS bulk directory enumeration supportSteven Danneman2009-02-094-19/+690
| | | | | | | | | | | | | | | | | | 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-092-0/+23
| | | | | | | | 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
* Add an optional SMB_STRUCT_SMB parameter to VFS_OP_READDIRSteven Danneman2009-02-098-12/+20
| | | | | | | | * 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-093-81/+134
| | | | | | | | | 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 vfs: Add a destructor to the fsp extension data APITim Prouty2009-02-094-4/+5
| | | | | 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 OneFS: Add in Isilon specific performance counter moduletodd stecher2009-02-091-0/+415
|
* s3 OneFS: Fake Timestampstodd stecher2009-02-093-14/+242
| | | | | | | | | | | | | This checkin enables setting arbitrary timestamps on files matching the pattern stored in smb.conf. This was a customer request for a specific workflow. Changes include: 1) configuration state machine to avoid tons of string comparisons on each and every stat. 2) Code to adjust post-stat() times to match time now, or sloptime + time now.
* Fix bug #6085 - In vfs_default.c change utime( ) call.Miguel Suarez2009-02-031-1/+1
|
* s3 onefs: Fix onefs ACLs to work with updated ACL syscallTim Prouty2009-01-301-1/+1
|
* s3 onefs: Add the OneFS implementation of SMB_VFS_GET_ALLOC_SIZETim Prouty2009-01-291-0/+27
|
* s3: Add a new SMB_VFS_GET_ALLOC_SIZE vfs operationTim Prouty2009-01-295-11/+63
| | | | | This allows module implementors to customize what allocation size is returned to the client.
* s3:smbd: convert aio to use tevent_signalStefan Metzmacher2009-01-271-2/+1
| | | | metze