summaryrefslogtreecommitdiff
path: root/source3/smbd/vfs.c
AgeCommit message (Collapse)AuthorFilesLines
2003-09-09sync 3.0 into HEAD for the last timeGerald Carter1-3/+3
(This used to be commit c17a7dc9a190156a069da3e861c18fd3f81224ad)
2003-07-16trying to get HEAD building again. If you want the codeGerald Carter1-358/+225
prior to this merge, checkout HEAD_PRE_3_0_0_BETA_3_MERGE (This used to be commit adb98e7b7cd0f025b52c570e4034eebf4047b1ad)
2003-05-01Use ints for the version numbers in the smb_register_*() functions (patch by ↵Jelmer Vernooij1-1/+1
metze) (This used to be commit 3895571eeef81db7ce4c71e85b0be5c235b16efd)
2003-04-28Use NTSTATUS as return value for smb_register_*() functions and init_module()Jelmer Vernooij1-11/+12
function. Patch by metze with some minor modifications. (This used to be commit f4576757d1d52a8f1b96894c869bb76450003fd1)
2003-04-22another lost merge from 3.0; my faultGerald Carter1-2/+2
(This used to be commit 2e5e68617345beca4d1cab27d64944ebd42e899b)
2003-04-02Add staticJelmer Vernooij1-1/+1
(This used to be commit 674d0ca5d84b64be395fbeff773c8dd8aeb1518c)
2003-03-31Fix vfs to work with P_LIST-ed lp_vfsobj() -- the traversal is reversed. ↵Alexander Bokovoy1-3/+5
Based on patch from Metze (This used to be commit 2a86ef78282d33e16007d50095614713189ce4b5)
2003-03-31- Support absolute paths in vfs and charset modulesJelmer Vernooij1-11/+18
- Fix typo in Makefile.in - Fix compatibility with older vfs modules (from patch by metze) - Build some modules shared by default and some static (and fall back to static when dlopen() is not available) (This used to be commit aa36f462d95f8a3a3a81a89c210b98a6f9fd295f)
2003-03-31Success is not a level-0 issue...Andrew Bartlett1-1/+1
Andrew Bartlett (This used to be commit 54e736e6f46a8db6db64a1025daa33fffcbde799)
2003-03-28Allow the new modules system to function with builtin vfs modules.Andrew Bartlett1-1/+1
If we don't have a vfs path set, just pass the original file name. In future, we need to seperate the default path as a seperate paramater. Andrew Bartlett (This used to be commit 93c91a2e9d325a4b2d092e144e63f743e6e049bc)
2003-03-27Put backwards compatibility support for old modules in a seperate functionJelmer Vernooij1-45/+58
(This used to be commit 2dd00078eec736797e65f69ad00297068e57cd9a)
2003-03-27Use the new modules system in VFS. If a module can't be loaded with theJelmer Vernooij1-33/+110
new modules system, we still fall back to the old system. (This used to be commit cebe8d8b424f10006f2f791a8f086c6c8a7f5d57)
2003-03-15Clean up the VFS module loading logic by making the parameter an P_LIST,Andrew Bartlett1-40/+34
rather than a runtime-parsed string. Andrew Bartlett (This used to be commit 3465cd6cd92c39c018979b5a82acbddca0927623)
2003-03-03Const warning fixes.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 3ad62ebe26d8c6b82f8618eea11d104b3ab0ec18)
2003-02-02untest fix for wide links parameter bug.Simo Sorce1-2/+65
it work properly on 2.2 and the patch apply so I think it should be ok. (This used to be commit 36b2f6c9320fe46a1b5d2c4e90117b7839c35f21)
2003-01-06Fix a segfault when we don't correctly load a VFS module (don't keep it inAndrew Bartlett1-0/+6
the loaded list on error). Also change some of the error returns, becouse NT_STATUS_UNSUCCESSFUL gives a most useless error message on the client. As for which error, my logic is that a share without a valid VFS module is not a valid share, and therefore should return the same error as a non-existant share. Andrew Bartlett (This used to be commit 41178afdbd2b3de94cf272ce32764a1947e73ea8)
2003-01-02BIG patch...Andrew Bartlett1-1/+1
This patch makes Samba compile cleanly with -Wwrite-strings. - That is, all string literals are marked as 'const'. These strings are always read only, this just marks them as such for passing to other functions. What is most supprising is that I didn't need to change more than a few lines of code (all in 'net', which got a small cleanup of net.h and extern variables). The rest is just adding a lot of 'const'. As far as I can tell, I have not added any new warnings - apart from making all of tdbutil.c's function const (so they warn for adding that const string to struct). Andrew Bartlett (This used to be commit 92a777d0eaa4fb3a1c7835816f93c6bdd456816d)
2002-12-04Fix for 64 bit issues with oplocks and allocation size.Jeremy Allison1-8/+13
Jeremy. (This used to be commit 4a9c995e50b24e6ee6ec58c46da32100a8197724)
2002-10-23First cut of new ACL mapping code from Andreas Gruenbacher <agruen@suse.de>.Jeremy Allison1-0/+3
This is not 100% the same as what SuSE shipped in their Samba, there is a crash bug fix, a race condition fix, and a few logic changes I'd like to discuss with Andreas. Added Andreas to (C) notices for posix_acls.c Jeremy. (This used to be commit a81d700ae9c82d4b7ea631ab7862162a2ed3d512)
2002-09-17Actually use sendfile if selected.Jeremy Allison1-0/+3
Jeremy. (This used to be commit 5881f0a22633ed9fb73e6cd788d0751c4db6cd32)
2002-09-06patch from metze: add a 'vfs' debug classAndrew Bartlett1-0/+4
(This used to be commit 601b56e04fddd9ddfb9be5b0a625d6d279df7f4c)
2002-08-18A new utility to test VFS system and modulesSimo Sorce1-1/+1
Just now it is acommandline tool like smbclient and rpcclient that is able to perform operations on the file system passing through the vfs layer It is not complete yet, some functions have simply faked up data, but module loading works yet and basic operations too. Thanks to Eric Lorimer for helping out with the initial setup. Simo. (This used to be commit 42ae5eb82657d4905bdaf247286f95599380afbb)
2002-07-30always include the (void) for void fns ...Andrew Tridgell1-1/+1
(This used to be commit deff1f96232b328fb5f5bb49a23eb4cda11fd330)
2002-07-30OK!Simo Sorce1-36/+111
Finally the cascaded VFS patch is in. Testing is very welcome, specially with layered multiple vfs modules. A big thank to Alexander Bokovoy for his work and patience :) Simo. (This used to be commit 56283601afe1836dafe0580532f014e29593c463)
2002-07-01used findstatic.pl to make some variables static and remove some deadAndrew Tridgell1-3/+3
code (This used to be commit 91ad9041e9507d36eb3f40c23c5d4df61f139ef0)
2002-05-17Get the sco boxes compiling again - use the sys_ intefaces for all the dl*Andrew Bartlett1-1/+1
funcitons. (This used to be commit c37c1e39253d9d21f8ab38ab8d24f7e787008596)
2002-03-27Removed HAVE_LIBDL from most places (except system.c). Added checks forJeremy Allison1-228/+194
dlopen & friends into configure.in. This should help building on *BSD where dl*** calls are in libc. Jeremy (This used to be commit ac1baba35d7a399bf800ced49a4384e39955e3eb)
2002-03-19Sync up vfs changes from 2.2.x.Jeremy Allison1-24/+28
Jeremy. (This used to be commit ad1e858d8e72adf924ff435eab8da3e60842e2e6)
2002-03-12Missing comma from systems that have ACLs.Jim McDonough1-1/+1
(This used to be commit 96e4282dca757e8621d23a54fb7203c93d2d41fc)
2002-03-12Added POSIX ACL layer into the vfs.Jeremy Allison1-1/+24
Jeremy. (This used to be commit 7d59445b6962547a8938928a9371651a09e26516)
2002-01-30Removed version number from file header.Tim Potter1-2/+1
Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2002-01-20Attempt to fix bugs in write cache code (yes I know it's going away :-).Jeremy Allison1-0/+2
Jeremy. (This used to be commit ccda82b457b11ec683f404c9059b02c1214a0fd1)
2002-01-10Getting ready to add UNIX extensions in HEAD also.Jeremy Allison1-0/+2
Jeremy (This used to be commit 6210d4aa196c944e47076e316980f76ac9c6b02d)
2002-01-04Re-wrote the guts of the rename_internals code to cope with a reportedJeremy Allison1-3/+20
bug (renaming name -> name was failing, on W2K it succeeds). Simplified the common case, did a lot of work to ensure NT error codes are correctly reported back to client. Jeremy. (This used to be commit e6b27f3d8069ae304baaebe09341c58d46b05fe4)
2001-11-12Don't check space on every extend if strict allocate not set.Jeremy Allison1-5/+3
Jeremy (This used to be commit 9391efb38ef1847ed2c3b2734c1177830d64a247)
2001-11-12Fixed allocation bug in database prog. Some format fixes.Jeremy Allison1-43/+28
Jeremy. (This used to be commit 9ff6b0c20cc88ef0bcd62a596fcb96f898b5b29d)
2001-11-07Added debug in truncate, fixed warning with gcc3.Jeremy Allison1-0/+1
Jeremy. (This used to be commit 970ec14b4ba1ccf66820384ced8442e1878c09cd)
2001-10-24Made default vfs ops static so we can use this symbol in actual modules.Tim Potter1-1/+1
(This used to be commit 398ced6eef7e52441ddc59fef70e4a50a96a73b7)
2001-10-18Renamed vfs_init() to smbd_vfs_init() to allow vfs modules to compile.Tim Potter1-3/+3
(This used to be commit 7c3542ba8764be48b88255dd7f73ea6d87be10ac)
2001-10-02Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter1-2/+0
(This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
2001-09-17move to SAFE_FREE()Simo Sorce1-1/+1
(This used to be commit a95943fde0ad89ae3f2deca2f7ba9cb5ab612b74)
2001-09-04Merge of transfer file code from 2.2, fix for readbraw.Jeremy Allison1-80/+16
Jeremy. (This used to be commit c05e79453655abb67fd47a2d3dba88b4c5377e35)
2001-08-24get rid of compiler warningsHerb Lewis1-1/+1
(This used to be commit 0768991d04ea03e774ca8662c9cae5e1951b88e0)
2001-08-07Correctly report amount written in debug when allocation space.Jeremy Allison1-1/+1
Jeremy. (This used to be commit d1e7cf6073f2dcb91ec468f5f249610dd9f1623a)
2001-08-06Fix for getting allocate_file_space to return the correct errno.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 298595e8cb0ac4f5b5ad9a522cca79d030d7e0fc)
2001-08-04Extra debug to see what errno is on write fail.Jeremy Allison1-0/+2
Jeremy. (This used to be commit 352a02bf5c1b3ab9db92f86fd22f7a781a2c2996)
2001-08-01Added "strict allocate" per share parameter. This causes actual on-disk ↵Jeremy Allison1-2/+79
allocation to be done. Without it just does the ftruncate. Jeremy. (This used to be commit 0b052f103e82369088bc30724b86d8892c395cdb)
2001-07-06Wrapped dlerror() in the same way as the other dlxxx() calls.Jeremy Allison1-1/+1
Jeremy. (This used to be commit ed5a1f70c6d155788b62e9e6e8c5d97a5ca0858d)
2001-07-04strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell1-1/+1
can't redefine them. damn. (This used to be commit c41fc06376d1a2b83690612304e85010b5e5f3cf)
2001-07-04The big character set handling changeover!Andrew Tridgell1-163/+39
This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation. (This used to be commit debb471267960e56005a741817ebd227ecfc512a)