summaryrefslogtreecommitdiff
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
* g_lock: Fix lock upgradesVolker Lendecke2018-08-231-0/+4
| | | | | | | | | | Master has changed significantly, this is a minimum fix for 4.7 without cleaning up the code BUG: https://bugzilla.samba.org/show_bug.cgi?id=13195 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3: smbd: Fix AIX sendfile() for SMB2. Ensure we don't spin on EAGAIN.Jeremy Allison2018-07-281-5/+44
| | | | | | | | | | | | | | | | | | | | For SMB2 the socket is set non-blocking. Ensure sendfile() calls complete if they return EAGAIN by saving the socket state, setting it blocking, doing the sendfile until completion and then restoring the socket state. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13537 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Fri Jul 20 15:14:24 CEST 2018 on sn-devel-144 (cherry picked from commit 582ce5d6b599516d6d8d619529a2aa809139a175) Autobuild-User(v4-7-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-7-test): Sat Jul 28 10:57:39 CEST 2018 on sn-devel-144
* s3: smbd: Fix FreeBSD sendfile() for SMB2. Ensure we don't spin on EAGAIN.Jeremy Allison2018-07-281-4/+44
| | | | | | | | | | | | | For SMB2 the socket is set non-blocking. Ensure sendfile() calls complete if they return EAGAIN by saving the socket state, setting it blocking, doing the sendfile until completion and then restoring the socket state. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13537 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> (cherry picked from commit 456e520a3be7e4b54f1f144324c3671b8f6e35ea)
* s3: smbd: Fix HPUX sendfile() for SMB2. Ensure we don't spin on EAGAIN.Jeremy Allison2018-07-281-6/+50
| | | | | | | | | | | | | For SMB2 the socket is set non-blocking. Ensure sendfile() calls complete if they return EAGAIN by saving the socket state, setting it blocking, doing the sendfile until completion and then restoring the socket state. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13537 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> (cherry picked from commit d222caa449d9c00bb2dd9da6c79ea509960d47c6)
* s3: smbd: Fix Solaris sendfile() for SMB2. Ensure we don't spin on EAGAIN.Jeremy Allison2018-07-281-6/+50
| | | | | | | | | | | | | For SMB2 the socket is set non-blocking. Ensure sendfile() calls complete if they return EAGAIN by saving the socket state, setting it blocking, doing the sendfile until completion and then restoring the socket state. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13537 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> (cherry picked from commit 16a587075c8c62c1160869358ca56a133e90247a)
* s3: smbd: Fix Linux sendfile() for SMB2. Ensure we don't spin on EAGAIN.Jeremy Allison2018-07-281-7/+77
| | | | | | | | | | | | | For SMB2 the socket is set non-blocking. Ensure sendfile() calls complete if they return EAGAIN by saving the socket state, setting it blocking, doing the sendfile until completion and then restoring the socket state. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13537 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> (cherry picked from commit 809967b3eab7a1b48c186517701538ca93536246)
* s3:lib: Use memcpy() in escape_ldap_string()Andreas Schneider2018-06-271-1/+1
| | | | | | | | | | | | | | | | | | ../source3/lib/ldap_escape.c: In function ‘escape_ldap_string’: ../source3/lib/ldap_escape.c:79:4: error: ‘strncpy’ output truncated before terminating nul copying 3 bytes from a string of the same length [-Werror=stringop-truncation] strncpy (p, sub, 3); ^~~~~~~~~~~~~~~~~~~ We concatenat and do not care about NUL-termination till the loop has finished. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13437 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> (cherry picked from commit ff7568daaeb19ff30f47f7f600ead247eaf4e826)
* lib/util: Move log_stack_trace() to common codeAndrew Bartlett2018-06-041-97/+0
| | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> BUG: https://bugzilla.samba.org/show_bug.cgi?id=13454 (cherry picked from commit bf9551902afdb32310db4a3381964c435dd08bf0)
* s3-lib: Remove support for libexc for IRIX backtracesAndrew Bartlett2018-06-041-42/+0
| | | | | | | | | | | | | IRIX is long dead, and this code needs become_root() which is not in the top level code. Additionally, the check for libexc never made it into waf, so this has been dead code since Samba 4.1. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> BUG: https://bugzilla.samba.org/show_bug.cgi?id=13454 (cherry picked from commit 85dc9ee14023a8fb84b5c74555d43008bb6bb0c0)
* lib: Add namemap_cacheVolker Lendecke2018-05-242-0/+368
| | | | | | | | | A few functions to maintain lookupname and lookupsid cache in gencache. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13369 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* lib: Pass blob instead of &blob to gencache_set_data_blobVolker Lendecke2018-05-242-7/+7
| | | | | | | | | | Passing a whole DATA_BLOB is cheap enough to simplify the callers: A caller does not have to create a separate variable. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13369 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s3: lib: messages: Don't use the result of sec_init() before calling sec_init().Lutz Justen2018-04-101-2/+7
| | | | | | | | | | | | | | | | | | | | | Commit ad8c7171ba86e8a47d78b0c7329bb814e5a8871e accidently moved sec_init() to the point after sec_initial_uid() is called in the call to directory_create_or_exist_strict(). I missed this in the review (sorry). This works as root as initial_uid/initial_gid are static (and so initialized as zero) but doesn't work on ChromeOS as this code isn't running as root. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13368 Signed-off-by: Lutz Justen <ljusten@google.com> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Apr 4 23:52:02 CEST 2018 on sn-devel-144 (cherry picked from commit e895b6cf4a7eb3d50d618a022be74db85975bf69)
* waf: Fix NFS quota support with libtirpcAndreas Schneider2018-01-251-1/+10
| | | | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13238 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Jan 22 17:26:52 CET 2018 on sn-devel-144 (cherry picked from commit 39a6ea766dfe55d84ab2284b8d5ed01d66da11dd)
* include: Create system/nis.h in libreplaceAndreas Schneider2018-01-251-0/+11
| | | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13238 Pair-Programmed-With: Guenther Deschner <gd@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> (cherry picked from commit c29d087e1ea4c92717ef86e372fe80f410580fdc)
* g_lock: fix cleanup of stale entries in g_lock_trylock()Stefan Metzmacher2017-12-221-1/+5
| | | | | | | | | | | | | | | | | | | g_lock_trylock() always incremented the counter 'i', even after cleaning a stale entry at position 'i', which means it skipped checking for a conflict against the new entry at position 'i'. As result a process could get a write lock, while there're still some read lock holders. Once we get into that problem, also more than one write lock are possible. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13195 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Wed Dec 20 20:31:48 CET 2017 on sn-devel-144 (similar to commit 576fb4fb5dc506bf55e5cf87973999dca444149b)
* messaging: Always register the unique idVolker Lendecke2017-12-151-0/+13
| | | | | | | | | | | | The winbind child does not call serverid_register, so the unique id is not registered. ctdbd_process_exists now calls CTDB_CONTROL_CHECK_PID_SRVID, which then fails. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13180 Signed-off-by: Volker Lendecke <vl@samba.org> Autobuild-User(v4-7-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-7-test): Fri Dec 15 15:35:25 CET 2017 on sn-devel-144
* s3: VFS: Protect errno if sys_getwd() fails across free() call.Jeremy Allison2017-10-251-0/+4
| | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13069 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> (cherry picked from commit 4800ed3595513ce1e2f4edee36c35daafc63a3d5)
* s3: VFS: Ensure sys_getwd() doesn't leak memory on error on really old systems.Jeremy Allison2017-10-251-1/+6
| | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13069 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> (cherry picked from commit fb9ce0685e5d46e3d7abf5fac07b4f626339a413)
* lib: Use CTDB_CONTROL_CHECK_PID_SRVIDVolker Lendecke2017-10-251-3/+18
| | | | | | | | | | | | | | Also check the unique ID for remote server ids, just like we do for local server ids Bug: https://bugzilla.samba.org/show_bug.cgi?id=13042 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Tue Sep 26 13:47:31 CEST 2017 on sn-devel-144 (cherry picked from commit 61de349673809b17e680496b616bc432bf0823b0)
* lib: Add "unique_id" to ctdbd_process_existsVolker Lendecke2017-10-253-3/+5
| | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=13042 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com> (cherry picked from commit f059585fe61e33ce2dd518464829c183de874d8a)
* messaging: Remove messaging_handler_sendVolker Lendecke2017-10-251-81/+0
| | | | | | | | | | | | | | This did not really take off, notifyd was the only user Bug: https://bugzilla.samba.org/show_bug.cgi?id=12903 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Jul 7 05:11:48 CEST 2017 on sn-devel-144 (cherry picked from commit 5eccc2fd0072409f166c63e6876266f926411423)
* messaging: make messaging_rec_create publicVolker Lendecke2017-10-251-1/+1
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=12903 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 0c1e08b5901e54c70cf72c74837a8ed8cc77f0b8)
* CVE-2017-12150: s3:lib: get_cmdline_auth_info_signing_state smb_encrypt ↵Stefan Metzmacher2017-09-201-0/+3
| | | | | | | | | | | | SMB_SIGNING_REQUIRED This is an addition to the fixes for CVE-2015-5296. It applies to smb2mount -e, smbcacls -e and smbcquotas -e. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12997 Signed-off-by: Stefan Metzmacher <metze@samba.org>
* CVE-2017-12150: s3:popt_common: don't turn a guessed username into a ↵Stefan Metzmacher2017-09-202-6/+30
| | | | | | | | specified one BUG: https://bugzilla.samba.org/show_bug.cgi?id=12997 Signed-off-by: Stefan Metzmacher <metze@samba.org>
* messaging: Avoid a socket leak after forkVolker Lendecke2017-09-111-1/+2
| | | | | | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=13006 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Sep 5 19:12:34 CEST 2017 on sn-devel-144 (cherry picked from commit d1c96dc0ac95322ce46703a11002873faf55a26c)
* s3: clients: Use netlogon_creds_cli_close_global_db() in all normal exit paths.Jeremy Allison2017-08-171-0/+2
| | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12932 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (cherry picked from commit dbd32932463935cd47c55a9e1afdaccd7f6daf4d)
* dbwrap_ctdb: Fix calculation of persistent flagAmitay Isaacs2017-07-241-1/+1
| | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12891 Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Ralph Boehme <slow@samba.org> (cherry picked from commit f7daa453045c787ddab6e04c1fdaa386c231371f)
* dbwrap: Ask CTDB for local tdb open flagsRalph Boehme2017-07-241-3/+19
| | | | | | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=12891 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Wed Jul 12 13:25:11 CEST 2017 on sn-devel-144 (cherry picked from commit de9d21957706bd5d811db01b7b5d88a0bb17034b)
* ctdbd_conn: pass persistent bool instead of tdb_flagsRalph Boehme2017-07-242-4/+4
| | | | | | | | | | | ctdbd_db_attach() only needs to know the ctdb database model, not the rest of the flags. Bug: https://bugzilla.samba.org/show_bug.cgi?id=12891 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com> (cherry picked from commit b2b7e3b9710fa22716f931177265dcd8de74532b)
* ctdbd_conn: move CTDB_CONTROL_ENABLE_SEQNUM control to db_open_ctdbRalph Boehme2017-07-242-15/+16
| | | | | | | | | | No change in behaviour. Bug: https://bugzilla.samba.org/show_bug.cgi?id=12891 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com> (cherry picked from commit 0077296cee1cd54a5adb12fc706cbf99203a8213)
* dbwrap: CTDB ignores tdb_flags passed to db attach controlsAmitay Isaacs2017-07-241-1/+1
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=12891 Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Ralph Boehme <slow@samba.org> (cherry picked from commit 6ae063a109ca88bf815fd1bf5e8865053bea41b9)
* dbwrap: enable mutexes by default for volatile TDBsRalph Boehme2017-07-241-1/+1
| | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=12891 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com> (cherry picked from commit a70be43246ab74f0a2bbe245ab31f24460b70547)
* smbldap: expose bind callback via API and increase smbldap ABI versionAlexander Bokovoy2017-07-042-6/+42
| | | | | | | | | | | | | | | | Until we fully migrate to use gensec in smbldap, we need to continue exposing bind callback to allow FreeIPA to integrate with smbldap. Since smbldap API is now lacking direct access to 'struct smbldap_state' and new API functions were added to give access to individual members of this structure, it makes sense to increase ABI version too. Signed-off-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Jul 4 11:14:49 CEST 2017 on sn-devel-144
* s3:libsmb: remove unused 'bool show_hdr' from cli_cm_open()Stefan Metzmacher2017-06-271-1/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* lib: Use ctdb_protocol instead of ctdb_privateVolker Lendecke2017-06-242-3/+2
| | | | | | | | | | | | | ctdb_private is much broader. Right now we implement the protocol ourselves. In the future, we might switch to the native ctdb client implementation defined in ctdb_client.h, but that's a different project :-) Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Jun 24 05:33:41 CEST 2017 on sn-devel-144
* messaging: Deliver messages only onceVolker Lendecke2017-06-211-14/+10
| | | | | | | | | | | | | | | | | | | | | | This survived an autobuild, so no subsystem strictly needs this anymore. In particular the notify subsystem has been rewritten. Why this patch? It removes some complexity from core code, and it reduces the potential memory overconsumption: Right now I'm working on a g_lock_ping_pong test. This test does a lot of messaging_filtered_read_send calls in a tight loop on a nested event context. With the current code we let the messaging_filtered_read code consume the message that arrives, but it also posts it for consumption by the main event context attached to the messaging context with its "classic" callback. This test never comes back to the main event context, so it accumulates more and more self-posted messages. That's just unnecessary, given that due to the successful autobuild nothing but the read1 test makes use of the "multicasting" of messages. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Jun 21 07:30:39 CEST 2017 on sn-devel-144
* lib: Fix typosVolker Lendecke2017-06-212-2/+2
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* lib: Give messages_ctdbd.c its own headerVolker Lendecke2017-06-216-0/+43
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* messaging: Use size_t for array sizesVolker Lendecke2017-06-211-8/+8
| | | | | | | We use talloc_realloc, that takes size_t. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* messaging: Fix queueing on FreeBSDVolker Lendecke2017-06-201-1/+36
| | | | | | | | | | | | | FreeBSD does not do the nice blocking send that Linux does. Instead, it returns ENOBUFS if the dst socket is full. According to the manpage you have to do polling. Try with exponential backoff, at the end try once a second forever. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Jun 20 23:03:11 CEST 2017 on sn-devel-144
* s3:popt_common: Reparse the username in popt_common_credentials_post()Andreas Schneider2017-06-201-0/+16
| | | | | | | | | | | | | | When we parse the username in the options handling, the smb.conf file has not been loaded yet. So we are not aware of a 'winbind separator' set in the config file. We need to read and set the username again in the post-processing of the credentials. https://bugzilla.samba.org/show_bug.cgi?id=12849 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3: libsmb: Correctly save and restore connection tcon in smbclient, ↵Jeremy Allison2017-06-171-4/+20
| | | | | | | | | smbcacls and smbtorture3. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12831 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
* s3: libsmb: Widen cli_state_get_tid() / cli_state_set_tid() to 32-bits.Jeremy Allison2017-06-171-2/+2
| | | | | | | | | Copes with SMB2 connections. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12831 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
* g_lock: open with LOCK_ORDER_3Volker Lendecke2017-06-151-1/+1
| | | | | | | | | | | xattr_tdb needs g_lock in a clustered environment. Nobody else uses LOCK_ORDER_3 at this moment, so this looks safe. The last one to use this was dbwrap_watch.tdb, and that's gone. The only other one was notify_index.tdb, and that's gone too. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* g_lock: Heuristically check for server existenceVolker Lendecke2017-06-151-0/+16
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* g_lock: Allow lock upgrade/downgradeVolker Lendecke2017-06-151-14/+31
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* g_lock: Make g_lock_dump return a complete list of locksVolker Lendecke2017-06-151-17/+13
| | | | | | | | | | | | To be honest, it did not really make sense to just pass in lock holders individually. You could argue that it made sense with in reality only G_LOCK_WRITE around, but soon we will have G_LOCK_READ and thus multiple lock holders on a single lock. Now that we also have userdata, change the g_lock_dump API Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* g_lock: Add g_lock_write_dataVolker Lendecke2017-06-151-0/+49
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* g_lock: Make g_lock_record_store also store userdataVolker Lendecke2017-06-151-10/+13
| | | | | | | | Sequel to the previous commit changing the get/put routines for the on-disk format Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* g_lock: Reformat to allow userdataVolker Lendecke2017-06-151-31/+98
| | | | | | | | The next patches will make g_locks carry data. This prepares the on-disk format. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>