summaryrefslogtreecommitdiff
path: root/examples/VFS
AgeCommit message (Collapse)AuthorFilesLines
2011-12-13s3: Fix examples/VFS buildVolker Lendecke3-3/+3
With other builds in the include path, examples get the includes.h wrong Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Dec 13 23:40:37 CET 2011 on sn-devel-104
2011-12-12vfs: Make function pointer names consistent. They all end in _fnRichard Sharpe3-229/+229
Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Mon Dec 12 04:58:40 CET 2011 on sn-devel-104
2011-11-17Improve configure.in so it can be used outside the Samba source tree.Richard Sharpe1-2/+3
Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Thu Nov 17 07:00:38 CET 2011 on sn-devel-104
2011-10-11s3-waf: make sure we build example vfs modules with --enable-developer.Günther Deschner1-0/+25
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Oct 11 21:22:55 CEST 2011 on sn-devel-104
2011-10-11Fix the VFS for fsctl.Jeremy Allison2-0/+39
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Oct 11 19:49:22 CEST 2011 on sn-devel-104
2011-10-08examples/VFS: add skel_get_dfs_referrals()Stefan Metzmacher2-0/+14
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Oct 8 11:29:18 CEST 2011 on sn-devel-104
2011-10-08examples/VFS: fix names in skel_opaque.cStefan Metzmacher1-3/+3
metze
2011-10-08examples/VFS: fix a typo in the READMEMichael Adam1-1/+1
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Sat Oct 8 01:42:33 CEST 2011 on sn-devel-104
2011-07-06examples/VFS: try to fix the build on openbsd, adding alternative spellings ↵Michael Adam1-2/+3
of autoconf/header The host "samba-amd64" on the build farm running openbsd 4.8 broke. Taking over the additional spellings of autoconf and autoheader from the source3/autogen.sh script should fix it.
2011-06-30examples/VFS: add include path for s3's autoconf config.hMichael Adam1-0/+1
2011-06-30examples/VFS: fix skel_transparent.c in reference to shadow_copy changesBjörn Baumbach1-1/+2
Signed-off-by: Michael Adam <obnox@samba.org>
2011-06-30examples/VFS: fix skel_opaque.c in reference to shadow_copy changesBjörn Baumbach1-1/+2
Signed-off-by: Michael Adam <obnox@samba.org>
2011-06-30examples/VFS: fix shadow_copy_test.c in reference to shadow_copy changesBjörn Baumbach1-3/+10
Signed-off-by: Michael Adam <obnox@samba.org>
2011-06-09s3-talloc Change TALLOC_ZERO_ARRAY() to talloc_zero_array()Andrew Bartlett1-1/+1
Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_ARRAY isn't standard talloc.
2011-06-01Remove the char * argument from the SMB_VFS_GETWD() call. Now alwaysJeremy Allison2-3/+3
returns malloc'ed memory. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Jun 1 04:06:12 CEST 2011 on sn-devel-104
2011-04-21s3-vfs: rename open function to open_fn.Günther Deschner2-2/+2
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-07Fix the examples/VFS build.Jeremy Allison2-7/+7
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Mar 7 15:11:25 CET 2011 on sn-devel-104
2011-03-07Fix examples/VFS to use correct prototypes for is_offline() and set_offline().Jeremy Allison2-6/+6
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Mar 7 13:39:17 CET 2011 on sn-devel-104
2011-02-09Add fdopendir to the VFS. We will use this to reuse a directory fd already ↵Jeremy Allison2-0/+12
open by NtCreateX. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Feb 9 00:55:22 CET 2011 on sn-devel-104
2010-12-18Rename vfs operation posix_fallocate to just fallocate and add the ↵Jeremy Allison2-5/+7
vfs_fallocate_mode parameter. It turns out we need the fallocate operations to be able to both allocate and extend filesize, and to allocate and not extend filesize, and posix_fallocate can only do the former. So by defining the vfs op as posix_fallocate we lose the opportunity to use any underlying syscalls (like Linux fallocate) that can do the latter as well. We don't currently use the non-extending filesize call, but now I've changed the vfs op definition we can in the future. For the moment simply map the fallocate op onto posix_fallocate for the VFS_FALLOCATE_EXTEND_SIZE case and return ENOSYS for the VFS_FALLOCATE_KEEP_SIZE case. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Dec 18 08:59:27 CET 2010 on sn-devel-104
2010-12-02Move posix_fallocate into the VFS where it belongs.Jeremy Allison2-0/+16
Jeremy.
2010-11-20Move the uglyness of #ifdef REALPATH_TAKES_NULL into the vfs_defaultJeremy Allison2-3/+3
module, change the signature of VFS_REALPATH to always return a malloc'ed string. Needed to make some privileges work I plan on doing shortly easier to code. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Nov 20 02:15:50 CET 2010 on sn-devel-104
2010-03-05Fix for bug #7189 - Open txt files with notepad on samba shares creates problem.Jeremy Allison2-0/+3
Ensure we don't use any of the create_options for Samba private use. Add a new parameter to the VFS_CREATE call (private_flags) which is only used internally. Renumber NTCREATEX_OPTIONS_PRIVATE_DENY_DOS and NTCREATEX_OPTIONS_PRIVATE_DENY_FCB to match the S4 code). Rev. the VFS interface to version 28. Jeremy.
2009-12-07examples: Fix the build of the example VFS modules.Karolin Seeger2-10/+13
Karolin
2009-09-25Fix the opaque sample module for the new VFS interface.Jeremy Allison1-216/+389
Jeremy.
2009-09-25Update the advice for the new VFS system.Jeremy Allison1-4/+3
Jeremy.
2009-09-25Remove unused static fn.Jeremy Allison1-5/+0
Jeremy.
2009-09-25Rewrite vfs_transparent example for the new VFS changes.Jeremy Allison1-131/+291
Jeremy.
2009-09-25Fix vfs module sample for new interface.Jeremy Allison1-6/+5
Jeremy.
2009-07-18VFS examples: Update copy of config.{guess,sub}.Jelmer Vernooij2-75/+282
2009-07-06s3: Plumb smb_filename through SMB_VFS_NTIMESTim Prouty2-4/+8
2009-07-06s3: Plumb smb_filename through SMB_VFS_UNLINKTim Prouty2-4/+6
2009-07-06s3: Plumb smb_filename through SMB_VFS_RENAMETim Prouty2-4/+8
2009-06-24s3: Plumb smb_filename through SMB_VFS_STAT and SMB_VFS_LSTATTim Prouty2-8/+8
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 Prouty2-4/+6
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-02-24s3:example/VFS: fix the buildStefan Metzmacher2-4/+8
metze
2009-02-19s3: Modify SMB_VFS_FILE_ID_CREATE to take a stat structTim Prouty2-3/+3
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-05examples/VFS: fix the configure and make with the new directory layoutStefan Metzmacher4-15/+17
metze
2009-01-23Extend NTIMES to allow setting create_timetodd stecher2-4/+4
1) Add in smb_file_time struct to clarify code and make room for createtime. 2) Get and set create time from SMB messages. 3) Fixup existing VFS modules + examples Some OS'es allow for the setting of the birthtime through kernel interfaces. This value is generically used for Windows createtime, but is not settable in the code today.
2008-10-07Update vfs version as I've added a const to the security_descriptor paramter ↵Jeremy Allison2-2/+2
in fset_nt_acl(). Need to watch the build farm to make sure I haven't broken the AIX or Solaris ACL modules. Jeremy.
2008-08-14Fix bug #5692 - Core dump in full_audit.so.Jeremy Allison1-1/+1
There were some function mismatches in the various GET_NT_ACL modules (some places the fsp parameter has not been removed). Jeremy. (This used to be commit 221cc5e21eb27cdad51f34ec6832467a7bd89213)
2008-05-08Yay ! Remove a VFS entry. Removed the set_nt_acl() call,Jeremy Allison2-15/+0
this can only be done via fset_nt_acl() using an open file/directory handle. I'd like to do the same with get_nt_acl() but am concerned about efficiency problems with "hide unreadable/hide unwritable" when doing a directory listing (this would mean opening every file in the dir on list). Moving closer to rationalizing the ACL model and maybe moving the POSIX calls into a posix_acl VFS module rather than having them as first class citizens of the VFS. Jeremy. (This used to be commit f487f742cb903a06fbf2be006ddc9ce9063339ed)
2008-04-21Remove redundant parameter fd from SMB_VFS_CLOSE().Michael Adam2-4/+4
Now all those redundant fd's have vanished from the VFS API. Michael (This used to be commit 14294535512a7f191c5008e622b6708e417854ae)
2008-01-17Remove is_remotestorage() call from VFS. We already have statvfs() there to ↵Alexander Bokovoy2-7/+0
handle FS capabilities. As discussed with Volker, it is better to calculate FS capabilities at connection time. We already do this with help of VFS statvfs() call which allows to fill-in system-specific attributes including FS capabilities. So just re-use it if you want to represent additional capabilities in your modules. The only caution is that you need to call underlying statvfs() call to actually get system-specific capabilities (and other fields) added. Then add module-specific ones. (This used to be commit e342ca0d931f9a5c8ec9e472dc9c63f1fe012b3a)
2008-01-17Rework of VFS is_offline() function to only return boolean offline/online ↵Alexander Bokovoy2-4/+4
result for a file. This makes sense as upper levels are only taking returned result of 0 (no error) into consideration when deciding whether to mark file offline/online as returned from is_offline. That means that we simply can move the decision down to VFS module and clean up upper levels so that they always see only file status. If there is an error when trying to identify file status, then VFS module could decide what to return (offline or online) by itself -- after all, it ought to have system-specific knowledge anyway. (This used to be commit 75cc08661473cce62756fa062071bb2bc1fb39ec)
2008-01-16Fix the mess that ab just made of the new VFS code.Jeremy Allison2-2/+54
NEEDS MORE TESTING ! Jeremy. (This used to be commit bcc94aed6f03211866aa85753a90fece87846ba9)
2008-01-11Combine fsp and tofd to tofsp in SMB_VFS_RECVFILE().Michael Adam2-4/+4
Michael (This used to be commit 3958abffaf2866c69ad9e13ec345364fde5c78bb)
2008-01-11Combine fsp and fromfd to fromfsp in SMB_VFS_SENDFILE().Michael Adam2-4/+4
Michael (This used to be commit a52cfb7d777157c93c9dc26c67f457be592dd537)
2008-01-10Remove redundant parameter fd from SMB_VFS_WRITE().Michael Adam2-4/+4
Michael (This used to be commit c8ae7d095a2a6a7eac920a68ca7244e3a423e1b1)
2008-01-10Remove redundant parameter fd from SMB_VFS_READ().Michael Adam2-4/+4
Michael (This used to be commit a8fc2ddad8d5f7c6c00cb36c74a32a02d69d1d04)