summaryrefslogtreecommitdiffstats
path: root/source/modules
Commit message (Collapse)AuthorAgeFilesLines
* Revert "SMB traffic analyzer vfs module from Holger Hetterich ↵Karolin Seeger2008-11-171-352/+0
| | | | | | <hhetter@novell.com>" This reverts commit aeabc475d8abf9a820b4846a30cf92cc253bc939.
* Revert "Fix the new vfs_smb_traffic_analyzer build for static links"Karolin Seeger2008-11-171-2/+2
| | | | This reverts commit f64bcae4ff2bb1a9db603c1f38e1e4fa2e5148bc.
* Revert "Use IPv4/v6 independent calls. Change safe_strcpy/cat to strlcpy/cat ↵Karolin Seeger2008-11-171-97/+84
| | | | | | (this" This reverts commit caa0f1131872f82c1a346f701830544b372e4317.
* Revert "Restructure the module so it connects to the remote data sink"Karolin Seeger2008-11-171-156/+150
| | | | This reverts commit 1bf75ac9781c60be5a7b5899bc42aa1d198091d9.
* Revert "Convert to allocated strings. Use write_data(), not send as this ↵Karolin Seeger2008-11-171-42/+58
| | | | | | doesn't correctly" This reverts commit 747f7a5647851290f6a3968477a8749e1134777c.
* Revert "Turn the socket connections into a refcounted list - in the common ↵Karolin Seeger2008-11-171-94/+44
| | | | | | case there'll now only be one socket per smbd." This reverts commit 63603373628901fcb6a816d9ac9b5340dd8d8662.
* Revert "Fixed build warning "passing arg from incompatible pointer type""Karolin Seeger2008-11-171-3/+1
| | | | This reverts commit ed955214133c264865d2f6ca532349f0c1ea8d4b.
* Revert "Make use of ZERO_STRUCT (the first memset was actually wrong)"Karolin Seeger2008-11-171-3/+3
| | | | This reverts commit 69de2806465742ea6f1ea96d75d2cb3be6b84284.
* Revert "Enable optional anonymization of user names,"Karolin Seeger2008-11-171-20/+1
| | | | This reverts commit e9359e6e8f692c693aad95f9a241c41cc23aa02a.
* Enable optional anonymization of user names,Holger Hetterich2008-10-151-1/+20
| | | | | | if the configuration parameter anonymization_prefix is defined in smb.conf, and use the prefix given there. (cherry picked from commit 86a621a1a3e08bad8a0b276d8444f1f69a500385)
* Make use of ZERO_STRUCT (the first memset was actually wrong)Volker Lendecke2008-10-151-3/+3
| | | | (cherry picked from commit e42477caece1a2e861aa0698d2e06847819f0b0d)
* Fixed build warning "passing arg from incompatible pointer type"Tim Prouty2008-10-151-1/+3
| | | | | | | | | | The fix explicitly makes the conversion from timeval to time_t using the existing time utility functions. Compiling modules/vfs_smb_traffic_analyzer.c modules/vfs_smb_traffic_analyzer.c: In function `smb_traffic_analyzer_send_data': modules/vfs_smb_traffic_analyzer.c:173: warning: passing arg 1 of `localtime' from incompatible pointer type (cherry picked from commit 22852666ddf3e77404373042ceecb19747ae25cd)
* Turn the socket connections into a refcounted list - in the common case ↵Jeremy Allison2008-10-061-44/+94
| | | | | | | | | | there'll now only be one socket per smbd. Changed the format of the wire data to (a) include a version number (V1) as the first element. (b) removed the ";)" at the end an replaced it with a "\n". Receiver can change back if needed, and now receiver can just log "as-is" to a text file (making testing easier). Added my (C). Sorry Holger, but I've changed quite a bit now. Jeremy. (cherry picked from commit 7ea95c19305a2fb6efc95acc4e96f083e31f6c6f)
* Convert to allocated strings. Use write_data(), not send as this doesn't ↵Jeremy Allison2008-10-061-58/+42
| | | | | | | | correctly deal with EINTR. Jim and Holger please check this still works. Jeremy. (cherry picked from commit dc1ff1a9c07edf7e3e649b256667704ad59aafbd)
* Restructure the module so it connects to the remote data sinkJeremy Allison2008-10-061-150/+156
| | | | | | | | | on connect, and closes the socket on client disconnect. This should make it much more efficient. Store the remote fd in a private data pointer off the handle. Finally we need to remove the fstrings and convert to allocated buffer storage. Jeremy. (cherry picked from commit 2f7884babcefcb04d1f9a877dde41e11b0f7b825)
* Use IPv4/v6 independent calls. Change safe_strcpy/cat to strlcpy/cat (thisJeremy Allison2008-10-061-84/+97
| | | | | | | needs changing to talloc_sprintf) and fix file descriptor resource leaks in error paths. Jim and Holger please check ! Jeremy. (cherry picked from commit d55becbe492cf3c95ef45ebb2c123067a9297b4f)
* Fix the new vfs_smb_traffic_analyzer build for static linksJim McDonough2008-10-061-2/+2
| | | | (cherry picked from commit d36039acd8f1722ba76b5999d7fea4f046735817)
* SMB traffic analyzer vfs module from Holger Hetterich <hhetter@novell.com>Holger Hetterich2008-10-061-0/+352
| | | | | | | | | Used to gather data to feed to a database for live and historical analysis of usage per user, per share, etc. Helper apps to read the data still to come. This one still needs to be made ipv6 enabled (connection is made to the helper app). (cherry picked from commit baf49e5fcabd3682927fe19974c97bbae4be7379)
* When setting an NFSv4 ACL, map generic bitsVolker Lendecke2008-09-091-0/+4
| | | | | (cherry picked from commit dbe7a61be2beac50d1665e38ac374cefbbabec00) (cherry picked from commit c2faa48abce1d656527b89f601e084e3ba70e36d)
* fixed an errno handling bug that could lead to an infinite loopAndrew Tridgell2008-09-081-2/+2
| | | | | (cherry picked from commit 5ccdc58ce91ee40ca7171dd040191291aeb7fe02) (cherry picked from commit 1361caecb355047001f8a351ec2e6f10d7f0e741)
* fixed tsmsm_sendfile(). The logic was totally broken.Andrew Tridgell2008-09-081-4/+7
| | | | | (cherry picked from commit 794e48b809036871287df8416a2c669b7e26f216) (cherry picked from commit 3ce3f7f58402b98ce386bab1c40988e5ccd40d15)
* Fix bug #5692 - Core dump in full_audit.so.Jeremy Allison2008-08-153-5/+4
| | | | | | There were some function mismatches in the various GET_NT_ACL modules (some places the fsp parameter has not been removed). Jeremy. (cherry picked from commit 12b4ed7c3c10a6a29d108f6a83d961bf19751ca7)
* Fix the build of vfs_zfsacl.cVolker Lendecke2008-07-201-16/+1
| | | | (cherry picked from commit b83beeda44e1c8d485c2ad6bb8ee539cdcbe8bda)
* Change the directory parameter in streams_depot to become consistentVolker Lendecke2008-07-181-1/+1
| | | | | | This is not built by default and not documented in 3.2.0, so I doubt this will break any setups :-) (cherry picked from commit ca2dfb372cfd9096407fca67a6b65bceda6f72b6)
* Fix from Volodymyr Khomenko <Volodymyr.Khomenko@exanet.com>. Make ntimesJeremy Allison2008-07-161-2/+6
| | | | | | function more like POSIX and allow NULL arg. Help vfs developers. Jeremy. (cherry picked from commit a034ad5b28dc22b76ef91901306d5c4f9102178f)
* Add SMB_VFS_OP_RECVFILE to get it in sync with vfs.hLars Müller2008-07-061-0/+1
| | | | | | Fix "vfs_full_audit.c: name table not in sync with vfs.h" panic reported by Franz Sirl. (cherry picked from commit 567c6def08d91716c687ed43de0938e1556f26e2)
* AIX build fixes from William Jojo -- thanksVolker Lendecke2008-06-121-2/+2
| | | | (cherry picked from commit cb91a47576e820390bc62195702aaae93a2feba6)
* Add STREAMINFO op to vfs_full_auditVolker Lendecke2008-06-091-0/+27
| | | | | | Fix Coverity ID 552 and 553 (cherry picked from commit c46e10d2605b22d31675976e62e5ae61d73c8a0a) (cherry picked from commit 20aa14480e9ae6cea663c67fe9e2d1d3b6fafa7d)
* Remove redundant parameter fd from SMB_VFS_CLOSE().Michael Adam2008-05-077-20/+19
| | | | | | | Now all those redundant fd's have vanished from the VFS API. Michael (cherry picked from commit 14294535512a7f191c5008e622b6708e417854ae)
* Change fd_close_posix() to return int instead of NTSTATUS.Michael Adam2008-05-071-3/+2
| | | | | | | The errno is handed up through the VFS layer to the callers. Michael (cherry picked from commit d928e6648d61cf2d3c1b77db440efb835b729a84)
* Move the posix pending close functionality down into the VFS layer.Michael Adam2008-05-071-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 (cherry picked from commit 3cf56b124a2886c6260455bba4bf77d08e9a4f77)
* vfs_cacheprime: fix C++ warning - make implicit cast explicitMichael Adam2008-05-051-1/+1
| | | | | Michael (cherry picked from commit 04d671b8c9bd5bf811e6dbd6981f1874eb49740c)
* Use size_t for strlen return, not int. Karolin pleaseJeremy Allison2008-04-091-1/+1
| | | | | | pull. Jeremy. (cherry picked from commit f4a1fdaac0dd6b1b241fac9879416c8ad4403eff)
* Allow broader range of HSM systems in vfs_tsmsmAlexander Bokovoy2008-04-091-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. (cherry picked from commit 1faa97d5cc51277abbc6cb5c37d31c429bea04e4)
* Fix Coverity ID 450Volker Lendecke2008-03-271-1/+5
| | | | (cherry picked from commit 700cceb6940c95997cfef374cffd50729a35528a)
* Fix Coverity warningsVolker Lendecke2008-03-272-2/+10
| | | | | ID 449, 448, 447, 446, 445, 444, 443, 442, 441, 440, 439, 438, 437 (cherry picked from commit 0d50b4ee9068d04d1d9eb7786e08775d7ba16bc8)
* Fix Coverity IDs 553, 552Volker Lendecke2008-03-221-0/+4
| | | | (cherry picked from commit 1a0aed566b7e4fc75bf894aac6828bfa4152c3dc)
* Fix some warnings in the tsmsm moduleVolker Lendecke2008-03-221-4/+6
| | | | | Alexander, please check! (cherry picked from commit df574fd2ee58f008b93b06f4d78c85cb909cc92c)
* Need to close the /dev/zero fdVolker Lendecke2008-03-181-0/+2
| | | | (cherry picked from commit c2b2a9303d9c84ba4e059f13de9ccc401d08bd59)
* Respect FAMChanged -- attempt to fix bug 5307Volker Lendecke2008-03-061-0/+3
| | | | | Thanks to Ricardo Santos (cherry picked from commit 8ef57a34ebf24e577ba7bca57a5456c1f78a3659)
* 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
| | |