summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_default.c
AgeCommit message (Collapse)AuthorFilesLines
2009-02-03Fix bug #6085 - In vfs_default.c change utime( ) call.Miguel Suarez1-1/+1
2009-01-29s3: Add a new SMB_VFS_GET_ALLOC_SIZE vfs operationTim Prouty1-1/+36
This allows module implementors to customize what allocation size is returned to the client.
2009-01-23Extend NTIMES to allow setting create_timetodd stecher1-7/+8
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-12-31Rename parent_dirname_talloc() to parent_dirname()Volker Lendecke1-1/+1
2008-12-31Use parent_dirname_talloc instead of parent_dirname in vfswrap_mkdirVolker Lendecke1-1/+6
2008-12-26Try to fix the build by fixing some typos in the vfs codeKai Blin1-3/+3
2008-12-25Fix bug #5990 - strict allocate should be checked before ftruncateJeremy Allison1-0/+14
reported by and based on a patch by Yasuma Takeda <yasuma@osstech.co.jp>. Jeremy.
2008-12-10Pass the get_real_filename operation through the VFSVolker Lendecke1-0/+12
This is done to help file systems that can tell us about the real upper/lower case combination given a case-insensitive file name. The sample I will soon push is the gpfs module (recent gpfs has a get_real_filename function), others might have a similar function to help alleviate the 1million files in a single directory problem. Jeremy, please comment! Thanks, Volker
2008-12-03s3: Change SMB_VFS_CREATE_FILE to take a create_file_flags argumentTim Prouty1-2/+2
This replaces the is_dos_path bool with a more future-proof argument. The next step is to plumb INTERNAL_OPEN_ONLY through this flag instead of overridding the oplock_request.
2008-12-03s3: Add new "is_dos_path" argument to SMB_VFS_CREATE_FILETim Prouty1-1/+2
Now unix paths can be differentiated from windows paths so the underlying create_file implementations can convert paths correctly.
2008-12-03s3: Add SMB_VFS_CREATE_FILE to the vfs layerTim Prouty1-0/+27
Modify all callers of create_file to go through SMB_VFS_CREATE_FILE
2008-11-01Move sys_realpath() to libreplace.Jelmer Vernooij1-1/+1
2008-11-01Move sys_lchown() to libreplace.Jelmer Vernooij1-1/+1
2008-11-01Move sys_symlink() to libreplace.Jelmer Vernooij1-2/+2
2008-11-01Move sys_link to libreplace.Jelmer Vernooij1-1/+1
2008-11-01Use 'regular' chown, libreplace will provide (dummy) replacement if necessary.Jelmer Vernooij1-1/+1
2008-10-14Use {u,}int64_t instead of SMB_BIG_{U,}INT.Jelmer Vernooij1-3/+3
2008-10-07Update vfs version as I've added a const to the security_descriptor paramter ↵Jeremy Allison1-1/+1
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-07-15Fix from Volodymyr Khomenko <Volodymyr.Khomenko@exanet.com>. Make ntimesJeremy Allison1-2/+6
function more like POSIX and allow NULL arg. Help vfs developers. Jeremy. (This used to be commit 613f2849ad2dc25fe2e5f8a76d69797b5b302bb9)
2008-05-08Yay ! Remove a VFS entry. Removed the set_nt_acl() call,Jeremy Allison1-12/+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 Adam1-1/+1
Now all those redundant fd's have vanished from the VFS API. Michael (This used to be commit 14294535512a7f191c5008e622b6708e417854ae)
2008-04-21Change fd_close_posix() to return int instead of NTSTATUS.Michael Adam1-3/+2
The errno is handed up through the VFS layer to the callers. Michael (This used to be commit d928e6648d61cf2d3c1b77db440efb835b729a84)
2008-04-21Move the posix pending close functionality down into the VFS layer.Michael Adam1-4/+4
This hides the pending close fds from the outside. Call order of SMB_VFS_CLOSE is reversed. Originally, it was: fd_close -> fd_close_posix -> SMB_VFS_CLOSE -> close And now it is: fd_close -> SMB_VFS_CLOSE -> fd_close_posix -> close This is in preparation of removing the fd parameter from the SMB_VFS_CLOSE function. But it is also the right place for the pending close calls anyways. Michael (This used to be commit 3cf56b124a2886c6260455bba4bf77d08e9a4f77)
2008-02-25Correctly check return of rename(2)Volker Lendecke1-1/+1
Bug 5279 -- Thanks to Max Matveev (This used to be commit 71641f04d4e9a41775e898f2e4ac3c8792783cd3)
2008-01-23Remove two unused variablesVolker Lendecke1-1/+0
(This used to be commit f12ac1ecedd6634d8ccc54d8fce8382514e3322f)
2008-01-21Attempt to fix the darwin buildVolker Lendecke1-4/+4
(This used to be commit 5b05e09daf18eaea5e86dfd607c8070228f7571b)
2008-01-21Add SMB_VFS_FS_CAPABILITIESVolker Lendecke1-0/+13
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-19Add the STREAMINFO vfs callVolker Lendecke1-0/+59
Based on jpeach's work, modified the streaminfo prototype Make use of it in trans2.c together with marshall_stream_info() (This used to be commit c34d729c7c0600a8f11bf7e489a634a4e37fe88e)
2008-01-17Remove is_remotestorage() call from VFS. We already have statvfs() there to ↵Alexander Bokovoy1-9/+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 Bokovoy1-6/+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 Allison1-12/+19
NEEDS MORE TESTING ! Jeremy. (This used to be commit bcc94aed6f03211866aa85753a90fece87846ba9)
2008-01-16Add support for offline files support, remote storage, and Async I/O force ↵Alexander Bokovoy1-0/+42
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>(This used to be commit 875208724e39564fe81385dfe36e6c963e79e101)
2008-01-11Combine fsp and tofd to tofsp in SMB_VFS_RECVFILE().Michael Adam1-3/+2
Michael (This used to be commit 3958abffaf2866c69ad9e13ec345364fde5c78bb)
2008-01-11Combine fsp and fromfd to fromfsp in SMB_VFS_SENDFILE().Michael Adam1-2/+2
Michael (This used to be commit a52cfb7d777157c93c9dc26c67f457be592dd537)
2008-01-10Remove redundant parameter fd from SMB_VFS_WRITE().Michael Adam1-6/+6
Michael (This used to be commit c8ae7d095a2a6a7eac920a68ca7244e3a423e1b1)
2008-01-10Remove redundant parameter fd from SMB_VFS_READ().Michael Adam1-5/+5
Michael (This used to be commit a8fc2ddad8d5f7c6c00cb36c74a32a02d69d1d04)
2008-01-08Remove redundant parameter fd from SMB_VFS_AIO_CANCEL().Michael Adam1-2/+2
Michael (This used to be commit 3c997ae0002d4c50e8899600c17ddf74ac61f6f0)
2008-01-08Remove redundant parameter fd from SMB_VFS_FSETXATTR().Michael Adam1-2/+2
Michael (This used to be commit 0bd2643463a9160c8a1c7e1c2f8cca7b89060e09)
2008-01-08Remove redundant parameter fd from SMB_VFS_FREMOVEXATTR().Michael Adam1-2/+2
Michael (This used to be commit bfc3b5a27f707d3e4b8d5d66192891e22365fbb3)
2008-01-08Remove redundant parameter fd from SMB_VFS_FLISTXATTR().Michael Adam1-2/+2
Michael (This used to be commit 167649b3b8bc293f8434ffc9fb5f80463e4e75be)
2008-01-08Remove redundant parameter fd from SMB_VFS_FGETXATTR().Michael Adam1-2/+2
Michael (This used to be commit 2cb739a82dc6bb194d60718cc74b26ee7c1c46a7)
2008-01-08Remove redundant parameter fd from SMB_VFS_SYS_ACL_SET_FD().Michael Adam1-2/+2
Michael (This used to be commit 9296e93588c0e795cae770765050247ac1474a74)
2008-01-08Remove redundant parameter fd from SMB_VFS_FCHMOD_ACL().Michael Adam1-3/+3
Michael (This used to be commit 7b201c177b3668f54751ba17d6a0b53ed913e7f7)
2008-01-07Remove redundant parameter fd from SMB_VFS_SYS_ACL_GET_FD().Michael Adam1-2/+2
Michael (This used to be commit 42663e8736e1a3dfb57e0aafdcbf5fec880da779)
2008-01-07Remove redundant parameter fd from SMB_VFS_GETLOCK().Michael Adam1-2/+2
Michael (This used to be commit ee5a20becdcdb20d7012732b324c6938fab44f67)
2008-01-07Remove redundant parameter fd from SMB_VFS_LINUX_SETLEASE().Michael Adam1-3/+3
Michael (This used to be commit 8880eb82f16d561a4023ec8426f8ea35c579a7a6)
2008-01-07Remove redundant parameter fd from SMB_VFS_KERNEL_FLOCK().Michael Adam1-2/+2
Michael (This used to be commit 195c519377c2fdc655e25760b52bc0694b8dda81)
2008-01-07Remove redundant parameter fd from SMB_VFS_LOCK().Michael Adam1-2/+2
Michael (This used to be commit 4f3ab2c406072e0b43581057e7e785e8ad454cfa)
2008-01-07Fix the build: Fix caller of strict_allocate_ftruncate().Michael Adam1-1/+1
Michael (This used to be commit 20691272a1e2562ab8c6143978d324af0334f871)
2008-01-07Remove redundant parameter fd from SMB_VFS_FTRUNCATE().Michael Adam1-6/+6
Michael (This used to be commit 2ad66050a0452b8e7e08b1e7a01efa00c72fd451)