jarrpa/samba.git
9 years agoscratch leases
Volker Lendecke [Thu, 5 Jun 2014 20:39:32 +0000 (22:39 +0200)]
scratch

9 years agoscratch
Volker Lendecke [Thu, 5 Jun 2014 20:10:22 +0000 (22:10 +0200)]
scratch

9 years agoscratch
Volker Lendecke [Thu, 5 Jun 2014 19:54:48 +0000 (21:54 +0200)]
scratch

9 years agoscratch
Volker Lendecke [Thu, 5 Jun 2014 19:31:27 +0000 (21:31 +0200)]
scratch

9 years agoscratch
Volker Lendecke [Thu, 5 Jun 2014 14:53:19 +0000 (14:53 +0000)]
scratch

9 years agoscratch
Volker Lendecke [Thu, 5 Jun 2014 14:36:08 +0000 (14:36 +0000)]
scratch

9 years agoleases_db
Volker Lendecke [Thu, 5 Jun 2014 13:32:08 +0000 (13:32 +0000)]
leases_db

9 years agoremove share_lease_key
Volker Lendecke [Thu, 5 Jun 2014 12:45:52 +0000 (12:45 +0000)]
remove share_lease_key

9 years agoAdd leases_db in leases.tdb
Volker Lendecke [Thu, 5 Jun 2014 10:29:43 +0000 (10:29 +0000)]
Add leases_db in leases.tdb

9 years agoscratch
Volker Lendecke [Thu, 5 Jun 2014 10:08:33 +0000 (10:08 +0000)]
scratch

9 years agofix the build
Volker Lendecke [Thu, 5 Jun 2014 08:55:12 +0000 (08:55 +0000)]
fix the build

9 years agoscratch
Volker Lendecke [Tue, 28 Jan 2014 13:49:42 +0000 (14:49 +0100)]
scratch

9 years agoscratch
Volker Lendecke [Mon, 20 Jan 2014 15:00:57 +0000 (15:00 +0000)]
scratch

9 years agoscratch
Volker Lendecke [Fri, 17 Jan 2014 13:40:49 +0000 (13:40 +0000)]
scratch

9 years agoscratch
Volker Lendecke [Mon, 13 Jan 2014 14:49:58 +0000 (15:49 +0100)]
scratch

9 years agoscratch
Volker Lendecke [Mon, 13 Jan 2014 09:49:31 +0000 (10:49 +0100)]
scratch

9 years agoix
Volker Lendecke [Fri, 10 Jan 2014 15:21:28 +0000 (16:21 +0100)]
ix

9 years agoscratch
Volker Lendecke [Fri, 22 Nov 2013 11:24:31 +0000 (11:24 +0000)]
scratch

9 years agoscratch
Volker Lendecke [Mon, 11 Nov 2013 15:52:34 +0000 (15:52 +0000)]
scratch

9 years agoUse fsp->lease to construct output lease
Volker Lendecke [Mon, 11 Nov 2013 15:52:20 +0000 (15:52 +0000)]
Use fsp->lease to construct output lease

9 years agorecreate lease for durable reconnect
Volker Lendecke [Mon, 11 Nov 2013 15:51:45 +0000 (15:51 +0000)]
recreate lease for durable reconnect

9 years agoAllow durable disconnect for HANDLE leases
Volker Lendecke [Mon, 11 Nov 2013 15:51:26 +0000 (15:51 +0000)]
Allow durable disconnect for HANDLE leases

9 years agosmbd: Make find_fsp_lease public
Volker Lendecke [Mon, 11 Nov 2013 15:50:45 +0000 (15:50 +0000)]
smbd: Make find_fsp_lease public

9 years agoadd debug
Volker Lendecke [Mon, 11 Nov 2013 15:50:16 +0000 (15:50 +0000)]
add debug

9 years agoscratch
Volker Lendecke [Mon, 11 Nov 2013 10:38:57 +0000 (10:38 +0000)]
scratch

9 years agoscratch
Volker Lendecke [Fri, 8 Nov 2013 14:50:36 +0000 (15:50 +0100)]
scratch

9 years agoscratch
Volker Lendecke [Fri, 8 Nov 2013 13:06:50 +0000 (14:06 +0100)]
scratch

9 years agosmbd: Break leases only once
Volker Lendecke [Fri, 8 Nov 2013 12:35:21 +0000 (13:35 +0100)]
smbd: Break leases only once

9 years agosmbd: With fsp->lease we dont need get_lease_infos()
Volker Lendecke [Thu, 7 Nov 2013 15:57:02 +0000 (15:57 +0000)]
smbd: With fsp->lease we dont need get_lease_infos()

9 years agosmbd: Allow durable handles for SMB2_LEASE_HANDLE
Volker Lendecke [Thu, 7 Nov 2013 13:08:26 +0000 (13:08 +0000)]
smbd: Allow durable handles for SMB2_LEASE_HANDLE

9 years agosmbd: Don't maintain leases_db
Volker Lendecke [Thu, 7 Nov 2013 12:19:49 +0000 (12:19 +0000)]
smbd: Don't maintain leases_db

Leave the code in for now, we might need it again.

9 years agosmbd: Walk fsps instead of using leases_db_fetch
Volker Lendecke [Thu, 7 Nov 2013 12:17:05 +0000 (12:17 +0000)]
smbd: Walk fsps instead of using leases_db_fetch

We have to maintain fsp->lease anyway. We might have to tune this lookup
eventually.

9 years agosmbd: Add file_find_one_fsp_from_lease_key
Volker Lendecke [Thu, 7 Nov 2013 12:16:18 +0000 (12:16 +0000)]
smbd: Add file_find_one_fsp_from_lease_key

9 years agoscratch
Volker Lendecke [Wed, 6 Nov 2013 21:33:21 +0000 (22:33 +0100)]
scratch

9 years agoscratch
Volker Lendecke [Wed, 6 Nov 2013 14:25:46 +0000 (15:25 +0100)]
scratch

9 years agoscratch
Volker Lendecke [Tue, 5 Nov 2013 16:23:53 +0000 (17:23 +0100)]
scratch

9 years agosmbd: Add "struct fsp_lease *lease" to fsp
Volker Lendecke [Tue, 5 Nov 2013 05:44:48 +0000 (06:44 +0100)]
smbd: Add "struct fsp_lease *lease" to fsp

9 years agosmbd: Simplify find_share_mode_oplock params a bit
Volker Lendecke [Tue, 5 Nov 2013 07:31:51 +0000 (08:31 +0100)]
smbd: Simplify find_share_mode_oplock params a bit

9 years agosmbd: Apply some const to grant_fsp_lease
Volker Lendecke [Mon, 4 Nov 2013 11:37:31 +0000 (11:37 +0000)]
smbd: Apply some const to grant_fsp_lease

9 years agosmbd: Apply some const to find_share_mode_oplock
Volker Lendecke [Mon, 4 Nov 2013 11:37:18 +0000 (11:37 +0000)]
smbd: Apply some const to find_share_mode_oplock

9 years agosmbd: Use update_num_read_oplocks
Volker Lendecke [Sat, 2 Nov 2013 16:54:13 +0000 (17:54 +0100)]
smbd: Use update_num_read_oplocks

9 years agoAdd update_num_read_oplocks()
Volker Lendecke [Sat, 2 Nov 2013 09:53:37 +0000 (10:53 +0100)]
Add update_num_read_oplocks()

9 years agosmbd: Make map_oplock_to_lease_type and get_lease_type public
Volker Lendecke [Sat, 2 Nov 2013 09:53:05 +0000 (10:53 +0100)]
smbd: Make map_oplock_to_lease_type and get_lease_type public

9 years agosmbd: Turn have_read_oplocks from bool to a counter
Volker Lendecke [Sat, 2 Nov 2013 09:39:06 +0000 (10:39 +0100)]
smbd: Turn have_read_oplocks from bool to a counter

9 years agosmbd: Fix preventing the same lease on different file names
Volker Lendecke [Fri, 1 Nov 2013 11:37:19 +0000 (11:37 +0000)]
smbd: Fix preventing the same lease on different file names

9 years agotorture: Work around a smbd streams creation bug
Volker Lendecke [Fri, 1 Nov 2013 11:21:47 +0000 (11:21 +0000)]
torture: Work around a smbd streams creation bug

See the comment in the code. Not critical for this test IMHO.

9 years agosmbd: Announce leases
Volker Lendecke [Wed, 21 Aug 2013 10:22:59 +0000 (10:22 +0000)]
smbd: Announce leases

9 years agosmbd: Pass lease blobs through smb2_create
Volker Lendecke [Sun, 29 Sep 2013 09:45:41 +0000 (11:45 +0200)]
smbd: Pass lease blobs through smb2_create

9 years agosmbd: Engine to break/downgrade/remove leases
Volker Lendecke [Fri, 27 Sep 2013 09:06:29 +0000 (11:06 +0200)]
smbd: Engine to break/downgrade/remove leases

9 years agosmbd: Lease break engine
Volker Lendecke [Fri, 27 Sep 2013 08:48:21 +0000 (10:48 +0200)]
smbd: Lease break engine

9 years agosmbd: Logic to grant leases
Volker Lendecke [Fri, 27 Sep 2013 05:26:17 +0000 (22:26 -0700)]
smbd: Logic to grant leases

Sorry, this is a big chunk to swallow. This code decides which oplock
or lease type to grant.

9 years agosmbd: Add "get_lease_infos" helper function
Volker Lendecke [Fri, 27 Sep 2013 08:53:21 +0000 (10:53 +0200)]
smbd: Add "get_lease_infos" helper function

9 years agosmbd: Add find_share_mode_oplock helper function
Volker Lendecke [Fri, 27 Sep 2013 05:24:00 +0000 (22:24 -0700)]
smbd: Add find_share_mode_oplock helper function

Given a lease key, find the lease entry from the share mode lock.

9 years agosmbd: Add get_lease_type helper function
Volker Lendecke [Fri, 27 Sep 2013 05:22:15 +0000 (22:22 -0700)]
smbd: Add get_lease_type helper function

All our oplock and lease calculations will be based on the SMB2_LEASE
values. This helper functions gets the lease equivalent out of a share
mode entry.

9 years agosmbd: Add is_same_lease helper function
Volker Lendecke [Fri, 27 Sep 2013 05:21:53 +0000 (22:21 -0700)]
smbd: Add is_same_lease helper function

9 years agosmbd: Add the lease table index in set_share_mode
Volker Lendecke [Fri, 27 Sep 2013 05:02:08 +0000 (22:02 -0700)]
smbd: Add the lease table index in set_share_mode

9 years agosmbd: Extend locking.tdb for leases
Volker Lendecke [Fri, 27 Sep 2013 04:48:43 +0000 (21:48 -0700)]
smbd: Extend locking.tdb for leases

Basic design (variation by me...) by Metze and Michael: Every
share_mode_entry gets an index into the leases array. "lease_idx" is
valid if and only if "op_type==LEASE_OPLOCK".

9 years agosmbd: Add infrastructure to send lease breaks
Volker Lendecke [Fri, 27 Sep 2013 03:15:11 +0000 (20:15 -0700)]
smbd: Add infrastructure to send lease breaks

9 years agosmbd: Add parsing infrastructure for lease breaks
Volker Lendecke [Fri, 27 Sep 2013 03:05:55 +0000 (20:05 -0700)]
smbd: Add parsing infrastructure for lease breaks

9 years agosmbd: Add leases_db
Volker Lendecke [Mon, 16 Sep 2013 14:23:25 +0000 (07:23 -0700)]
smbd: Add leases_db

This is a tdb mapping a lease key to a file id

9 years agosmbd: Pass down "lease" to open_file_ntcreate
Volker Lendecke [Wed, 21 Aug 2013 15:58:23 +0000 (15:58 +0000)]
smbd: Pass down "lease" to open_file_ntcreate

9 years agosmbd: Pass down "lease" to create_file_unixpath
Volker Lendecke [Wed, 21 Aug 2013 15:56:50 +0000 (15:56 +0000)]
smbd: Pass down "lease" to create_file_unixpath

9 years agovfs3: Pass "lease" through SMB_VFS_CREATE_FILE
Volker Lendecke [Wed, 21 Aug 2013 13:56:14 +0000 (13:56 +0000)]
vfs3: Pass "lease" through SMB_VFS_CREATE_FILE

9 years agolibcli: Add smb2_lease_print_cb
Volker Lendecke [Wed, 21 Aug 2013 13:20:32 +0000 (13:20 +0000)]
libcli: Add smb2_lease_print_cb

9 years agoutil: Make debugadd_cb publically available
Volker Lendecke [Wed, 21 Aug 2013 13:19:56 +0000 (13:19 +0000)]
util: Make debugadd_cb publically available

9 years agotorture: Add smb2.lease.nobreakself
Volker Lendecke [Tue, 24 Sep 2013 17:26:48 +0000 (10:26 -0700)]
torture: Add smb2.lease.nobreakself

9 years agotorture: Add a test to break a handle twice
Volker Lendecke [Wed, 25 Sep 2013 00:07:54 +0000 (17:07 -0700)]
torture: Add a test to break a handle twice

9 years agotorture: Make sure we copy the parent_lease_key
Volker Lendecke [Tue, 24 Sep 2013 02:41:13 +0000 (19:41 -0700)]
torture: Make sure we copy the parent_lease_key

9 years agoRevert "Revert "smbd: Move oplock handling together""
Volker Lendecke [Wed, 30 Oct 2013 11:22:45 +0000 (11:22 +0000)]
Revert "Revert "smbd: Move oplock handling together""

This reverts commit 4378db981904fbd7c4b4a0bc2cf4b6eb1f6b424b.

9 years agoRevert "Revert "smbd: Move oplock/sharemode ops into one place""
Volker Lendecke [Wed, 30 Oct 2013 11:22:32 +0000 (11:22 +0000)]
Revert "Revert "smbd: Move oplock/sharemode ops into one place""

This reverts commit ef4054eb88df7b4809c4cbe99b65a0e0efcd78c4.

9 years agoleases: Fix uint32->hyper
Volker Lendecke [Thu, 12 Jun 2014 08:53:36 +0000 (08:53 +0000)]
leases: Fix uint32->hyper

Thanks to Noel Power <noel.power@suse.com> for finding this!

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Noel Power <noel.power@suse.com>
[ddiss@samba.org: changed Noel's address, as requested]
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Thu Jun 12 16:01:10 CEST 2014 on sn-devel-104

9 years agoRemove .clang_complete.
Andreas Schneider [Thu, 5 Jun 2014 17:06:10 +0000 (19:06 +0200)]
Remove .clang_complete.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
9 years agowaf: fix the name of the WINBIND "nss" module on AIX
Björn Jacke [Thu, 12 Jun 2014 08:29:47 +0000 (10:29 +0200)]
waf: fix the name of the WINBIND "nss" module on AIX

on AIX this is actually not called NSS and PAM, this is combined im LAM (loadable
authentication module)

Signed-off-by: Bjoern Jacke <bj@sernet.de>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Jun 12 13:32:28 CEST 2014 on sn-devel-104

9 years agotorture: convert torture_comment() -> torture_result() so we can knownfail flapping...
Andrew Bartlett [Wed, 11 Jun 2014 08:51:30 +0000 (20:51 +1200)]
torture: convert torture_comment() -> torture_result() so we can knownfail flapping base.delaywrite tests

This only changes instances directly before a return false, ret =
false or goto fail statement.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Thu Jun 12 10:39:38 CEST 2014 on sn-devel-104

9 years agotorture: convert torture_comment() -> torture_result() so we can knownfail flapping...
Andrew Bartlett [Wed, 11 Jun 2014 08:51:20 +0000 (20:51 +1200)]
torture: convert torture_comment() -> torture_result() so we can knownfail flapping base.* tests

This only changes instances directly before a return false, ret =
false or goto fail statement.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
9 years agoctdb-daemon: Reset scheduler policy for helper processes
Amitay Isaacs [Fri, 6 Jun 2014 06:49:13 +0000 (16:49 +1000)]
ctdb-daemon: Reset scheduler policy for helper processes

Do not run helper processes with real-time priority.

This regression was caused when locking and eventscript code switched
to use vfork() and helper instead of ctdb_fork().

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Thu Jun 12 08:10:36 CEST 2014 on sn-devel-104

9 years agoctdb-daemon: Do not complain if node is inactive and db is not attached
Amitay Isaacs [Tue, 10 Jun 2014 02:17:32 +0000 (12:17 +1000)]
ctdb-daemon: Do not complain if node is inactive and db is not attached

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
9 years agoctdb-build: Remove duplicate library dependency
Amitay Isaacs [Tue, 10 Jun 2014 01:56:39 +0000 (11:56 +1000)]
ctdb-build: Remove duplicate library dependency

LIB_FLAGS includes TDB_LIBS.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
9 years agoctdb-daemon: Remove duplicate code from helper binaries
Amitay Isaacs [Fri, 6 Jun 2014 06:46:15 +0000 (16:46 +1000)]
ctdb-daemon: Remove duplicate code from helper binaries

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
9 years agoctdb-logging: Move controls handling functions from common to server
Amitay Isaacs [Fri, 6 Jun 2014 05:43:22 +0000 (15:43 +1000)]
ctdb-logging: Move controls handling functions from common to server

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
9 years agoctdb-logging: Split ringbuffer handling code from ctdb_collect_log
Amitay Isaacs [Tue, 10 Jun 2014 04:52:19 +0000 (14:52 +1000)]
ctdb-logging: Split ringbuffer handling code from ctdb_collect_log

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
9 years agoctdb-common: Move mkdir_p_or_die to system utilities
Amitay Isaacs [Fri, 6 Jun 2014 05:25:08 +0000 (15:25 +1000)]
ctdb-common: Move mkdir_p_or_die to system utilities

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
9 years agoctdb-daemon: Rename ctdb_mkdir_p_or_die to mkdir_p_or_die
Amitay Isaacs [Fri, 6 Jun 2014 05:24:20 +0000 (15:24 +1000)]
ctdb-daemon: Rename ctdb_mkdir_p_or_die to mkdir_p_or_die

This function does not require ctdb context.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
9 years agoctdb-common: Move lockdown_memory to system utilities
Amitay Isaacs [Tue, 10 Jun 2014 07:04:34 +0000 (17:04 +1000)]
ctdb-common: Move lockdown_memory to system utilities

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
9 years agoctdb-daemon: Rename ctdb_lockdown_memory to lockdown_memory
Amitay Isaacs [Tue, 10 Jun 2014 07:00:38 +0000 (17:00 +1000)]
ctdb-daemon: Rename ctdb_lockdown_memory to lockdown_memory

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
9 years agoctdb-daemon: Instead of passing ctdb context, pass valgrinding boolean
Amitay Isaacs [Fri, 6 Jun 2014 05:08:22 +0000 (15:08 +1000)]
ctdb-daemon: Instead of passing ctdb context, pass valgrinding boolean

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
9 years agoctdb-common: Keep debug level related functions with logging code
Amitay Isaacs [Fri, 6 Jun 2014 05:00:08 +0000 (15:00 +1000)]
ctdb-common: Keep debug level related functions with logging code

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
9 years agoctdb-daemon: Rename block_signal to ignore_signal
Amitay Isaacs [Fri, 6 Jun 2014 04:58:17 +0000 (14:58 +1000)]
ctdb-daemon: Rename block_signal to ignore_signal

This function does not block signals, but ignores them.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
9 years agoctdb-common: Remove unused functions
Amitay Isaacs [Fri, 6 Jun 2014 04:55:23 +0000 (14:55 +1000)]
ctdb-common: Remove unused functions

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
9 years agoctdb-daemon: No need to block SIGPIPE at startup
Amitay Isaacs [Fri, 6 Jun 2014 04:52:02 +0000 (14:52 +1000)]
ctdb-daemon: No need to block SIGPIPE at startup

Once CTDB is daemonized, it starts ignoring SIGPIPE anyway.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
9 years agoctdb-common: Separate more system utilities that are independent of ctdb
Amitay Isaacs [Fri, 6 Jun 2014 03:52:15 +0000 (13:52 +1000)]
ctdb-common: Separate more system utilities that are independent of ctdb

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
9 years agoctdb-common: Separate system utilties that are ctdb independent
Amitay Isaacs [Fri, 6 Jun 2014 02:55:56 +0000 (12:55 +1000)]
ctdb-common: Separate system utilties that are ctdb independent

Routines in system_common and system_<os> are supposed to be ctdb
functions with OS specific implementations.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
9 years agoctdb-common: No dynamic memory allocation in mkdir_p()
Martin Schwenke [Wed, 11 Jun 2014 06:58:20 +0000 (16:58 +1000)]
ctdb-common: No dynamic memory allocation in mkdir_p()

Allocate an array of size PATH_MAX on the stack instead.  To stop
unnecessary recursion, try to create the desired directory before
creating ancestors and only create ancestors on ENOENT.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
9 years agoctdb-common: Do not dynamically allocate memory when not necessary
Martin Schwenke [Wed, 11 Jun 2014 06:04:55 +0000 (16:04 +1000)]
ctdb-common: Do not dynamically allocate memory when not necessary

Copy these values onto the stack instead.  INET6_ADDRSTRLEN is 46, so
64 is plenty for an IP address and a port number.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
9 years agoctdb-common: Drop ctdb prefix from utility functions independent of ctdb
Amitay Isaacs [Tue, 10 Jun 2014 06:48:03 +0000 (16:48 +1000)]
ctdb-common: Drop ctdb prefix from utility functions independent of ctdb

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
9 years agoctdb-common: Changing scheduler policy does not require ctdb context
Amitay Isaacs [Tue, 10 Jun 2014 06:44:59 +0000 (16:44 +1000)]
ctdb-common: Changing scheduler policy does not require ctdb context

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
9 years agoctdb-common: Do not abort if restoring scheduling policy fails
Amitay Isaacs [Fri, 6 Jun 2014 02:27:29 +0000 (12:27 +1000)]
ctdb-common: Do not abort if restoring scheduling policy fails

This code is only executed in child processes, so aborting does not
really achieve much.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
9 years agoctdb-common: No need to save previous scheduler priority
Amitay Isaacs [Fri, 6 Jun 2014 02:21:25 +0000 (12:21 +1000)]
ctdb-common: No need to save previous scheduler priority

When calling sched_setscheduler() with SCHED_OTHER, the only valid
priority is 0.  Nice value is "restored" anyway.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
9 years agolibsmb: Put the "smb2_lease" struct into idl
Volker Lendecke [Thu, 5 Jun 2014 10:57:36 +0000 (10:57 +0000)]
libsmb: Put the "smb2_lease" struct into idl

This will make it easier in the future to NDR_PRINT a lease and
a lease key

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jun 12 03:34:41 CEST 2014 on sn-devel-104

9 years agosmbd: tevent_req_nterror already returns bool :-)
Volker Lendecke [Wed, 11 Jun 2014 09:35:37 +0000 (09:35 +0000)]
smbd: tevent_req_nterror already returns bool :-)

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 11 21:13:06 CEST 2014 on sn-devel-104