summaryrefslogtreecommitdiff
path: root/source3/modules
AgeCommit message (Collapse)AuthorFilesLines
2009-05-12s3 onefs: Self-contend level2 oplocks on BRLZack Kirsch1-1/+14
2009-05-12s3 onefs: Fix ignore sacl parameterTim Prouty4-24/+36
2009-05-12Clean up assignments to iov_base, ensure it's always cast to void *. This ↵Jeremy Allison2-4/+4
should quieten some warnings with picky compilers on the buildfarm. Jeremy.
2009-05-11Fix a bunch of compiler warnings about wrong format types.Jeremy Allison1-7/+7
Should make Solaris 10 builds look cleaner. Jeremy.
2009-05-05s3 onefs: Turn up the debug level for non-error casestprouty1-3/+3
2009-05-05s3: Fix trans2 path to use case-insensitive stat optimizationtprouty1-2/+6
Often times before creating a file, a client will first query to see if it already exists. Since some systems have a case-insensitive stat that is called from unix_convert, we can definitively return STATUS_NO_SUCH_FILE to the client without scanning the whole directory. This code path is taken from trans2querypathinfo, but trans2findfirst still does a full directory scan even though the get_real_filename (the case-insensitive stat vfs call) can prevent this. This patch adds the get_real_filename call to the trans2find* path, and also changes the vfs_default behavior for SMB_VFS_GET_REAL_FILENAME. Previously, in the absence of a get_real_filename implementation, we would fallback to the full directory scan. The default behavior now returns -1 and sets errno to EOPNOTSUPP. This allows SMB_VFS_GET_REALFILENAME to be called from trans2* and unix_convert.
2009-05-05s3:onefs.so Change system function namesSteven Danneman1-4/+4
Addendum to c49730e1. Use newer cookie conversion names.
2009-05-04s3:onefs.so fix issue with missing entries when enumerating directoriesSteven Danneman1-130/+75
This bug prompted several, fairly large changes to the of OneFS's readdirplus() within Samba. One fundamental problem is that we kept our cache cursor pointed at the next entry to be returned from onefs_readdir(), while the resume cookie needed to refill the cache such that our cursor would be on this entry, was located in the previous cache entry. This meant that to correctly handle seekdir() cases which could be found within the existing cache, and cases where a cache reload was needed, required that the cache always hold at least two entries: the entry we wished to return, and the previous entry which held the resume cookie. Since the readdirplus() syscall gives us no guarantee that it will always return these two direntries, there was a fundamental problem with this design. To fix this problem, I have rearchitected the onefs_readdir() path to keep its pointer on the entry which contains the resume_cookie, not the entry which will be returned next. Essentially, I changed onefs_readdir() from a "return an entry then increment the cursor" model to "increment the cursor then return an entry". By doing this, we only require that a single entry be within the cache: the entry containing the resume cookie. Second, there have been numerous off-by-one bugs in my implementation of onefs_seekdir() which did a mapping between the 64-bit resume cookie returned by readdirplus() and its own monotonically increasing "location" offset. Furthermore, this design caused a somewhat frequent waste of cycles, as in some cases we'd need to re-enumerate the entire directory to recover the current "location" from an old resume cookie. As this code was somewhat difficult to understand, prone to bugs, and innefficient in some cases I decided it was better to wholesale replace it now, rather than later. It is possible to algorithmically map the 64-bit resume cookies from readdirplus() into 32-bit offset values which SMB requires. The onefs.so module now calls into a system library to do this conversion. This greatly simplifies both the seekdir() and telldir() paths and is more efficient.
2009-04-28Fix annoying debug messages when no snapshots are usedVolker Lendecke1-2/+3
Not being able to open the shadow copy directory is the same as having no shadow copy support at all. The VFS module should in this case not log with debug level 0 and set ENOSYS to indicate "no shadow copies used" to the higher levels.
2009-04-07s3 onefs: Fix case-insensitivity for mangled namesTim Prouty1-0/+12
onefs_get_real_filename needs to demangle the filename before doing the case-insensitive estat
2009-04-06Make some functions static to vfs_gpfs.cVolker Lendecke1-14/+14
2009-04-06Add prototype for smbd_gpfs_get_realfilename_pathVolker Lendecke1-0/+2
2009-04-06Fix two c++ warnings in vfs_gpfs.cVolker Lendecke1-2/+2
2009-04-01s3 onefs: Quiet a log message about oplocks being requested on streamsTim Prouty1-21/+16
2009-03-31s3 onefs: Add missing newlines to debug statements in the onefs moduleTim Prouty4-15/+16
2009-03-31s3 onefs: Async failures are resulting in SMB_ASSERT->smb_panic while ↵Zack Kirsch1-2/+2
running many of the LOCK torture tests. Return true from the onefs cancel function if we've errored, which can happen when the CBRL domain is configured to only give out 1 lock. :)
2009-03-27s3: added per-client statistics to onefs perfcount moduleScott Urban2-23/+38
* we now track, uid, remote ip, and local ip per CIFS operation * removed perfcount_set_client() from perfcount interface as it's unecessary
2009-03-27Fix the build of nfsv4_acls.cVolker Lendecke1-1/+1
.. after adding smb_iconv_convenience to ndr_size_security_descriptor()
2009-03-26Try and fix the build farm RAW-STREAMS errors. Ordering ofJeremy Allison1-2/+2
modules shouldn't matter, so as vfs_streams_depot doesn't implement get/setxattrs then call into the full VFS stack at the top. Jeremy
2009-03-25Add missing newlines to debug statementsSteven Danneman1-2/+2
2009-03-24s3 onefs: Change error status to NT_ACCESS_DENIED for errors in ↵David Kwan1-5/+5
SET_SECURITY_DESC
2009-03-23s3 OneFS: Remove usage of non-existant functionTim Prouty1-9/+0
The function was removed in: c16c90a1cb3b0e2ceadd3dea835a4e69acfc2fae
2009-03-22Use StrCaseCmp in the dirsort moduleVolker Lendecke1-1/+1
2009-03-22Add dirsort moduleAndy Kelk1-0/+194
2009-03-18s3 onefs: Correctly error out when the read returns EOFTim Prouty1-5/+9
Also add some more debugging.
2009-03-13s3: Don't return in a void funtionTim Prouty1-1/+1
2009-03-13s3 OneFS: Add kernel strict locking supportDave Richards3-10/+95
2009-03-13s3: Add strict lock/unlock calls to the vfs layer to replace is_lockedDave Richards2-0/+64
2009-03-10Add a vfs_preopen module to hide fs latenciesVolker Lendecke1-0/+456
2009-03-04s3 OneFS: Use the public open_streams_for_deleteTim Prouty1-113/+0
2009-03-04Fix crashes when running RAW-ACLs against system with tdb ACL modulesJeremy Allison2-3/+3
(caused by the POSIX pathname fixes). Jeremy.
2009-03-04Make use of gpfs_get_real_filename optionalVolker Lendecke2-1/+10
2009-03-03s3 OneFS: Add parameter to ignore streamsTim Prouty4-3/+17
2009-03-01s3 OneFS: Refactor config code and cleanup includesTim Prouty11-385/+453
2009-02-25Use fsp->posix_open in preference if we have it.Jeremy Allison2-7/+7
Jeremy.
2009-02-25Ensure ACL modules work with POSIX paths.Jeremy Allison2-22/+79
Jeremy.
2009-02-25s3 OneFS: Add .snapshot directory configuration handlingTim Prouty4-27/+201
2009-02-25Fix use of streams modules with CIFSFS client.Jeremy Allison2-4/+25
Jeremy.
2009-02-24s3 OneFS: Fix uninitialized variableTim Prouty1-1/+1
2009-02-24s3: onefs_acl.c cleanupDan Sledz1-4/+1
Remove some duplicate code. Add a \n to a debugging statement
2009-02-24S3: Add in profile counters for new vfs and syscall entries.todd stecher4-6/+65
2009-02-23s3 OneFS: Add a parameter that unconditionally allows execute accessTim Prouty2-0/+26
2009-02-23More warning fixes for Solaris.Jeremy Allison1-4/+4
Jeremy.
2009-02-23More warning fixes for Solaris.Jeremy Allison1-4/+5
Jeremy.
2009-02-23Quieten down a boatload of shadowed variable warnings on Solaris.Jeremy Allison2-47/+47
Makes real problems easier to spot. Jeremy.
2009-02-21s3 OneFS: Add an atomic sendfile implementationTim Prouty3-0/+282
2009-02-20s3 OneFS: Add debugging for createfile_flagsZack Kirsch1-12/+15
2009-02-20s3: OneFS implementation of change notifySteven Danneman3-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.
2009-02-20Fix bug #6133 - Cannot delete non-ACL files on Solaris/ZFS/NFSv4 ACL filesystem.Jeremy Allison1-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.
2009-02-19s3 OneFS: Add shadow copy moduleTim Prouty3-0/+1531