summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_streams_depot.c
AgeCommit message (Collapse)AuthorFilesLines
2012-02-02s3: Simplify streams_depot a bitVolker Lendecke1-14/+5
b0c0b949 is a bit involved. Passing down booleans is almost never very clear
2012-02-01s3: Add rmdir operation to streams_depotVolker Lendecke1-0/+47
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Feb 1 01:05:57 CET 2012 on sn-devel-104
2011-12-12vfs: Make function pointer names consistent. They all end in _fnRichard Sharpe1-6/+6
Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Mon Dec 12 04:58:40 CET 2011 on sn-devel-104
2011-10-14Add support for VFS op streaminfo chaining in all relevant VFS modules.Frank Lahm1-15/+3
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Oct 14 03:26:06 CEST 2011 on sn-devel-104
2011-06-09s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()Andrew Bartlett1-1/+1
Using the standard macro makes it easier to move code into common, as TALLOC_REALLOC_ARRAY isn't standard talloc. Andrew Bartlett
2011-05-18s3-lib Replace StrCaseCmp() with strcasecmp_m()Andrew Bartlett1-1/+1
strcasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
2011-04-21s3-vfs: rename open function to open_fn.Günther Deschner1-1/+1
This should finally fix the AIX build and allow to remove AIX specific ifdefs. Guenther Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Apr 21 02:01:20 CEST 2011 on sn-devel-104
2011-03-30s3-vfs: include smbd/smbd.h in vfs modules.Günther Deschner1-0/+1
Guenther
2011-03-30s3-includes: only include system/filesys.h when needed.Günther Deschner1-0/+1
Guenther
2011-01-20Make processing of incoming stream rename paths common between reply_mv and ↵Jeremy Allison1-19/+1
ntrename. Ensure we don't depend on "./" in the streams module.
2009-11-18s3: Do not talloc in readdirVolker Lendecke1-5/+7
This is a hot codepath (called from the stat cache)
2009-10-29Start fixing the RAW-STREAMS test - ensure that the xattrJeremy Allison1-2/+0
used to store the stream info in streams_depot.so is not seen in when enumerating EAs. Jeremy.
2009-08-28s3: Add a new VFS op called SMB_VFS_TRANSLATE_NAMEAravind Srinivasan1-1/+4
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>
2009-08-27s3:streams: check for :$DATA only in the backend (fix bug #6642)Stefan Metzmacher1-2/+8
We need to allow "\\$Extend\\$Quota:$Q:$INDEX_ALLOCATION" to pass check_path(), so that the Quota Dialog works. metze
2009-08-24Second attempt at fix for bug 6529 - Offline files conflict with Vista and ↵Jeremy Allison1-2/+3
Office 2003. Confirmation from reporter that this fixes the issue in master on ext3/ext4. Back-ports to follow. Jeremy.
2009-07-24Make the smbd VFS typesafeVolker Lendecke1-19/+9
2009-07-06s3: Update streaminfo implementations now that only base names are passed ↵Tim Prouty1-6/+0
through the vfs
2009-07-06s3: Plumb smb_filename through SMB_VFS_UNLINKTim Prouty1-51/+19
2009-07-06s3: Plumb smb_filename through SMB_VFS_RENAMETim Prouty1-52/+54
2009-06-24s3: Plumb smb_filename through SMB_VFS_STAT and SMB_VFS_LSTATTim Prouty1-111/+227
This patch introduces two new temporary helper functions vfs_stat_smb_fname and vfs_lstat_smb_fname. They basically allowed me to call the new smb_filename version of stat, while avoiding plumbing it through callers that are still too inconvenient. As the conversion moves along, I will be able to remove callers of this, with the goal being to remove all callers. There was also a bug in create_synthetic_smb_fname_split (also a temporary utility function) that caused it to incorrectly handle filenames with ':'s in them when in posix mode. This is now fixed.
2009-06-17s3: Change SMB_VFS_OPEN to take an smb_filename structTim Prouty1-23/+88
This was a little messy because of all of the vfs modules I had to touch. Most of them were pretty straight forward, but the streams modules required a little attention to handle smb_filename. Since the use of smb_filename enables the vfs modules to access the raw, over-the-wire stream, a little bit of the handling that was being done by split_ntfs_stream_name has now been shifted into the individual stream modules. It may be a little more code, but overall it gives more flexibility to the streams modules, while also allowing correct stream handling.
2009-05-26Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STATVolker Lendecke1-5/+5
This patch introduces struct stat_ex { dev_t st_ex_dev; ino_t st_ex_ino; mode_t st_ex_mode; nlink_t st_ex_nlink; uid_t st_ex_uid; gid_t st_ex_gid; dev_t st_ex_rdev; off_t st_ex_size; struct timespec st_ex_atime; struct timespec st_ex_mtime; struct timespec st_ex_ctime; struct timespec st_ex_btime; /* birthtime */ blksize_t st_ex_blksize; blkcnt_t st_ex_blocks; }; typedef struct stat_ex SMB_STRUCT_STAT; It is really large because due to the friendly libc headers playing macro tricks with fields like st_ino, so I renamed them to st_ex_xxx. Why this change? To support birthtime, we already have quite a few #ifdef's at places where it does not really belong. With a stat struct that we control, we can consolidate the nanosecond timestamps and the birthtime deep in the VFS stat calls. At this moment it is triggered by a request to support the birthtime field for GPFS. GPFS does not extend the system level struct stat, but instead has a separate call that gets us the additional information beyond posix. Without being able to do that within the VFS stat calls, that support would have to be scattered around the main smbd code. It will very likely break all the onefs modules, but I think the changes will be reasonably easy to do.
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-02-25Fix use of streams modules with CIFSFS client.Jeremy Allison1-2/+12
Jeremy.
2009-02-19s3: Modify SMB_VFS_FILE_ID_CREATE to take a stat structTim Prouty1-2/+1
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.
2009-02-09Add an optional SMB_STRUCT_SMB parameter to VFS_OP_READDIRSteven Danneman1-1/+1
* 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
2009-01-29s3: Add a new SMB_VFS_GET_ALLOC_SIZE vfs operationTim Prouty1-4/+4
This allows module implementors to customize what allocation size is returned to the client.
2009-01-04s3: Remove a few unnecessary checks from the streams depot module and fix to ↵Tim Prouty1-12/+18
work with NTRENAME Handling of error codes when renaming a file to a stream and a stream to a file is now done in rename_internals_fsp. The NTRENAME stream path only passes in the stream name, so the new base can now be different from the old base.
2008-12-01s3:streams_depot: add an option to disable the xattr checksStefan Metzmacher1-4/+18
streams_depot:check_valid=no is useful when the filesystem has no xattr support and files are only published via samba. metze
2008-12-01s3:streams_depot: fix valgrind bug lp_parm_const_string() doesn't talloc the ↵Stefan Metzmacher1-1/+0
default value metze
2008-12-01s3:streams_depot: add support for stream renamesStefan Metzmacher1-0/+74
metze
2008-12-01s3:streams_depot: map 'file::$DATA' to just 'file'Stefan Metzmacher1-1/+12
metze
2008-11-21Fix a C90 error.Jeremy Allison1-2/+3
Jeremy.
2008-11-16Fix bug 5901: Default for streams_depot locationTAKAHASHI Motonobu1-1/+9
2008-07-18Change the directory parameter in streams_depot to become consistentVolker Lendecke1-1/+1
This is not built by default and not documented in 3.2.0, so I doubt this will break any setups :-) (cherry picked from commit ca2dfb372cfd9096407fca67a6b65bceda6f72b6) (This used to be commit 9393cdda97a886f4bdd187d76461724edeec9ed3)
2008-01-21Add SMB_VFS_FS_CAPABILITIESVolker Lendecke1-10/+3
It turns out that this is a necessary operation, separate from statvfs. statvfs can fail during tcon, so conn->fs_capabilities would never see that we support streams on a particular share. James, can you check that I got the darwin variant right? Thanks! (This used to be commit 3ad798d803b3b023533bb48e6993885f22b96095)
2008-01-19vfs_streams_depotVolker Lendecke1-0/+648
Store streams in a file each. Not 100% finished, and not built by default. (This used to be commit 5f5fc72b01c8e8fc096375c7cb4a97186c387259)