summaryrefslogtreecommitdiff
path: root/source3/libsmb/smb_share_modes.c
AgeCommit message (Collapse)AuthorFilesLines
2011-01-29s3: Remove an unneeded checkVolker Lendecke1-1/+1
In many other places we already assume that if asprintf returns !=-1 then the result is allocated. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Jan 29 15:00:09 CET 2011 on sn-devel-104
2011-01-26From Metze - make sure we're using the same string length for the hash.Jeremy Allison1-1/+1
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Jan 26 18:32:15 CET 2011 on sn-devel-104
2011-01-25Fix bug #7863 - Unlink may unlink wrong file when hardlinks are involved.Jeremy Allison1-5/+4
Do this by keeping a linked list of delete on close tokens, one for each filename that identifies a path to the dev/inode. Use the jenkins hash of the pathname to identify the correct token.
2011-01-25Add name_hash into the share mode entry struct (as yet only use for renames ↵Jeremy Allison1-4/+32
to identify a specific path).
2010-09-27Change to using TDB_INCOMPATIBLE_HASH (the jenkins hash) on allJeremy Allison1-1/+1
TDB_CLEAR_IF_FIRST tdb's. For tdb's like gencache where we open without CLEAR_IF_FIRST and then with CLEAR_IF_FIRST if corrupt this is still safe to use as if opening an existing tdb the new hash will be ignored - it's only used on creating a new tdb not opening an old one. Jeremy.
2009-02-19s3: Add extid to the dev/inode pairTim Prouty1-12/+27
This extends the file_id struct to add an additional generic uint64_t field: extid. For backwards compatibility with dev/inodes stored in xattr_tdbs and acl_tdbs, the ext id is ignored for these databases. This patch should cause no functional change on systems that don't use SMB_VFS_FILE_ID_CREATE to set the extid. Existing code that uses the smb_share_mode library will need to be updated to be compatibile with the new extid.
2009-01-01Remove a global variableVolker Lendecke1-13/+20
2009-01-01fix some nonempty blank linesVolker Lendecke1-5/+5
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-1/+1
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-10r23798: updated old Temple Place FSF addresses to new URLAndrew Tridgell1-2/+1
(This used to be commit c676a971142d7176fd5dbf21405fca14515a0a76)
2007-10-10r23790: LGPLv3+ conversion for our LGPLv2+ library codeAndrew Tridgell1-1/+1
(This used to be commit 1b78cace504f60c0f525765fbf59d9cc6506cd4d)
2007-10-10r23183: Check in a change made by Tridge:Volker Lendecke1-6/+6
This replaces the internal explicit dev/ino file id representation by a "struct file_id". This is necessary as cluster file systems and NFS don't necessarily assign the same device number to the shared file system. With this structure in place we can now easily add different schemes to map a file to a unique 64-bit device node. Jeremy, you might note that I did not change the external interface of smb_share_modes.c. Volker (This used to be commit 9b10dbbd5de8813fc15ebbb6be9b18010ffe8139)
2007-10-10r22736: Start to merge the low-hanging fruit from the now 7000-line cluster ↵Volker Lendecke1-5/+5
patch. This changes "struct process_id" to "struct server_id", keeping both is just too much hassle. No functional change (I hope ;-)) Volker (This used to be commit 0ad4b1226c9d91b72136310d3bbb640d2c5d67b8)
2007-10-10r22154: Make struct smbdb_ctx an opaque pointer so users of the APIJeremy Allison1-0/+5
don't need to have tdb.h. Jeremy. (This used to be commit 512542c90a78006bda3470eed7fb6d3f6e708eed)
2007-10-10r22012: Ensure we use the same technique to pull the share modeJeremy Allison1-19/+21
data out that locking/locking.c does. Jeremy. (This used to be commit 1fec4da6d6267289bf93f930de4cb5e21c450e15)
2007-10-10r22009: change TDB_DATA from char * to unsigned char *Stefan Metzmacher1-7/+7
and fix all compiler warnings in the users metze (This used to be commit 3a28443079c141a6ce8182c65b56ca210e34f37f)
2007-10-10r21191: Add in the POSIX open/mkdir/unlink calls.Jeremy Allison1-0/+1
Move more error code returns to NTSTATUS. Client test code to follow... See if this passes the build-farm before I add it into 3.0.25. Jeremy. (This used to be commit 83dbbdff345fa9e427c9579183f4380004bf3dd7)
2007-10-10r20883: W00t! I now understand how "delete on close" reallyJeremy Allison1-1/+0
works - even with the strange "initial delete on close" semantics. The "initial delete on close" flag isn't committed to the share mode db until the handle is closed, and is discarded if any real "delete on close" was set. This allows me to remove the "initial_delete_on_close" flag from the share db, and move it into a BOOL in files_struct. Warning ! You must do a make clean after this. Cope with the wrinkle in directory delete on close which is done differently from files. We now pass all Samba4 smbtortute BASE-DELETE tests except for the one checking that files can't be created in a directory which has the delete on close set (possibly expensive to fix). Jeremy. (This used to be commit f2df77a1497958c1ea791f1d2f4446b5fc3389b3)
2007-10-10r20269: merge -r20264:20267 from SAMBA_3_0_24Herb Lewis1-0/+4
more no previous prototype warnings (This used to be commit 41be182f78762372ae13759ede5d2bd40a71d7f5)
2007-10-10r17363: Some C++ warningsVolker Lendecke1-5/+8
(This used to be commit fd82f185a2e0f94bfb75f4eee072556ad94bf27d)
2007-10-10r16435: Add in the uid info that Jerry needs into theJeremy Allison1-0/+1
share_mode struct. Allows us to know the unix uid of the opener of the file/directory. Needed for info level queries on open files. Jeremy. (This used to be commit d929323d6f513902381369d77bcd7b714346d713)
2007-10-10r13331: No I didn't have to change the interface version...Jeremy Allison1-22/+0
Jeremy. (This used to be commit 2aed5b36409e05ac25b4492669f47d50be988f2c)
2007-10-10r13329: Fix libsmbsharemodes.so to work with the stored delete token.Jeremy Allison1-15/+23
Less trouble than I thought plus it didn't need an interface change (thank goodness !). Jeremy. (This used to be commit dbe2572d1c713f46b0d1d0c405f88456c9336297)
2007-10-10r13274: Fix for bug #3467. Not a show stopper.Jeremy Allison1-0/+2
jason qian <jason@infrant.com> was a *fantastic* help in tracking this down. Jeremy. (This used to be commit 9f4a9c70fa232047868e5d8a3f132a2dd6bfee82)
2007-10-10r12203: Add the share path into the sharemode db. This involvesJeremy Allison1-4/+33
revving the minor version number for libsmbsharemodes (we now have a new _ex interface that takes the share path as well as the filename). Needed for #3303. Some code written by SATOH Fumiyasu <fumiya@samba.gr.jp> included in the changes to locking/locking.c. The smbstatus output is a bit of a mess and needs overhauling... Jeremy. (This used to be commit 9d93af713f8520ca506730dd32aa2b994937eaba)
2007-10-10r11379: Remove external dependencies from sharemodes library.Jeremy Allison1-4/+20
Jeremy. (This used to be commit 7fb05872612c9e1816ac24d25a020073e3b41950)
2007-10-10r10656: BIG merge from trunk. Features not copied overGerald Carter1-41/+52
* \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck) (This used to be commit 939c3cb5d78e3a2236209b296aa8aba8bdce32d3)
2007-10-10r10217: Remember to exit correctly when we find a matching entry to change.Jeremy Allison1-1/+2
Jeremy. (This used to be commit 142c84eb31a4f2577d5f4bb0f541440d84eb607f)
2007-10-10r10215: Fix several memory corruption bugs now we're testing this.Jeremy Allison1-33/+37
Jeremy. (This used to be commit 3d1207aaf66bafd84935b21dbe1a0fd8efeb661d)
2007-10-10r10204: I love valgrind :-). Found stupid missing parantheses :-).Jeremy Allison1-1/+1
Jeremy. (This used to be commit b406a202128c1ba9800784ab8c571584b37c746b)
2007-10-10r10150: Fix from Steve Williams <steve@celineandsteve.com> to make the argsJeremy Allison1-2/+2
consistent (uint64_t). Jeremy. (This used to be commit 08de7261720f7bfd72396ea7c9777dc0734c4593)
2007-10-10r10135: Remove external dependencies for libsmbsharemodes.soJeremy Allison1-10/+11
Jeremy. (This used to be commit 2521ae826f1a0344c882090832646d56f248488f)
2007-10-10r10054: Actually use the given db path (:-)Jeremy Allison1-1/+5
Jeremy. (This used to be commit ac7cf320dfa2fd980188e72c9b8baa726c5cdaa1)
2007-10-10r10042: Add in external LGPL library for accessing the share mode db. AllowJeremy Allison1-0/+452
others to examine & test. May not end up here eventually... Jeremy. (This used to be commit 7cc70ae63399eacd55bd0bf51ac2c7b004d761bf)