summaryrefslogtreecommitdiffstats
path: root/source3/modules
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug #6769 - symlink unlink does nothing.Jeremy Allison2009-10-011-1/+5
| | | | | Always use LSTAT for POSIX pathnames. Jeremy.
* changed debuglevel for two messages in the GPFS module from 0 to 10 they ↵Christian Ambach2009-09-281-2/+2
| | | | | | spammed the logs on a test machine and they are just debug messages, so let's move them to the level of the other debug messages in the file Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
* s3:vfs_default - correct function parametersMatthias Dieter Wallnöfer2009-09-241-1/+2
|
* s3 onefs: Fix 1 second share mode delay handlingSteven Danneman2009-09-241-3/+33
| | | | | | | | | When racing to the open and loosing we may get a share_mode violation. In this case handle the 1-second delay via a defferred open properly. This requires us to retrieve the share_mode_lock before deferring open so we don't dereference a NULL pointer assuming we already had the lck because we were the first opener.
* s3 onefs: Fix a race condition exists in onefs_open.c between multiple opens ↵Steven Danneman2009-09-241-5/+19
| | | | | | | | | | | | | | | | | to the same file. Two openers can stat a file at the same time, see that it doesn't exist, and then both race to open it first. The loser will enter onefs_open_file_ntcreate believing that the file doesnt exist, and thus skip any current state lookups for that file. This includes setting the file_id, and having a valid stat buffer. Normally on first create the file_id will be set during the open, but the second opener in this scenario may fail the open (oplock/share mode) and file_id will not be set, nor will the stat buffer be valid. In the error paths of this patch, we now double check that the file_id and the stat buffer are valid before doing other operations.
* s3 onefs: Add some debugging/asserts to give more info when there is bad ↵Zack Kirsch2009-09-241-9/+24
| | | | | | deferred open state. Signed-off-by: Tim Prouty <tprouty@samba.org>
* s3: Add more helpful debugging to some of the streams codeTim Prouty2009-09-242-1/+24
|
* vfs catia: Fix a NULL dereference when CATIA is loaded with no mappings ↵Aravind Srinivasan2009-09-241-1/+8
| | | | | | | | | | | specified. When we use the CATIA vfs module and don't have any mapping specified, we return NULL for the mapped_name, thereby resulting in segfaults. When we don't have catia mapping, we should just use the old name instead of returning NULL for the mapped_name. Signed-off-by: Tim Prouty <tprouty@samba.org>
* vfs catia: Fix the double translation that was happening with createfile and ↵Aravind Srinivasan2009-09-243-92/+60
| | | | | | | | | | | | | | | open. Since the catia translation is implemented for open, it should not also be done in createfile. By removing createfile from catia, translation is now done correctly for the primary open path. In order to support systems that have custom createfile implementations that don't eventually call SMB_VFS_OPEN, SMB_VFS_TRANSLATE_NAME has been expanded to take an additional argument that specifies direction. Signed-off-by: Tim Prouty <tprouty@samba.org>
* vfs catia: Fix a possible NULL dereferenceAravind Srinivasan2009-09-241-2/+9
| | | | | | Also free some unfreed memory. Signed-off-by: Tim Prouty <tprouty@samba.org>
* s3: Forgot to check in one build failure for vfs_gpfs.cVolker Lendecke2009-09-241-1/+1
|
* s3: Remove an unused variableVolker Lendecke2009-09-241-1/+0
|
* s3: Make the vfs_gpfs compile at leastVolker Lendecke2009-09-241-19/+23
| | | | Not sure whether it works in this state :-)
* s3:smbd: Attempt to fix the build on HP/UXVolker Lendecke2009-09-181-0/+1
|
* To set file create/birth time in GPFS. Signed-off-by: Abhidnya Chirmule ↵Abhidnya Chirmule2009-09-171-0/+42
| | | | <achirmul@in.ibm.com>
* s3:vfs: Fix the build of vfs_tsmsm after the VFS rewriteVolker Lendecke2009-09-171-3/+3
|
* s3: Fix reading beyond the end of a named stream in xattr_streamsVolker Lendecke2009-09-161-2/+1
| | | | | This was found thanks to a test by Sivani from Microsoft against Samba at the SDC plugfest
* s3: Add some debugs to streams_xattrVolker Lendecke2009-09-161-0/+6
|
* s3:vfs_catia: Make some fns staticVolker Lendecke2009-09-141-3/+3
|
* s3:vfs_catia: Use talloc_zero for simplificationVolker Lendecke2009-09-141-2/+1
|
* s3:vfs_modules: Fix Coverity ID 946: OVERRUN_STATICVolker Lendecke2009-09-141-1/+1
| | | | Tim, please check!
* s3: Test short reads in the build farmVolker Lendecke2009-09-141-0/+3
|
* Fix compile in a usually non-selected define.Jeremy Allison2009-09-091-1/+1
| | | | Jeremy.
* s3: Major revamp for catia vfs moduleAravind Srinivasan2009-08-281-145/+837
| | | | | | | | | This patch builds out catia to allow fully configurable mappings, including mappings from single byte to multi-byte characters. Additionally, a much more complete list of vfs operations are now covered. Signed-off-by: Tim Prouty <tprouty@samba.org>
* s3: Add a new VFS op called SMB_VFS_TRANSLATE_NAMEAravind Srinivasan2009-08-283-1/+30
| | | | | | | | | | | This vop is designed to work in tandem with SMB_VFS_READDIR to allow vfs modules to make modifications to arbitrary filenames before they're consumed by callers. Subsequently the core directory enumeration code in smbd is now changed to free the memory that may be allocated in a module. This vop enables the new version of catia in the following patch. Signed-off-by: Tim Prouty <tprouty@samba.org>
* s3:streams: check for :$DATA only in the backend (fix bug #6642)Stefan Metzmacher2009-08-272-2/+11
| | | | | | | We need to allow "\\$Extend\\$Quota:$Q:$INDEX_ALLOCATION" to pass check_path(), so that the Quota Dialog works. metze
* s3 onefs: Canonicalize the ACL in the correct ordertprouty2009-08-261-4/+8
|
* s3: Allow full_audit to play nice with smbd if it's using syslogtprouty2009-08-261-1/+11
| | | | | | | | Explictly pass the facility from both smbd and full_audit to syslog. Really the only major change is to not call openlog() in full_audit if WITH_SYSLOG is defined, which implies that smbd is already using syslog. This allows full audit to piggy-back on the same ident as smbd, while still differentiating the logging via the facility.
* s3 audit: Change create_file in full_audit to print whether a directory or ↵tprouty2009-08-261-2/+28
| | | | | | | file was requested full_audit will now print out whether the createfile was requested for a file or directory. The create disposition is also printed out.
* Second attempt at fix for bug 6529 - Offline files conflict with Vista and ↵Jeremy Allison2009-08-246-22/+83
| | | | | | | | Office 2003. Confirmation from reporter that this fixes the issue in master on ext3/ext4. Back-ports to follow. Jeremy.
* Make refusal of SEC_DESC_DACL_PROTECTED configurableVolker Lendecke2009-08-191-1/+3
| | | | | | | | This adds a parameter "gpfs:refuse_dacl_protected" that defaults to false. GPFS has no place to store the SEC_DESC_DACL_PROTECTED ACL bit. With this parameter we give customers an option to either ignore this bit or refuse setting an ACL with it.
* Use defined names rather than numeric constants to make codeJeremy Allison2009-08-141-2/+2
| | | | | clearer. Jeremy.
* gpfs.so: map the file_inherit and dir_inherit flags away for filesMichael Adam2009-08-141-1/+15
| | | | | | | | | | | GPFS sets inherits dir_inhert and file_inherit flags to files, too, which confuses windows, and seems to be wrong anyways. So when mapping a nfs4 acl to a windows acl, we map these flags away for files. Michael
* When mapping EA's into a TDB, don't remove the EAJeremy Allison2009-08-121-0/+9
| | | | | | until the last link to the file is gone (fixes the build farm RAW-RENAME test with xattr's in tdb's). Jeremy.
* Add "store create time" parameter (docs to follow)Jeremy Allison2009-08-121-0/+9
| | | | | that stores the create time in the user.DosTimestamps EA. Jeremy.
* Fix some warnings in the AIX ACL code.Jeremy Allison2009-08-121-4/+3
| | | | Jeremy.
* Move the checks for null timestamps down below the VFS_NTIMESJeremy Allison2009-08-071-0/+15
| | | | | | layer (as it's done in onefs). This simplifies greatly the code in smb_set_file_time() w.r.t. changenotify messages. Jeremy.
* Fix breakage for connect function after API change (connect -> connect_fn)Alexander Bokovoy2009-08-022-2/+2
|
* s3: Attempt to fix hpuxacl moduleTim Prouty2009-07-292-5/+13
|
* shadow_copy2: The system getrealfilename() can't deal with a 0-length fnameVolker Lendecke2009-07-291-0/+3
| | | | | | This fixes viewing the content of snapshots in the share root directory. We have to treat the filename that *just* consists of "@GMT-YYYY.MM.DD-HH.MM.SS" like the share root, which is the current working directory.
* Fix the build breakage by #including modules/vfs_acl_common.cJeremy Allison2009-07-273-21/+31
| | | | | | | into acl_tdb and acl_xattr. Duplicates the code size, but keeps the code in common so I don't have to do bug fixes in two places (which is what I really cared about). Jeremy.
* Cleanup patch after "new VFS"Volker Lendecke2009-07-251-1/+1
|
* Cleanup patch after "struct stat_ex"Volker Lendecke2009-07-251-2/+2
|
* s3 onefs: Fix the onefs modules after the big refactoringTim Prouty2009-07-244-10/+10
|
* Factor out common code into vfs_acl_common.c.Jeremy Allison2009-07-243-1272/+653
| | | | Jeremy.
* Make acl_tdb match acl_xattr. Large duplication ofJeremy Allison2009-07-241-68/+225
| | | | | code here needs tidying up. Compiles but not yet tested. Jeremy.
* Fix hash function in acl_xattr to be SHA256, makeJeremy Allison2009-07-242-62/+100
| | | | | | | | the hash function selectable. Upgrade version. Compiles but not fully tested yet (coming). Make vfs_acl_tdb.c compile - this needs updating to match acl_xattr (also coming soon). Jeremy.
* Move the "enum _vfs_op_type" to full_auditVolker Lendecke2009-07-241-0/+142
| | | | | It's only used there now. Someone should now go in and simplify full_audit... :-)
* Make the smbd VFS typesafeVolker Lendecke2009-07-2443-1587/+710
|
* Some more VFS type errorsVolker Lendecke2009-07-241-2/+2
|