summaryrefslogtreecommitdiffstats
path: root/source/modules
Commit message (Collapse)AuthorAgeFilesLines
* Add vfs_aio_forkVolker Lendecke2008-02-291-0/+728
| | | | | | | | | | | | | This is used for two purposes: First, I'm using it to test the async I/O code. In the forked process it is pretty easy to delay a reply for a random amount of time. See the BUILD_FARM_HACKS snippet. Second, there are systems around that claim to have Posix AIO but which is broken. This might be some help for those systems. Also add tests how to pass file descriptors
* Fix the build on OpenBSD: ENOTSUP is not always defined.Michael Adam2008-02-251-0/+4
| | | | Michael
* Correctly check return of rename(2)Volker Lendecke2008-02-251-1/+1
| | | | Bug 5279 -- Thanks to Max Matveev
* Change option name.Karolin Seeger2008-02-211-1/+1
| | | | | | xattr:tdb -> xattr_tdb:file (according to the other vfs option names) Karolin
* From: David Disseldorp <ddiss@sgi.com>Jeremy Allison2008-02-201-2/+1
| | | | | | | | | The vfs_prealloc module makes use of the now redundant fd parameter for SMB_VFS_FTRUNCATE(), instead get the fd from the files_struct. Patch for Samba 3.2 Test branch below. Cheers, David D
* Fix typos and replace statvfs call with fs_capabilities()Alexander Bokovoy2008-01-291-12/+7
|
* Merge DMAPI fixes from TridgeAlexander Bokovoy2008-01-291-3/+22
| | | | | | Support cases when existing DMAPI session is stale. In this case we are creating another one. The code differs from 3-0_ctdb branch in that we fail when it is not possible to create more sessions and pretend that file is offline. This allows to escape endless loop in vfs_tsmsm.c.
* Merge branch 'ctdb-merge' into dmapi-integrationAlexander Bokovoy2008-01-291-41/+51
|\
| * Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into ctdb-mergeAlexander Bokovoy2008-01-245-6/+1423
| |\
| * | Merge DMAPI fixes from CTDB SambaAlexander Bokovoy2008-01-181-41/+51
| | |
* | | Attempt to fix the build on OpenBSDVolker Lendecke2008-01-251-1/+1
| |/ |/| | | | | Thanks to metze for pointing this out
* | strtok -> strtok_rVolker Lendecke2008-01-231-1/+3
| |
* | Remove two unused variablesVolker Lendecke2008-01-231-1/+0
| |
* | Hide streams from the EA APIVolker Lendecke2008-01-221-8/+6
| |
* | Attempt to fix the darwin buildVolker Lendecke2008-01-211-4/+4
| |
* | Add SMB_VFS_FS_CAPABILITIESVolker Lendecke2008-01-213-20/+19
| | | | | | | | | | | | | | | | 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!
* | Fix some "set but never used" warningsVolker Lendecke2008-01-201-0/+4
| |
* | Fix valgrind errorsVolker Lendecke2008-01-201-2/+2
| |
* | Do not use an unfinished fsp in streams_xattr_openVolker Lendecke2008-01-201-1/+1
| |
* | In streams_xattr_pwrite, base_fsp does not have an fdVolker Lendecke2008-01-201-1/+2
| | | | | | | | | | | | These bugs haven't shown up when I did my tests with real xattrs, not with the xattr_tdb backend. It worked because the stream fsp does has the base file as fd.
* | Add some DEBUGVolker Lendecke2008-01-202-0/+18
| |
* | For pread/pwrite we need to do the setxattr on base_fspVolker Lendecke2008-01-201-4/+4
| |
* | Really remove the _NEXT_ from vfs_xattr_tdb.cVolker Lendecke2008-01-201-15/+20
| | | | | | | | This must have been lost somewhere in my patch-mangling
* | Support XATTR_CREATE and XATTR_REPLACE in vfs_xattr_tdbVolker Lendecke2008-01-201-0/+11
| |
* | Complete the ea->xattr rename in vfs_xattr_tdbVolker Lendecke2008-01-201-4/+5
| |
* | vfs_streams_depotVolker Lendecke2008-01-191-0/+648
| | | | | | | | Store streams in a file each. Not 100% finished, and not built by default.
* | vfs_streams_xattr moduleVolker Lendecke2008-01-191-0/+672
| | | | | | | | | | Store streams in posix xattrs. A kludge, as xattrs are limited in many ways, but it might be a help for some situations.
* | Add the STREAMINFO vfs callVolker Lendecke2008-01-191-0/+59
| | | | | | | | | | | | Based on jpeach's work, modified the streaminfo prototype Make use of it in trans2.c together with marshall_stream_info()
* | Fix error return in xattr_tdb_load_attrsVolker Lendecke2008-01-191-1/+1
|/
* Fix two uninitialized variables in vfs_hpuxacl.cVolker Lendecke2008-01-171-2/+2
| | | | | | Thanks to David Leonard <David.Leonard@quest.com>, this fixes bug 5208. Volker
* Remove is_remotestorage() call from VFS. We already have statvfs() there to ↵Alexander Bokovoy2008-01-172-15/+12
| | | | | | | | | | | | 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-172-15/+11
| | | | | | | | | | | | | | 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 more VFS API mixup with offline filesAlexander Bokovoy2008-01-171-5/+4
| | | | I'm sorry for this mess. :-(
* Fix the mess that ab just made of the new VFS code.Jeremy Allison2008-01-161-12/+19
| | | | | NEEDS MORE TESTING ! Jeremy.
* Fix an uninitialized variable warningVolker Lendecke2008-01-161-1/+1
|
* Fix some C++ warningsVolker Lendecke2008-01-161-2/+2
|
* Add offline storage support with Tivoli Storage Manager Space ManagerAlexander Bokovoy2008-01-161-0/+338
| | | Signed-off-by: Alexander Bokovoy <ab@samba.org>
* Merge a variant of Shadow Copy module for exposing snapshots to windows ↵Alexander Bokovoy2008-01-161-0/+637
| | | | | | | | | | | | | | | | | | clients as shadow copies from Samba 3.0 CTDB This is a 2nd implemetation of a shadow copy module for exposing snapshots to windows clients as shadow copies. This version has the following features: 1) you don't need to populate your shares with symlinks to the snapshots. This can be very important when you have thousands of shares, or use [homes] 2) the inode number of the files is altered so it is different from the original. This allows the 'restore' button to work without a sharing violation Signed-off-by: Alexander Bokovoy <ab@samba.org>
* Support GPFS prealloc interfaceAlexander Bokovoy2008-01-161-0/+8
| | | Signed-off-by: Alexander Bokovoy <ab@samba.org>
* Merge latest fixes to vfs_gpfs and NFS4 ACLs from Samba 3.0 CTDB branch ↵Alexander Bokovoy2008-01-164-97/+423
| | | | | (from http://samba.org/~tridge/3_0-ctdb) Signed-off-by: Alexander Bokovoy <ab@samba.org>
* Add support for offline files support, remote storage, and Async I/O force ↵Alexander Bokovoy2008-01-161-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>
* ea_tdb->xattr_tdb also inside the module itselfVolker Lendecke2008-01-151-98/+99
|
* rename vfs_ea_tdb to vfs_xattr_tdbVolker Lendecke2008-01-151-0/+0
|
* Implement vfs_ea_tdbVolker Lendecke2008-01-151-0/+736
| | | | | | | | | | | | | | This is an option for file systems that do not implement xattrs: in lockdir/eas.tdb an array of xatts per inode is stored. It can not solve the problem that xattrs might reappear if a posix-level process deletes a file and happens to re-create it under the same name. On file systems with birthtime we might have a chance to detect this, but not with standard posix. A future version might put relief on file systems that do have xattrs but where these are severely limited in size/speed/whatever: We can put a simple marker as a native xattr, but the xattrs proper are stored in the tdb. Volker
* Combine fsp and tofd to tofsp in SMB_VFS_RECVFILE().Michael Adam2008-01-112-8/+6
| | | | Michael
* Remove now redundant parameter fd from prime_cache().Michael Adam2008-01-111-5/+4
| | | | Michael
* Combine fsp and fromfd to fromfsp in SMB_VFS_SENDFILE().Michael Adam2008-01-114-19/+15
| | | | Michael
* Fix the build of the cacheprime VFS module after API changes.Michael Adam2008-01-101-4/+3
| | | | | | Sorry, that had escaped my attention. Michael
* Remove redundant parameter fd from SMB_VFS_WRITE().Michael Adam2008-01-103-11/+10
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_READ().Michael Adam2008-01-103-9/+9
| | | | Michael