summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_xattr_tdb.c
AgeCommit message (Collapse)AuthorFilesLines
2012-08-16s3-vfs: Continue to make vfs_xattr_tdb non-recursiveAndrew Bartlett1-24/+50
We now always use _NEXT_ VFS calls, even to build the file id. Andrew Bartlett
2012-08-15s3-vfs: Set errno in xattr emulationAndrew Bartlett1-0/+2
The caller may check this errno. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Aug 15 18:05:33 CEST 2012 on sn-devel-104
2012-08-15s3-vfs: Avoid loops in VFS modules: call _NEXT functions in xattr emulationAndrew Bartlett1-6/+6
We need to call the next module in the stack otherwise we will loop if the stat call is in turn implemented in terms of extended attribute lookup. Andrew Bartlett
2012-08-15s3-vfs: ensure we strictly free the talloc_stackframeAndrew Bartlett1-1/+1
We must do this when leaving the function or else in development, we will panic. Andrew Bartlett
2012-07-18source3/modules/vfs_xattr_tdb.c: fix stackframe leakRusty Russell1-1/+3
xattr_tdb_getxattr() doesn't free its stackframe. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-06-02s3: Same fix as 8576256, this time for fgetxattrVolker Lendecke1-1/+1
Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Jun 2 02:12:31 CEST 2012 on sn-devel-104
2012-05-21s3: Fix vfs_xattr_tdb.cVolker Lendecke1-1/+1
"size" is the maximum buffer, only copy what we actually got. For me, this fixes valgrind errors in the DIR1 test that might potentially make DIR1 non-flaky again. Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon May 21 22:10:15 CEST 2012 on sn-devel-104
2012-04-19s3-xattr_tdb: Remove dead code: talloc_stackframe() cannot failAndrew Bartlett1-8/+0
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Apr 19 14:15:42 CEST 2012 on sn-devel-104
2012-04-18s3-xattr_tdb: Be nice to xattr_tdb_getxattr callers, return the full blobAndrew Bartlett1-2/+41
In this case, the blob is already in memory, so it is easier to return the full blob to the caller, and let the caller decide if some interface restriction stops the full blob from being passed all the way up the stack. This allows us to quickly write a python wrapper for this xattr storage mechanism. Andrew Bartlett
2012-04-18s3-xattr_tdb: make xattr_tdb a private library, for use outside vfs_xattr_tdbAndrew Bartlett1-426/+3
2012-02-02s3-xattr_tdb: Fix listxattrVolker Lendecke1-1/+1
We have to tell the caller how many bytes we actually want
2012-01-18s3: Add a "lock_order" argument to db_openVolker Lendecke1-1/+2
This will be used to enforce a lock hierarchy between the databases. We have seen deadlocks between locking.tdb, brlock.tdb, serverid.tdb and notify*.tdb. These should be fixed by refusing a dbwrap_fetch_locked that does not follow a defined lock hierarchy.
2011-12-12vfs: Make function pointer names consistent. They all end in _fnRichard Sharpe1-10/+10
Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Mon Dec 12 04:58:40 CET 2011 on sn-devel-104
2011-10-11s3:vfs: change the xattr_tdb module to use dbwrap wrapper functionsMichael Adam1-11/+18
Avoid direct use of the db_record and db_context structs.
2011-07-29s3:dbwrap: move all .c and .h files of dbwrap to lib/dbwrap/Michael Adam1-1/+1
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Jul 29 13:34:22 CEST 2011 on sn-devel-104
2011-07-29s3:dbwrap: move db_open() to a file dbwrap_open.c of its own.Michael Adam1-0/+1
Also start new folder lib/dbwrap/ where dbwrap_open.c is stored and make the fallbacke implementation functoins non-static and create a dbwrap_private.h header file that contains their prototypes.
2011-06-20tdb_compat: Higher level API fixes.Rusty Russell1-1/+1
My previous patches fixed up all direct TDB callers, but there are a few utility functions and the db_context functions which are still using the old -1 / 0 return codes. It's clearer to fix up all the callers of these too, so everywhere is consistent: non-zero means an error. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-09s3-talloc Change TALLOC_ZERO_P() to talloc_zero()Andrew Bartlett1-1/+1
Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_P isn't standard talloc.
2011-06-09s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()Andrew Bartlett1-2/+2
Using the standard macro makes it easier to move code into common, as TALLOC_REALLOC_ARRAY isn't standard talloc. Andrew Bartlett
2011-05-06s3: only include tdb headers where needed.Günther Deschner1-0/+1
Guenther
2011-05-06More const fixes. Remove CONST_DISCARD.Jeremy Allison1-1/+1
2011-03-30s3-vfs: include smbd/smbd.h in vfs modules.Günther Deschner1-0/+1
Guenther
2011-03-30s3-includes: only include system/filesys.h when needed.Günther Deschner1-0/+1
Guenther
2011-02-02s3: Remove superfluous ;Günther Deschner1-2/+2
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Feb 2 15:44:21 CET 2011 on sn-devel-104
2010-11-10Fix bug 7781 - Samba transforms ShareName to lowercase (sharename) when ↵Jeremy Allison1-4/+3
adding new share via MMC Change the find_service() interface to not depend on fstring, and create a useable talloc-based interface. Jeremy.
2010-08-26s3-build: use dbwrap.h only where needed.Günther Deschner1-0/+1
Guenther
2010-08-06s3-netlogon: remove global include of netlogon.h.Günther Deschner1-0/+1
This reduces precompiled headers by another 4 MB and also slightly speeds up the build. Guenther
2010-05-18s3: Remove use of iconv_convenience.Jelmer Vernooij1-4/+2
2009-10-16Fix one missing STAT -> LSTAT with POSIX pathnames in vfs_xattr_tdb.c. ↵Jeremy Allison1-1/+7
Caught by the torture tester. I love unit tests :-). Jeremy.
2009-08-12When mapping EA's into a TDB, don't remove the EAJeremy Allison1-0/+9
until the last link to the file is gone (fixes the build farm RAW-RENAME test with xattr's in tdb's). Jeremy.
2009-07-24Make the smbd VFS typesafeVolker Lendecke1-27/+13
2009-07-06s3: Plumb smb_filename through SMB_VFS_UNLINKTim Prouty1-8/+18
2009-06-24s3: Plumb smb_filename through SMB_VFS_STAT and SMB_VFS_LSTATTim Prouty1-6/+6
This patch introduces two new temporary helper functions vfs_stat_smb_fname and vfs_lstat_smb_fname. They basically allowed me to call the new smb_filename version of stat, while avoiding plumbing it through callers that are still too inconvenient. As the conversion moves along, I will be able to remove callers of this, with the goal being to remove all callers. There was also a bug in create_synthetic_smb_fname_split (also a temporary utility function) that caused it to incorrectly handle filenames with ':'s in them when in posix mode. This is now fixed.
2009-02-19s3: Add extid to the dev/inode pairTim Prouty1-0/+3
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-02-19s3: Modify SMB_VFS_FILE_ID_CREATE to take a stat structTim Prouty1-10/+10
Since file_id_create_dev is incompatible with the concept of file_ids, it is now static and in the one file that needs it.
2009-01-16s3:vfs_xattr_tdb: don't leak state_path() to talloc_tos in xattr_tdb_init().Michael Adam1-4/+9
Michael
2009-01-12Covert several persistant tdb files to use state_path() instead of lock_path()Steven Danneman1-1/+1
2008-10-15Share xattr implementation.Jelmer Vernooij1-32/+32
2008-09-23s3-nbt: fix remaining callers of ndr_push/pull_struct_blob.Günther Deschner1-2/+2
Guenther
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-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-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-20Add some DEBUGVolker Lendecke1-0/+6
(This used to be commit 8db25aba63b1dffb0dfbc74012c7ebd0ce4d5682)
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-19Fix error return in xattr_tdb_load_attrsVolker Lendecke1-1/+1
(This used to be commit 64e54ea8f76fe57193955aabc1459fe635233aca)
2008-01-16Fix an uninitialized variable warningVolker Lendecke1-1/+1
(This used to be commit dcb7fb2c0d8e4b798b36e8caf480d198f3e08d00)
2008-01-15ea_tdb->xattr_tdb also inside the module itselfVolker Lendecke1-98/+99
(This used to be commit 642424b3779dd33cd2b5049789aa16e678438bb9)
2008-01-15rename vfs_ea_tdb to vfs_xattr_tdbVolker Lendecke1-0/+736
(This used to be commit 151b42a150a17f566e7b4055bbdbc0564a3c106d)