summaryrefslogtreecommitdiffstats
path: root/source/include/vfs.h
Commit message (Collapse)AuthorAgeFilesLines
* Add SMB_VFS_FS_CAPABILITIESVolker Lendecke2008-01-211-0/+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!
* Add the STREAMINFO vfs callVolker Lendecke2008-01-191-0/+10
| | | | | | Based on jpeach's work, modified the streaminfo prototype Make use of it in trans2.c together with marshall_stream_info()
* The remote storage op is goneVolker Lendecke2008-01-191-1/+1
| | | | Alexander, I think this ok...
* Remove is_remotestorage() call from VFS. We already have statvfs() there to ↵Alexander Bokovoy2008-01-171-4/+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.
* Rework of VFS is_offline() function to only return boolean offline/online ↵Alexander Bokovoy2008-01-171-1/+1
| | | | | | | | | | | | | | 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.
* Fix the mess that ab just made of the new VFS code.Jeremy Allison2008-01-161-26/+24
| | | | | NEEDS MORE TESTING ! Jeremy.
* Add support for offline files support, remote storage, and Async I/O force ↵Alexander Bokovoy2008-01-161-0/+19
| | | | | | | | | | | | | | | | operations to VFS Offline files support and remote storage are for allowing communication with backup and archiving tools that mark files moved to a tape library as offline. We translate this info into corresponding CIFS offline file attribute and mark an exported volume as remote storage. Async I/O force is to allow selective redirection of I/O operations to asynchronous processing in case it is viable at VFS module discretion. It is needed for proper handling of offline files as performing regular I/O on offline file will block smbd. Signed-off-by: Alexander Bokovoy <ab@samba.org>
* Combine fsp and tofd to tofsp in SMB_VFS_RECVFILE().Michael Adam2008-01-111-1/+2
| | | | Michael
* Combine fsp and fromfd to fromfsp in SMB_VFS_SENDFILE().Michael Adam2008-01-111-1/+2
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_WRITE().Michael Adam2008-01-101-1/+2
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_READ().Michael Adam2008-01-101-1/+2
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_AIO_CANCEL().Michael Adam2008-01-081-1/+2
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_FSETXATTR().Michael Adam2008-01-081-1/+2
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_FREMOVEXATTR().Michael Adam2008-01-081-1/+2
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_FLISTXATTR().Michael Adam2008-01-081-1/+2
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_FGETXATTR().Michael Adam2008-01-081-1/+2
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_SYS_ACL_SET_FD().Michael Adam2008-01-081-1/+2
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_FCHMOD_ACL().Michael Adam2008-01-081-1/+2
| | | | Michael
* Add comment.Michael Adam2008-01-081-0/+2
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_SYS_ACL_GET_FD().Michael Adam2008-01-071-1/+1
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_GETLOCK().Michael Adam2008-01-071-1/+3
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_LINUX_SETLEASE().Michael Adam2008-01-071-1/+1
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_KERNEL_FLOCK().Michael Adam2008-01-071-1/+2
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_LOCK().Michael Adam2008-01-071-1/+2
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_FTRUNCATE().Michael Adam2008-01-071-1/+2
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_FCHOWN().Michael Adam2008-01-071-1/+2
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_FCHMOD().Michael Adam2008-01-071-1/+2
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_FSTAT().Michael Adam2008-01-071-1/+3
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_FSYNC().Michael Adam2008-01-071-1/+2
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_LSEEK().Michael Adam2008-01-071-1/+2
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_PWRITE().Michael Adam2008-01-071-1/+2
| | | | Michael
* Remove unneeded parameter fd from SMB_VFS_PREAD().Michael Adam2008-01-071-1/+2
| | | | Michael
* Remove superfluous parameter fd from SMB_VFS_FSET_NT_ACL().Michael Adam2008-01-061-1/+1
| | | | Michael
* Wrap lines for readability.Michael Adam2008-01-061-2/+10
| | | | Michael
* Remove superfluous fd parameter from SMB_VFS_FGET_NT_ACL().Michael Adam2008-01-061-1/+2
| | | | Michael
* Add filesystem capabilities bitmask to statfs info.James Peach2007-12-191-0/+2
| | | | | | This patch adds Darwin support for the Samba statfs VFS call. It also adds a filesystem capabilities bitmask to the information returned by the call.
* Expose per-fsp extension talloc context.James Peach2007-12-191-0/+9
| | | | | This patch supplements the fsp extension API with an operation to retrieve the malloc zone pointer for that fsp.
* Change the prototype of the vfs function get_nt_acl().Michael Adam2007-12-191-1/+3
| | | | | | | | | | | | | | Up to now, get_nt_acl() took a files_struct pointer (fsp) and a file name. All the underlying functions should need and now do need (after the previous preparatory work), is a connection_struct and a file name. The connection_struct is already there in the vfs_handle passed to the vfs functions. So the files_struct argument can be eliminated. This eliminates the need of calling open_file_stat in a couple of places to produce the fsp needed. Michael
* Make [f]get_nt_acl return NTSTATUSVolker Lendecke2007-11-131-2/+10
|
* Add in the recvfile entry to the VFS layer with a defaultJeremy Allison2007-10-291-0/+4
| | | | | implementation. Needed for the zero-copy write code. Jeremy.
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-4/+5
| | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy.
* r25399: Excise uint - > uint32 (where appropriate) or unsigned int.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r24120: add a file_id_create() hook into the VFS layerStefan Metzmacher2007-10-101-1/+5
| | | | | | | it's needed for some cluster filesystems to overload this function. metze
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
|
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r23620: Convert set_nt_acl to return NTSTATUS. Also fix the chownJeremy Allison2007-10-101-2/+3
| | | | | | | | | return to correctly return NT_STATUS_INVALID_OWNER if it should be disallowed. Matches better what W2K3R3 does. NFSv4 ACL module owners, please examine these changes. Jeremy.
* r23105: Add lchown to the vfs layer. We need this in the POSIX code.Jeremy Allison2007-10-101-1/+5
| | | | Jeremy.
* r21757: Add SMB_VFS_CHFLAGS operation.James Peach2007-10-101-1/+5
|
* r21714: Change the VFS interface to use struct timespecJeremy Allison2007-10-101-4/+6
| | | | | | | | | | for utimes - change the call to ntimes. This preserves nsec timestamps we get from stat (if the system supports it) and only maps back down to usec or sec resolution on time set. Looks bigger than it is as I had to move lots of internal code from using time_t and struct utimebuf to struct timespec. Jeremy.
* r21324: Add linux setlease to the vfs layer. Next round, as Volker points out,Jim McDonough2007-10-101-1/+5
| | | | | | | | | it should be abstracted a little higher up so other os'es can have an entry, but it will take a bit more work. Thanks to Chetan Shringarpure and Mathias Dietz. I didn't increment the vfs number again because the kernel change notify stuff hasn't been released yet anyway.