summaryrefslogtreecommitdiffstats
path: root/source/modules
Commit message (Collapse)AuthorAgeFilesLines
* Try and fix the build farm RAW-STREAMS errors. Ordering ofJeremy Allison2009-03-271-2/+2
| | | | | | | | modules shouldn't matter, so as vfs_streams_depot doesn't implement get/setxattrs then call into the full VFS stack at the top. Jeremy (cherry picked from commit a1d9b31a0c8a38dbfa94f578830d5d35695aff3b)
* Fix use of streams modules with CIFSFS client.Jeremy Allison2009-03-272-4/+25
| | | | | Jeremy. (cherry picked from commit 161dc96c1147f637b5ef78bb3f543f6d5e0618c6)
* Fix bug #6133 - Cannot delete non-ACL files on Solaris/ZFS/NFSv4 ACL filesystem.Jeremy Allison2009-03-271-1/+6
| | | | | | | | As the NFSv4 ACL mapping code doesn't map write directory into the DELETE_CHILD permission bit (which we require before allowing a delete) no one can delete files without an explicit DELETE_CHILD bit set on the directory. Add this mapping. Jeremy. (cherry picked from commit 44e0e830c4c413054bdb30a62629993c4391c492)
* Oops. Fix the build (don't use 3.3 references in 3.2 :-).Jeremy Allison2009-03-271-2/+1
| | | | | Jeremy. (cherry picked from commit a7a3f335e3b867ca6c8d75a53262b15d7c75d7b1)
* Enable total anonymization in vfs_smb_traffic_analyzer, by mappingHolger Hetterich2009-03-271-4/+16
| | | | | | | any user names to the one given by anonymize_prefix, without generating a hash number. This setting is optional and is compatible with the module configuration format of Samba 3.3. (cherry picked from commit 4b17cca0557a086c5722c221a6e282bad4a2b40a)
* Fix bug #6085 - In vfs_default.c change utime( ) call.Miguel Suarez2009-03-271-1/+1
| | | | (cherry picked from commit 16e9f1e2d4a1d391efdf8348fa7f57b2640a6bdb)
* Apply same logic fix for #4308 Excel save operation corrupts file ACLsJeremy Allison2009-01-281-46/+36
| | | | | | to NFSv4 ACL code as this uses the same flawed logic as posix_acls.c. Jeremy. (cherry picked from commit 7b994fc658ad175bc40af9e38a8f1b870276d980)
* s3:vfs_fileid: readd "fileid:algorithm" as option.Stefan Metzmacher2009-01-281-1/+7
| | | | | | | | | "fileid:mapping" is still supported as fallback. metze (cherry picked from commit 554a89df0cf6d9832778e2913f9fe50b78baeedc) (cherry picked from commit fe9ad21b8cb5286845350fe2280da2cbe2647bb7) (cherry picked from commit 3c56cd9f701254dec33aa60b6f6b3fa90a28557a)
* keep compatibility with v3-0-ctdb name for fileid:mapping optionAndrew Tridgell2009-01-281-1/+1
| | | | | (cherry picked from commit 2856d2e4a43fbcc6c8f8ac7b1613828170362861) (cherry picked from commit 174b595bb171c32be9079f9f691b415ac0fdc635)
* s3: Remove a few unnecessary checks from the streams depot module and fix to ↵Tim Prouty2009-01-281-12/+18
| | | | | | | | | | | work with NTRENAME Handling of error codes when renaming a file to a stream and a stream to a file is now done in rename_internals_fsp. The NTRENAME stream path only passes in the stream name, so the new base can now be different from the old base. (cherry picked from commit 2cca28b3e999a8886539b9a5dde267bb8a3a1db7)
* s3: Remove a few unnecessary checks from the streams xattr moduleTim Prouty2009-01-281-11/+0
| | | | | | | | | Handling of error codes when renaming a file to a stream and a stream to a file is now done in rename_internals_fsp. The NTRENAME stream path only passes in the stream name, so the new base can now be different from the old base. (cherry picked from commit 078c4fbab8a5be2e23acda1978fd6d6071898dd9)
* Remove "strict allocate = partial" code that got accidentally committed.Jeremy Allison2009-01-281-5/+1
| | | | | Jeremy. (cherry picked from commit ab0359a19986f744075bf861dd43626210c2ecf7)
* refresh sequence number as soon as possible when domain->sequence_number == ↵boyang2009-01-281-1/+5
| | | | | | -1 or domain->last_status is not ok. (cherry picked from commit 3954c6965240836a467d16f447197681b7396a31)
* Fix a bad memleak in vfs_full_auditVolker Lendecke2009-01-281-1/+4
| | | | (cherry picked from commit cc70e0f88328e36410089a81f41c5b33fef24a10)
* Fix bug #5990 - strict allocate should be checked before ftruncateJeremy Allison2009-01-281-0/+14
| | | | | | reported by and based on a patch by Yasuma Takeda <yasuma@osstech.co.jp>. Jeremy. (cherry picked from commit b995677f9895ba7fa9744b079ebc905713e59d40)
* Fix bug #5929 - vfs_prealloc does not build with option ↵Henning Henkel2008-12-091-1/+1
| | | | | | --with-cluster-support and GPFS (cherry picked from commit a1e4637922a565278cceac7b2fe95f82ad049f4a)
* s3:streams_xattr: fstat should do a stat on the base fileStefan Metzmacher2008-12-091-1/+1
| | | | | | | The behavior of stat and fstat should be the same. metze (cherry picked from commit 84e8fcd6703d57678c1ac7e5df67c03a626c0e6f)
* s3:streams_xattr: recheck fsp->fsp_name after a renameStefan Metzmacher2008-12-091-0/+65
| | | | | metze (cherry picked from commit 67788371cef51009295d1f85daf7f0328225f1f9)
* s3:streams_depot: add an option to disable the xattr checksStefan Metzmacher2008-12-091-4/+18
| | | | | | | | streams_depot:check_valid=no is useful when the filesystem has no xattr support and files are only published via samba. metze (cherry picked from commit f68f2b1f841daabebc7178e7d90891cfe4be6cf4)
* s3:streams_depot: fix valgrind bug lp_parm_const_string() doesn't talloc the ↵Stefan Metzmacher2008-12-091-1/+0
| | | | | | | default value metze (cherry picked from commit f609404489a37b80e2f7f10d0de7633766d159a9)
* s3:streams_depot: add support for stream renamesStefan Metzmacher2008-12-091-0/+74
| | | | | metze (cherry picked from commit 2babe18de37e1cf283a0a29e2df0b0f74744cea2)
* s3:streams_depot: map 'file::$DATA' to just 'file'Stefan Metzmacher2008-12-091-1/+12
| | | | | metze (cherry picked from commit 254ab3e074d51ad390aacd5a64e8c9e4f752dd7d)
* s3:streams_xattr: add support for renaming streamsStefan Metzmacher2008-12-091-1/+142
| | | | | metze (cherry picked from commit 8a60128ff7960f2f19055f8e320d1d58fd87c84f)
* vfs_tsmsm: fix potential segfault (freeing uninitialized buffer)Michael Adam2008-12-091-1/+1
| | | | | Michael (cherry picked from commit 75646900fc9327a1ff3353be4a4e52a429055a91)
* zfsacl: return is not a function.Michael Adam2008-12-091-3/+3
| | | | | Michael (cherry picked from commit 6017b3095b0eb0e5b855d5bf693c99645ff229b1)
* zfsacl: Prevent calling POSIX ACL vfs methods on zfs share.Nils Goroll2008-12-091-0/+83
| | | | | | | This is a proposed fix for Bugs #5135 and #5446. Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit 4b64ef5ea9554992eddba85a203cbe9397f8e839)
* Search for gpfs functions in both libgpfs_gpl.so an libgpfs.soMathias Dietz2008-12-091-47/+45
| | | | | | | | | | As of GPFS 3.2.1 PTF8 libgpfs will be available as GPL, so we don't need the special libgpfs_gpl lib anymore. For backwards compatibility with pre-PTF8 GPFS installations, still look there. (cherry picked from commit 61468186cece7370576a2d13992f9a523067e4be) Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit 93dd57627795b92b3d3f723a105271aead395dd1)
* Revert c76e4791d3ae4f180fba209c29bd3774c00858cf - "Fix the logic bug that ↵Jeremy Allison2008-12-092-35/+36
| | | | | | | caused us to run into kernel oplocks on an open for a stream inside a file with stream_xattr module. On opening the base_fsp we must break existing oplocks." as it broke make test. Jeremy. (cherry picked from commit 4c82a8dd2f6fae1ea1722108c7f64e6a1286df15)
* Fix the logic bug that caused us to run into kernel oplocks on an open for a ↵Jeremy Allison2008-12-091-34/+34
| | | | | | | stream inside a file with stream_xattr module. On opening the base_fsp we must break existing oplocks. Jeremy. (cherry picked from commit c76e4791d3ae4f180fba209c29bd3774c00858cf)
* Use fxattr calls whenever possible (trying to work around the strange Linux ↵Jeremy Allison2008-12-091-19/+51
| | | | | | | kernel oplock bug). Jeremy. (cherry picked from commit 89d6bd5bc5398fbec6fbfb797ea6f10ad036c205)
* Second part of the fix for bug #5903 - vfs_streams_xattr breaks contents of ↵Jeremy Allison2008-12-091-1/+60
| | | | | | | the file Jeremy. (cherry picked from commit d4481329438d27a23ded85f01f5cf06725221d0e)
* When clearing out vuid cache remember to set entries = 0.Jeremy Allison2008-12-091-0/+1
| | | | | Jeremy. (cherry picked from commit 1daad740c6f0e3914b691b3e9c57aaf68ba0ca01)
* Fix bug #5900 reported by monyo@samba.gr.jp - vfs_readonly.so does not work.Jeremy Allison2008-12-091-0/+8
| | | | | Jeremy. (cherry picked from commit 4cd70457781907edf6641696cc311915905c96fa)
* Fix bug 5901: Default for streams_depot locationTAKAHASHI Motonobu2008-12-091-1/+9
| | | | (cherry picked from commit a512cc80890a2183d5643d8324fb9dc13fca1e9e)
* Fix CID 606 - failed to return -1 after socket() fail.Jeremy Allison2008-12-091-0/+1
| | | | | Jeremy. (cherry picked from commit fb69ff191ded20f58054e398fc67227b63ecb673)
* Enable optional anonymization of user names,Holger Hetterich2008-12-091-1/+20
| | | | | | | if the configuration parameter anonymization_prefix is defined in smb.conf, and use the prefix given there. (cherry picked from commit 86a621a1a3e08bad8a0b276d8444f1f69a500385) (cherry picked from commit e9359e6e8f692c693aad95f9a241c41cc23aa02a)
* Make use of ZERO_STRUCT (the first memset was actually wrong)Volker Lendecke2008-12-091-3/+3
| | | | | (cherry picked from commit e42477caece1a2e861aa0698d2e06847819f0b0d) (cherry picked from commit 69de2806465742ea6f1ea96d75d2cb3be6b84284)
* Fixed build warning "passing arg from incompatible pointer type"Tim Prouty2008-12-091-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) (cherry picked from commit ed955214133c264865d2f6ca532349f0c1ea8d4b)
* Turn the socket connections into a refcounted list - in the common case ↵Jeremy Allison2008-12-091-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) (cherry picked from commit 63603373628901fcb6a816d9ac9b5340dd8d8662)
* Convert to allocated strings. Use write_data(), not send as this doesn't ↵Jeremy Allison2008-12-091-58/+42
| | | | | | | | | correctly deal with EINTR. Jim and Holger please check this still works. Jeremy. (cherry picked from commit dc1ff1a9c07edf7e3e649b256667704ad59aafbd) (cherry picked from commit 747f7a5647851290f6a3968477a8749e1134777c)
* Restructure the module so it connects to the remote data sinkJeremy Allison2008-12-091-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) (cherry picked from commit 1bf75ac9781c60be5a7b5899bc42aa1d198091d9)
* Use IPv4/v6 independent calls. Change safe_strcpy/cat to strlcpy/cat (thisJeremy Allison2008-12-091-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) (cherry picked from commit caa0f1131872f82c1a346f701830544b372e4317)
* Fix the new vfs_smb_traffic_analyzer build for static linksJim McDonough2008-12-091-2/+2
| | | | | (cherry picked from commit d36039acd8f1722ba76b5999d7fea4f046735817) (cherry picked from commit f64bcae4ff2bb1a9db603c1f38e1e4fa2e5148bc)
* SMB traffic analyzer vfs module from Holger Hetterich <hhetter@novell.com>Holger Hetterich2008-12-091-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) (cherry picked from commit aeabc475d8abf9a820b4846a30cf92cc253bc939)
* 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.