summaryrefslogtreecommitdiff
path: root/source3/modules
AgeCommit message (Collapse)AuthorFilesLines
2008-04-08Use size_t for strlen return, not int. Karolin pleaseJeremy Allison1-1/+1
pull. Jeremy. (This used to be commit f4a1fdaac0dd6b1b241fac9879416c8ad4403eff)
2008-04-08Allow broader range of HSM systems in vfs_tsmsmAlexander Bokovoy1-5/+31
Allow to specify value of DMAPI attribute returned during offline file checks, 'tsmsm: dmapi value'. Previously tsmsm module has supported only IBM TSM SM engine which reports file state by *existence* of a certain DMAPI attribute. Other HSM systems report a certain value as DMAPI request's result. Port from Tridge's v3-0-ctdb git tree. (This used to be commit 1faa97d5cc51277abbc6cb5c37d31c429bea04e4)
2008-03-23Fix Coverity ID 450Volker Lendecke1-1/+5
(This used to be commit 700cceb6940c95997cfef374cffd50729a35528a)
2008-03-23Fix Coverity warningsVolker Lendecke2-2/+10
ID 449, 448, 447, 446, 445, 444, 443, 442, 441, 440, 439, 438, 437 (This used to be commit 0d50b4ee9068d04d1d9eb7786e08775d7ba16bc8)
2008-03-21Fix Coverity IDs 553, 552Volker Lendecke1-0/+4
(This used to be commit 1a0aed566b7e4fc75bf894aac6828bfa4152c3dc)
2008-03-20Fix some warnings in the tsmsm moduleVolker Lendecke1-4/+6
Alexander, please check! (This used to be commit df574fd2ee58f008b93b06f4d78c85cb909cc92c)
2008-03-16Need to close the /dev/zero fdVolker Lendecke1-0/+2
(This used to be commit c2b2a9303d9c84ba4e059f13de9ccc401d08bd59)
2008-03-06Respect FAMChanged -- attempt to fix bug 5307Volker Lendecke1-0/+3
Thanks to Ricardo Santos (This used to be commit 8ef57a34ebf24e577ba7bca57a5456c1f78a3659)
2008-02-29Add vfs_aio_forkVolker Lendecke1-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 (This used to be commit b0e52cecf2009d4c7f29412dadf17910e54e4327)
2008-02-25Fix the build on OpenBSD: ENOTSUP is not always defined.Michael Adam1-0/+4
Michael (This used to be commit 2e4028162f3a93c677a57b96de8f0cb2f892e73b)
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-02-21Change option name.Karolin Seeger1-1/+1
xattr:tdb -> xattr_tdb:file (according to the other vfs option names) Karolin (This used to be commit a2230ccc1700af02f5a5caedd2e66e6f4c14bb5c)
2008-02-20From: David Disseldorp <ddiss@sgi.com>Jeremy Allison1-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 (This used to be commit d9b72282c63b57c8e54131306b2a3028a1ea41dc)
2008-01-29Fix typos and replace statvfs call with fs_capabilities()Alexander Bokovoy1-12/+7
(This used to be commit 863b5ed07aca0978aeaf919d7c51204a95ce03e0)
2008-01-29Merge DMAPI fixes from TridgeAlexander Bokovoy1-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. (This used to be commit 5efb57d904e25e68b09a567e260292439ad9c095)
2008-01-29Merge branch 'ctdb-merge' into dmapi-integrationAlexander Bokovoy1-41/+51
(This used to be commit 58dce4cdf277c8c68865185d9d8b4faea996dd3e)
2008-01-25Attempt to fix the build on OpenBSDVolker Lendecke1-1/+1
Thanks to metze for pointing this out (This used to be commit c94c04e3e6f6ae243a55534a76654755bff55651)
2008-01-24Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into ctdb-mergeAlexander Bokovoy5-6/+1423
(This used to be commit 42d06d41bf2e9fb094f6064dc04f549d880b5f8d)
2008-01-23strtok -> strtok_rVolker Lendecke1-1/+3
(This used to be commit fd34ce437057bb34cdc37f4b066e424000d36789)
2008-01-23Remove two unused variablesVolker Lendecke1-1/+0
(This used to be commit f12ac1ecedd6634d8ccc54d8fce8382514e3322f)
2008-01-22Hide streams from the EA APIVolker Lendecke1-8/+6
(This used to be commit e9bb3d5067b74a29beb778f85687829778e42b5b)
2008-01-21Attempt to fix the darwin buildVolker Lendecke1-4/+4
(This used to be commit 5b05e09daf18eaea5e86dfd607c8070228f7571b)
2008-01-21Add SMB_VFS_FS_CAPABILITIESVolker Lendecke3-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! (This used to be commit 3ad798d803b3b023533bb48e6993885f22b96095)
2008-01-20Fix some "set but never used" warningsVolker Lendecke1-0/+4
(This used to be commit 4a6dadc5178f4861e9c032321939db3b639734b5)
2008-01-20Fix valgrind errorsVolker Lendecke1-2/+2
(This used to be commit d7e6ec2258350c564053371361c8f1d7d0f775b1)
2008-01-20Do not use an unfinished fsp in streams_xattr_openVolker Lendecke1-1/+1
(This used to be commit 023b313d0d4ed3beb8d77177bc8141cadeb86658)
2008-01-20In streams_xattr_pwrite, base_fsp does not have an fdVolker Lendecke1-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. (This used to be commit b7022f8f7bf83c9c5e73e98d1477b7da766e8c5f)
2008-01-20Add some DEBUGVolker Lendecke2-0/+18
(This used to be commit 8db25aba63b1dffb0dfbc74012c7ebd0ce4d5682)
2008-01-20For pread/pwrite we need to do the setxattr on base_fspVolker Lendecke1-4/+4
(This used to be commit d481dddc81699aba79e48bca79bfb10e586b5cbb)
2008-01-20Really remove the _NEXT_ from vfs_xattr_tdb.cVolker Lendecke1-15/+20
This must have been lost somewhere in my patch-mangling (This used to be commit c1794375d1fa27d72ec32946bb4bd7b9f96e59fc)
2008-01-20Support XATTR_CREATE and XATTR_REPLACE in vfs_xattr_tdbVolker Lendecke1-0/+11
(This used to be commit 3509ee597f0977aadd4c70cfe8830a6aa95cd71f)
2008-01-20Complete the ea->xattr rename in vfs_xattr_tdbVolker Lendecke1-4/+5
(This used to be commit dac468216e7e103b6897f33ec3608412f77265cf)
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)
2008-01-19vfs_streams_xattr moduleVolker Lendecke1-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. (This used to be commit 83a805220e52742119546c76a054d50582e33a24)
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-19Fix error return in xattr_tdb_load_attrsVolker Lendecke1-1/+1
(This used to be commit 64e54ea8f76fe57193955aabc1459fe635233aca)
2008-01-18Merge DMAPI fixes from CTDB SambaAlexander Bokovoy1-41/+51
(This used to be commit cf1f90ad7a79dbe5926018790bb50d4e3b36cc7b)
2008-01-17Fix two uninitialized variables in vfs_hpuxacl.cVolker Lendecke1-2/+2
Thanks to David Leonard <David.Leonard@quest.com>, this fixes bug 5208. Volker (This used to be commit a3b36c3cb0fe5f3e78c200290afa59829934f496)
2008-01-17Remove is_remotestorage() call from VFS. We already have statvfs() there to ↵Alexander Bokovoy2-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. (This used to be commit e342ca0d931f9a5c8ec9e472dc9c63f1fe012b3a)
2008-01-17Rework of VFS is_offline() function to only return boolean offline/online ↵Alexander Bokovoy2-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. (This used to be commit 75cc08661473cce62756fa062071bb2bc1fb39ec)
2008-01-17Fix more VFS API mixup with offline filesAlexander Bokovoy1-5/+4
I'm sorry for this mess. :-( (This used to be commit e1f5a8f10795831d3c7902d9803c9571c8ac811a)
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-16Fix an uninitialized variable warningVolker Lendecke1-1/+1
(This used to be commit dcb7fb2c0d8e4b798b36e8caf480d198f3e08d00)
2008-01-16Fix some C++ warningsVolker Lendecke1-2/+2
(This used to be commit 625241c4773ae5c80dd0cb0c07a86aff633c1ede)
2008-01-16Add offline storage support with Tivoli Storage Manager Space ManagerAlexander Bokovoy1-0/+338
Signed-off-by: Alexander Bokovoy <ab@samba.org>(This used to be commit d7752449f38747d59c93869656a5f7c02ebdf084)
2008-01-16Merge a variant of Shadow Copy module for exposing snapshots to windows ↵Alexander Bokovoy1-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>(This used to be commit 10c2ae1efd799b44255ce82c3bb0c7c9df0ec634)
2008-01-16Support GPFS prealloc interfaceAlexander Bokovoy1-0/+8
Signed-off-by: Alexander Bokovoy <ab@samba.org>(This used to be commit c26e355533e473c4386d0e6d651637e71d4231dc)
2008-01-16Merge latest fixes to vfs_gpfs and NFS4 ACLs from Samba 3.0 CTDB branch ↵Alexander Bokovoy4-97/+423
(from http://samba.org/~tridge/3_0-ctdb) Signed-off-by: Alexander Bokovoy <ab@samba.org>(This used to be commit 1daad835cbfb4615a8fe7a241f4d578f7e69f214)
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-15ea_tdb->xattr_tdb also inside the module itselfVolker Lendecke1-98/+99
(This used to be commit 642424b3779dd33cd2b5049789aa16e678438bb9)